Skip to content

Commit

Permalink
Fix AAD custom auth bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Wang committed Aug 13, 2024
1 parent e5edf99 commit 5373c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/msha/auth/routes/auth-login-provider-custom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const httpTrigger = async function (context: Context, request: IncomingMessage,
location = `https://github.com/login/oauth/authorize?response_type=code&client_id=${authFields?.clientIdSettingName}&redirect_uri=${redirectUri}/.auth/login/github/callback&scope=read:user&state=${hashedState}`;
break;
case "aad":
location = `${authFields?.aadIssuer}/authorize?response_type=code&client_id=${authFields?.clientIdSettingName}&redirect_uri=${redirectUri}/.auth/login/aad/callback&scope=openid+profile+email&state=${hashedState}`;
location = `${authFields?.openIdIssuer}/authorize?response_type=code&client_id=${authFields?.clientIdSettingName}&redirect_uri=${redirectUri}/.auth/login/aad/callback&scope=openid+profile+email&state=${hashedState}`;
break;
case "facebook":
location = `https://facebook.com/v11.0/dialog/oauth?client_id=${authFields?.appIdSettingName}&redirect_uri=${redirectUri}/.auth/login/facebook/callback&scope=openid&state=${hashedState}&response_type=code`;
Expand Down

0 comments on commit 5373c5f

Please sign in to comment.