Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
682 views
in Technique[技术] by (71.8m points)

c# - What does https://<myapp>.azurewebsites.net/.auth/login/aad/callback mean?

I am configuring Authentication for my Web application using Azure App Service. I chose AAD with Express mode to register my application.

It registered my application at AAD with reply-url as https://.azurewebsites.net/.auth/login/aad/callback. I intercepted the requests GET POST for above callback. It sends the access token.

Question: I have not implemented the controller for above reply-url in web application. Who is handling it correctly?

Please shed me some light on above callback. Can it be changed to different POST Url if needed?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The /.auth/login/{provider}/callback endpoint is exposed by Azure’s own Easy Auth [1].

There’s one for each of the identity providers in [1].

In short, they are responsible for extracting access token etc from the provider, setting cookies and so on. They are handled prior to the request landing in your app.

[1] https://docs.microsoft.com/en-us/azure/app-service/overview-authentication-authorization


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...