Mohsen Mahmoudi
Mohsen Mahmoudi

Reputation: 127

How to implement spring oauth2 custom flow?

We have a oath2 authentication and authorization server. In this server we implement custom flow of authentication. Steps are:

1- handshake (mobile number)

2- send otp to mobile number

3- verify otp (in this step we register user with mobile number)

4- send token (for access other services)

5- refresh token

At now, we have a client application that users register and use services from this application. We want to integrate with spring oauth2. Is there any way in spring that to implement this authentication flow in client application?

Upvotes: 0

Views: 524

Answers (1)

Mohsen Mahmoudi
Mohsen Mahmoudi

Reputation: 127

With this sample spring-custom-token-auth, We can create custom authentication scenario in spring security.

Upvotes: 1

Related Questions