+
Skip to content

Remove acrValues from initialization options #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/guides/securing-apps/javascript-adapter.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,6 @@ to {project_name} will contain the scope parameter `scope=openid address phone`.
* pkceMethod - The method for Proof Key Code Exchange (https://datatracker.ietf.org/doc/html/rfc7636[PKCE]) to use. Configuring this value enables the PKCE mechanism. Available options:
- "S256" - The SHA256 based PKCE method (default)
- false - PKCE is disabled.
* acrValues - Generates the `acr_values` parameter which refers to authentication context class reference and allows clients to declare the required assurance level requirements, e.g. authentication mechanisms. See https://openid.net/specs/openid-connect-modrna-authentication-1_0.html#acr_values[Section 4. acr_values request values and level of assurance in OpenID Connect MODRNA Authentication Profile 1.0].
* messageReceiveTimeout - Set a timeout in milliseconds for waiting for message responses from the Keycloak server. This is used, for example, when waiting for a message during 3rd party cookies check. The default value is 10000.
* locale - When onLoad is 'login-required', sets the 'ui_locales' query param in compliance with https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest[section 3.1.2.1 of the OIDC 1.0 specification].

Expand Down
7 changes: 0 additions & 7 deletions lib/keycloak.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,6 @@ export interface KeycloakInitOptions {
*/
pkceMethod?: KeycloakPkceMethod;

/**
* Configures the 'acr_values' query param in compliance with section 3.1.2.1
* of the OIDC 1.0 specification.
* Used to tell Keycloak what level of authentication the user needs.
*/
acrValues?: string;

/**
* Enables logging messages from Keycloak to the console.
* @default false
Expand Down
8 changes: 2 additions & 6 deletions lib/keycloak.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,6 @@ function Keycloak (config) {
kc.scope = initOptions.scope;
}

if (typeof initOptions.acrValues === 'string') {
kc.acrValues = initOptions.acrValues;
}

if (typeof initOptions.messageReceiveTimeout === 'number' && initOptions.messageReceiveTimeout > 0) {
kc.messageReceiveTimeout = initOptions.messageReceiveTimeout;
} else {
Expand Down Expand Up @@ -458,8 +454,8 @@ function Keycloak (config) {
params.append('claims', buildClaimsParameter(options.acr));
}

if (options?.acrValues || kc.acrValues) {
params.append('acr_values', options.acrValues || kc.acrValues);
if (options?.acrValues) {
params.append('acr_values', options.acrValues);
}

if (kc.pkceMethod) {
Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载