From cdef39f76c50506681227b627e678bdbf15779a4 Mon Sep 17 00:00:00 2001 From: Eetu Purontaus Date: Wed, 4 May 2022 13:39:15 +0300 Subject: [PATCH] Add scope parameter to KeycloakInitOptions --- adapters/oidc/js/dist/keycloak.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/adapters/oidc/js/dist/keycloak.d.ts b/adapters/oidc/js/dist/keycloak.d.ts index fe408e6203..009aa3178f 100644 --- a/adapters/oidc/js/dist/keycloak.d.ts +++ b/adapters/oidc/js/dist/keycloak.d.ts @@ -181,6 +181,13 @@ export interface KeycloakInitOptions { */ enableLogging?: boolean + /** + * Set the default scope parameter to the login endpoint. Use a space-delimited list of scopes. + * Note that the scope 'openid' will be always be added to the list of scopes by the adapter. + * Note that the default scope specified here is overwritten if the `login()` options specify scope explicitly. + */ + scope?: string + /** * Configures how long will Keycloak adapter wait for receiving messages from server in ms. This is used, * for example, when waiting for response of 3rd party cookies check.