Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logout doesn't redirect back when using AD tenant in the authority url. #1569

Closed
1 of 5 tasks
Riff451 opened this issue Apr 30, 2020 · 6 comments
Closed
1 of 5 tasks
Assignees
Labels
aad-service Related to the AAD / MSA service bug A problem that needs to be fixed for the feature to function as intended. no-issue-activity Issue author has not responded in 5 days

Comments

@Riff451
Copy link

Riff451 commented Apr 30, 2020

Library

Description

Hi all, this is about an issue I already explained here and as requested I'm opening a new issue.
I'm using a B2C tenant even if I'm trying the standard Azure AD identity feature (personal MS and organizational accounts).
I've tried a couple of different combinations with authorities and accounts.

Following are authorities that all work with both accounts, personal and organizational:

authority: "https://login.microsoftonline.com/consumers"
authority: "https://login.microsoftonline.com/organizations"
authority: "https://login.microsoftonline.com/common"

But if I try to use my tenantId or name (authority: "https://login.microsoftonline.com/<tenant_name_or_id>") with my organizational account the logout url doesn't get triggered.

Regression

I haven't tried a previous version.

Configuration

MsalConfig: {
        auth: {
            clientId: "",
            authority: "https://login.microsoftonline.com/<my_tenenat_id_or_name>",
            redirectUri: "https://localhost:30444",
            postLogoutRedirectUri: "https://localhost:30444/logout"
        },
        cache: {
            cacheLocation: "sessionStorage",
            storeAuthStateInCookie: false,
        }
}

This the relevant sections of the manifest of my app registered in the tenant:

"logoutUrl": "https://localhost:30444/logout"
[...]
"replyUrlsWithType": [
		{
			"url": "https://localhost:30444",
			"type": "Spa"
		},
		{
			"url": "https://localhost:30444/logout",
			"type": "Web"
		}
]

Reproduction steps

  1. call msal.logout();

Expected behavior

The page should redirect back to my logout url, but it gets stuck here:

image

Browsers

Tried with Chrome 81.0.4044.129 (Official Build) (64-bit) and Firefox 75.0 (64-bit).

Thanks!

@Riff451 Riff451 added the bug A problem that needs to be fixed for the feature to function as intended. label Apr 30, 2020
@Riff451
Copy link
Author

Riff451 commented Apr 30, 2020

I opened this, by mistake, as a bug. Sorry, it's probably more an investigation. Not sure if I can remove the label.

@pkanher617 pkanher617 added aad-service Related to the AAD / MSA service b2c-service Related to the Azure B2C service-specific issues labels May 6, 2020
@pkanher617 pkanher617 self-assigned this May 6, 2020
@github-actions
Copy link
Contributor

This issue has not seen activity in 14 days. It may be closed if it remains stale.

@github-actions github-actions bot added the no-issue-activity Issue author has not responded in 5 days label May 27, 2020
@SebastianPellitero
Copy link

I still have the same issue.

@Riff451
Copy link
Author

Riff451 commented May 28, 2020

I still have the same issue.

Hi, I have not retried recently. Did you try with the latest version, 2.0.0-beta.2? When I tried it was 2.0.0-beta.0 Thanks.

@github-actions github-actions bot removed the no-issue-activity Issue author has not responded in 5 days label May 29, 2020
@github-actions
Copy link
Contributor

This issue has not seen activity in 14 days. It may be closed if it remains stale.

@github-actions github-actions bot added the no-issue-activity Issue author has not responded in 5 days label Jun 12, 2020
@tnorling tnorling removed the b2c-service Related to the Azure B2C service-specific issues label Jul 31, 2020
@hectormmg hectormmg self-assigned this Aug 10, 2020
@jasonnutter
Copy link
Contributor

Closing, as this is an issue with AAD.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
aad-service Related to the AAD / MSA service bug A problem that needs to be fixed for the feature to function as intended. no-issue-activity Issue author has not responded in 5 days
Projects
None yet
Development

No branches or pull requests

6 participants