oauth2 icon indicating copy to clipboard operation
oauth2 copied to clipboard

How to add a custom grant type, such as email + verification code

Open bingfenglai opened this issue 2 years ago • 2 comments

How to add a custom grant type, such as email + verification code.

bingfenglai avatar Mar 04 '22 08:03 bingfenglai

when you say "grant type", do you mean "grant_type" which is passed into the token endpoint? If so, then i would use SetPasswordAuthorizationHandler on the server. And use the password grant_type. Just send in username with email and password with token. Done. Fixed it. Of course this server that receives this password grant call would need access to the db where the code is stored for comparison of course. there is no open standard for custom grant types AFAIK.

jarlandre avatar Jan 19 '23 12:01 jarlandre

Oauth2 is used for authorization, not authentication.

Inasayang avatar May 17 '23 09:05 Inasayang