asp.net mvc - Can you hard code an Azure AD login into an application? -


i'm designing application uses embedded power bi reports requires authentication token azure ad account view report.

on navigating page holds report, user directed azure ad portal login, , once enter credentials redirected correct page url contains access token. token pulled url , used in displaying report.

so question (seemingly) simple: can skip navigating page , somehow hard code azure login app?

i'm not sure if requires of code, it's more of abstract/general question.

but here redirect azure ad login portal:

 response.redirect(string.format("https://login.windows.net/common/oauth2/authorize?{0}", querystring)); 

and here fetch code resulting url after user authenticates:

model.code = request.params.getvalues("code")[0]; 

yes. aad supports headless auth. please see example here: https://github.com/azure-samples/active-directory-dotnet-native-headless.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -