i cant get my head around a simple SPA accessing a aspnet web api usding adaljs and (on-premise) ADFS 4.0.
I would like to show different things on the SPA using roles, but the access_token nor the Id_token are containing any role claims.
The adfs application is configured to return the role claims based on groups.
Am i miss understanding something crucial or must the role be present in the id_token/access_token?
@thepill As mentioned here, for the role claims to be present in the id_token, the appRoles property must be defined in the application manifest. Here is an AAD sample of a .Net app which has some instructions you and can follow for your SPA as well.
Please reopen issue if necessary.
hi people,
i cant get my head around a simple SPA accessing a aspnet web api usding adaljs and (on-premise) ADFS 4.0.
I would like to show different things on the SPA using roles, but the access_token nor the Id_token are containing any role claims.
The adfs application is configured to return the role claims based on groups. Am i miss understanding something crucial or must the role be present in the id_token/access_token?
Thanks in advice