From 341adb555a6b1bcc34d245aaf10698c0711b7f7a Mon Sep 17 00:00:00 2001 From: Eetu Purontaus Date: Tue, 25 Oct 2022 07:52:04 +0300 Subject: [PATCH] Document scope option for the init method (#1508) * Document scope option for the init method * Typo fix * Update securing_apps/topics/oidc/javascript-adapter.adoc Co-authored-by: Stian Thorgersen --- securing_apps/topics/oidc/javascript-adapter.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/securing_apps/topics/oidc/javascript-adapter.adoc b/securing_apps/topics/oidc/javascript-adapter.adoc index f87dd9302a..1cc66046dd 100644 --- a/securing_apps/topics/oidc/javascript-adapter.adoc +++ b/securing_apps/topics/oidc/javascript-adapter.adoc @@ -435,6 +435,10 @@ Options is an Object, where: * token - Set an initial value for the token. * refreshToken - Set an initial value for the refresh token. * idToken - Set an initial value for the id token (only together with token or refreshToken). +* scope - Set the default scope parameter to the {project_name} login endpoint. Use a space-delimited list of scopes. Those typically +reference link:{adminguide_link}#_client_scopes[Client scopes] defined on a particular client. Note that the scope `openid` will +always be added to the list of scopes by the adapter. For example, if you enter the scope options `address phone`, then the request +to {project_name} will contain the scope parameter `scope=openid address phone`. Note that the default scope specified here is overwritten if the `login()` options specify scope explicitly. * timeSkew - Set an initial value for skew between local time and {project_name} server in seconds (only together with token or refreshToken). * checkLoginIframe - Set to enable/disable monitoring login state (default is `true`). * checkLoginIframeInterval - Set the interval to check login state (default is 5 seconds).