Answer the question
In order to leave comments, you need to log in
How to use Oauth authorization in ADFS?
I have a web application whose users can access it via Oauth. There is a server with WinServ2012 r2.
Raised the role of ADFS (as I understand it, Oauth is already included). I can't find any documentation on this topic. I would like to be able to use user accounts in Active Directory for authorization in a web application.
I found examples of use, but I don’t catch up with something how to implement it. For example:
Getting the authorization_code:
youradfsserver/adfs/oauth2/authorize?response_type=code&client_id=YourRegisteredClientId&redirect_uri=YourRedirectUri&resource=yourrelayingpartyId
asdf.domain.ru/adfs/oauth2/token?grant_type=authorization_code&client_id=01&redirect_uri= https://localhost/auth&code=U2dIhBsRt0eDn....and an error occurs
"There are no registered protocol handlers on path /adfs/oauth2/token to process the incoming request"I'm posting with postman.
{
"error": "invalid_grant",
"error_description": "MSIS9612: The authorization code received in 'code' parameter is invalid. "
}
Answer the question
In order to leave comments, you need to log in
If someone repeats this, please make an instruction and share a link to the blog/forum/document.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question