-
Notifications
You must be signed in to change notification settings - Fork 440
Open
Description
Description
When using CNAMEs to point to the Keyclaok server, the JWT created has in the iss field the CNAME. As the KC Server can be react over both addresses, the auth-server-url field of the Config must take this into account. In the code line
| } else if (token.content.iss !== this.realmUrl) { |
Proposal
Type for backwards compatibility:
type auth_server_url_type: string | string[]Usgage:
let iss = new URL(token.content.iss)
if ((typeof this.config.realmUrl) === "string") {
// Use like until now
} else if (Array.isArray(this.config.realmUrl) {
if (this.config.realmUrl.includes(iss.host) && (iss.pathname === ''/realms/' + this.config.realm) // Accept/Reject
} else {
// Error (the Config class constructor should check this)
}Discussion
No response
Motivation
No response
Details
No response
GregoirePiat, pimartin, Pierre-Raffa and EzDor