Open vitalybrandes opened 1 year ago
Issue #8840 similar and never closed
@vitalybrandes add a roles scope on server
{
"name": "OpenIdScope",
"Description": "Roles Scope",
"DisplayName": "Roles",
"ScopeName": "roles",
"Resources": null
}
and create an application that allows profile,email and roles scopes.
Then use openid client to connect to server using this app. Request the mentioned scopes. In client script, when you iterate you should receive the role claims
@vitalybrandes add a roles scope on server
{ "name": "OpenIdScope", "Description": "Roles Scope", "DisplayName": "Roles", "ScopeName": "roles", "Resources": null }
and create an application that allows profile,email and roles scopes.
Then use openid client to connect to server using this app. Request the mentioned scopes. In client script, when you iterate you should receive the role claims
Are scopes names case sensetive?
yes
yes
I will check it again, but until now I created the scopes in UI, (not sure about the case sensitive letter, need to check) then using client, I didn't got the "role" claim in login script.
yes
@vitalybrandes add a roles scope on server
{ "name": "OpenIdScope", "Description": "Roles Scope", "DisplayName": "Roles", "ScopeName": "roles", "Resources": null }
and create an application that allows profile,email and roles scopes. Then use openid client to connect to server using this app. Request the mentioned scopes. In client script, when you iterate you should receive the role claims
Are scopes names case sensetive?
Hi @MichaelPetrinolis , It didn't works. I setup roles scope in server app as well in client. the email scope are ok, but the roles No!
@MichaelPetrinolis Do you have any idea?
Describe the bug
I am trying to setup OpenId user authentication, registration, login with two Orchard Core apps
one used as OpenID Server app second used as OpenID Client app ().
The registration part is or, all scopes worked perfect. On login script, the roles / role scope not exist and following that the created user have no roles.