oauth2
oauth2 copied to clipboard
How to add a custom grant type, such as email + verification code
How to add a custom grant type, such as email + verification code.
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.
Oauth2 is used for authorization, not authentication.