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
Post a Comment