Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

angular - WebApp with MSAL SSO for Redirect

I am working on creating a Angular WebApp, http://localhost:80/MyApp and applying MSAL for authentication.

Parent Component (Landing page):

http://localhost:80/MyApp

Child Component:

http://localhost:80/MyUsers?UserId=111

My question, is it possible if user hits the Child URL then it routes to SSO and come back to child URL itself with URI param, instead of Parent or Landing url?

Note: Landing page SSO redirection is working fine by applying below config:

ClientID: 'asdhjsahiadsh',
authority: "",
redirectUri: 'http://localhost:80/MyApp',
cacheLocation: "sessionStorage",
postLogoutRedirectUri: "http://localhost:80/MyApp",
navigateToLoginRequestUrl: false,
consentScopes: [],
unprotectedResources: ["https://www.microsoft.com/en-us/"],
logger: (logLevel, message, piiEnabled) => undefined,
piiLoggingEnabled: true

Any help would be much appreciated.

question from:https://stackoverflow.com/questions/66047432/webapp-with-msal-sso-for-redirect

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

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...