-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Azure.IdentityClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-author-feedbackWorkflow: More information is needed from author to address the issue.Workflow: More information is needed from author to address the issue.no-recent-activityThere has been no recent activity on this issue.There has been no recent activity on this issue.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Description
- Package Name: @azure/identity
- Package Version: 2.0.0-beta.3
- Operating system: Windows
- nodejs
- version: 14.15.0
- browser
- name/version: Edge Insiders 92.0.891.1
- typescript
- version: 4.1.2
- Is the bug related to documentation in
- README.md
- source code documentation
- SDK API docs on https://docs.microsoft.com
Describe the bug
Using the InteractiveBrowserCredential in a React SPA gives no way to sign out once the user is authenticated. I attempted to force a sign out by redirecting the browser to `` which appeared to work, but the next usage of the credential succeeded without any login prompt.
It appears that there are some values left in session storage after the sign out that is causing this.
To Reproduce
Steps to reproduce the behavior:
- Unzip repro project signout-repro.zip
- Register a SPA app in the Azure portal with redirect
http://localhost:3000 - Paste your app ID in App.tsx where it says
YOUR_APP_ID - Run
yarn installornpm install - Run the app with
yarn startornpm start - Click Sign in, sign in with an account
- Click Sign out
- When returned to the app, click Sign in again.
Expected behavior
You should be prompted to login again inside a pop-up window.
Ideally the credential object should have some function to explicitly invalidate or log out.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
Azure.IdentityClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-author-feedbackWorkflow: More information is needed from author to address the issue.Workflow: More information is needed from author to address the issue.no-recent-activityThere has been no recent activity on this issue.There has been no recent activity on this issue.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
