简体   繁体   中英

WSO2 IS - add user in role with self provisionning

We're currently working with WSO2 IS server, version 5.7.0. At this time, everything seems to be ok excepting one thing.

We activated self-provisionning and we added a "Service provider" with oauth2 authentication enabled.

It created the role named "Application/myapp".

Then, going on the "authorize" form, we press "Register now" button and we can create a user. It sends validation mail, and the user is created.

But, the user is not assigned to Application/myapp role.

Is there something we can do to assign user role at registration time ?

Thanks !

I think you have confused. The register now will be redirected to the self sign up form. The users created there will be automatically assigned to the 'Internal/selfsignup' role.

There is no link with the created application and the self sign up process. The automatically created application role (Application/myapp) is for a different requirement. The users with that application role can perform the update and delete operations of the application.

Is there something we can do to assign user role at registration time?

No, you can't create a role. If you want to have this functionality, we need to have your own self sign up for the application and send the user registration request to the IS using SCIM. Here you can find the API definitions. You can use the oAuth tokens to access these APIs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM