Azure-Samples / Azure-Samples/ms-identity-blazor-server

Redirecting for Authorization on fetching Api resource info, only when a browser window is open

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
57
Forks
34
PR merge metrics
No merged PRs in 30d

Description

> Please provide us with the following information:
> ---------------------------------------------------------------

### This issue is for a: (mark with an `x`)
```
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
```

### Minimal steps to reproduce
>Step 1: Open a browser window(should be the same browser, where you app will render)
Step 2: Run the App
Step 3: Sign in
Step 4: Click on the Todo in the left menu, to fetch the Todo items
Step 5: Observe that it does not redirect now.
Step 6: Stop the App
Step 7: Run the App again ( Ensure that Browser window is not closed.
Step 8: Do the same step as Step '4'
Step 9: You will observe now that, Url is redirected to Authorize endpoint and then fetches the API info.

Behavior is not the same when the browser window is closed, In the step 9, we don't see that extra redirect.

### Any log messages given by the failure
>

### Expected/desired behavior
> We do not want to show user that there is a redirect in step 9, incase if a window is already opened.

### OS and Version?
> Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Windows 11
### Versions
>

### Mention any other details that might be useful

> ---------------------------------------------------------------
> Thanks! We'll be in touch soon.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.