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