Hi. I am now in the process of upgrading our Okta dependencies. We are going from okta-angular 1.4.0
to okta-angular 3.0.1
and from okta-signin-widget 3.3.0
to okta-sign-in-widget 5.0.0
We are using the implicit flow, We are using the sign in widget and then using a redirect component which uses the OktaAuthService to read the tokens from the redirect and set up authorization. We need to be receiving the groups scope in the token, and our current version does; our authorization server is configured to send it. The configuration object for the signIn widget looks like this:
authParams {
display: āpageā
issuer: āhttps://XXXXXXXXXXXXXXXXXXXXXXXXXXX/oauth2/defaultā
pkce: false
responseType: āid_tokenā
scopes: [āopenidā, āprofileā, āemailā, āgroupsā]
}
baseUrl: "XXXXXXXXXXXXXXXXXXXXXXXXXXXX"
clientId: "XXXXXXXXXXXXXXX"
features: {
showPasswordToggleOnSignInPage: true
}
helpLinks: {
help: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX}
i18n: {en: {ā¦}}
idpDisplay: "SECONDARY"
idps: (2) [{ā¦}, {ā¦}]
logo: "/assets/images/logo.svg"
redirectUri: "XXXXXXXXXXXXXX/callback"
For some reason, the scopes Iām setting on the authParams is being overwriiten to [āopenidā, āemailā], so that is the only data Iām getting back. I need the groups and profile data. How do I make it request this data? The old versions have no problems getting this data.
Ted