adal - Azure OAuth authentication from C# console application -


i want login https://lcs.dynamics.com c# console application.

when navigate lcs.dynamics.com, redirects https://login.microsoftonline.com/common/oauth2/authorize

here enter username xyz@contoso.onmicrosoft.com , password, system authenticates , redirects lcs.dynamics.com

for work in azure active directory, have created azure ad web api application redirect url https://lcs.dynamics.com

i tried both approaches, creating native application , authenticating using username , password web api , authenticating using secret key.

in both cases, receive auth token parse bearer <auth_token> , set header value when make httprequest, response still login page instead of moving ahead.

what doing wrong here?


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -