The KeycloakConfig type has been refactored into a union type to support both Keycloak and generic OpenID Connect configurations. Typescript applications that rely on KeycloakConfig wont compile if they dont replace current usages of KeycloakConfig with KeycloakConfigServer.
Before:
export interface KeycloakConfig {
/**
* URL to the Keycloak server, for example: http://keycloak-server/auth
*/
url: string;
/**
* Name of the realm, for example: 'myrealm'
*/
realm: string;
/**
* Client identifier, example: 'myapp'
*/
clientId: string;
}
After 3a26e5b :
export interface KeycloakServerConfig {
/**
* URL to the Keycloak server, for example: http://keycloak-server/auth
*/
url: string;
/**
* Name of the realm, for example: 'myrealm'
*/
realm: string;
/**
* Client identifier, example: 'myapp'
*/
clientId: string;
}
export interface GenericOidcConfig {
/**
* Client identifier, example: 'myapp'
*/
clientId: string;
/** Generic OpenID Connect configuration, can be a URL to the discovery metadata endpoint, or the metadata itself. */
oidcProvider: string | OpenIdProviderMetadata;
}
export type KeycloakConfig = KeycloakServerConfig | GenericOidcConfig;
Version
26.2.1
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Anything else?
No response
The
KeycloakConfigtype has been refactored into a union type to support both Keycloak and generic OpenID Connect configurations. Typescript applications that rely onKeycloakConfigwont compile if they dont replace current usages ofKeycloakConfigwithKeycloakConfigServer.Before:
After 3a26e5b :
Version
26.2.1
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Anything else?
No response