asp.net - Azure Active Directory Reply URL redirecting to root -




i trying implement authentication using azure ad. in application setting setting reply urls https://example.com/myapp/login.aspx. when login redirects me https://example.com , not specified url https://example.com/myapp/login.aspx

how can make sure redirects @ proper url? following code startup.

    public void configuration(iappbuilder app) {     app.setdefaultsigninasauthenticationtype(cookieauthenticationdefaults.authenticationtype);      app.usecookieauthentication(new cookieauthenticationoptions());      app.useopenidconnectauthentication(         new openidconnectauthenticationoptions         {             clientid = configurationmanager.appsettings["owin:clientid"].tostring(),             authority = "https://login.microsoftonline.com/yz5036e3-2951-4c11-af4d-da019fa6a57d",             redirecturi = configurationmanager.appsettings["redirecturi"].tostring()         }); } 

how trigger sign in flow? if following samples , initiating sign in invoking challenge shown in https://github.com/azure-samples/active-directory-dotnet-webapp-openidconnect/blob/master/webapp-openidconnect-dotnet/controllers/accountcontroller.cs, might want make sure redirecturi in authenticationproperties points url (as in, after auth) want land on. know, it's incredibly confusing - redirecturi property in oidc options point redirect want use in auth protocol, 1 on want receive auth token- , 1 in authenticationproperties local url want redirected after exchange identity provider concluded. proerties have same name historical reasons.





wiki

Comments

Popular posts from this blog

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -

Asterisk AGI Python Script to Dialplan does not work -