Ilya Isakin
Ilya Isakin

Reputation: 11

WSO2: How admin can generate user access token without user password

I'm trying to implement OTA (one time access) using WSO2 (IS 5.7.0, AM 2.5.0, EI 6.4.0), and I need to find a way to generate user access token.

I have tried:

Upvotes: 1

Views: 408

Answers (2)

Dinali Dabarera
Dinali Dabarera

Reputation: 120

You can write a custom grant handler, to authenticate user, not via password, but using something he has unique(mobile no, email, etc) as per your requirement and generates an access token from that grant.

You can easily do a token call to WSO2 Identity Server through your custom grant and get the access token.

You can check out for more details in [1]

[1] https://docs.wso2.com/display/IS570/Writing+a+Custom+OAuth+2.0+Grant+Type

Upvotes: 0

Bee
Bee

Reputation: 12513

Even admins are not allowed to generate tokens for a user without their consent.

For one-time password, this should work. https://docs.wso2.com/display/IS570/Configuring+Email+OTP

Upvotes: 1

Related Questions