Authorization value is lost on refresh
See original GitHub issueQ&A (please complete the following information)
- OS: Ubuntu
- Browser: Chrome
- Version: 68
- Method of installation: docker hub
- Swagger-UI version: 3.18.2
- Swagger/OpenAPI version: OpenAPI 3.0
Content & configuration
Example Swagger/OpenAPI definition:
components:
securitySchemes:
x-api-token:
type: apiKey
name: x-api-token
in: header
links: {}
callbacks: {}
security:
- x-api-token: []
Describe the bug you’re encountering
Authorization value is lost on refresh
To reproduce…
Steps to reproduce the behavior:
- Click on ‘Authorize’
- Enter value
- Press ‘Authorize’
- Refresh the page
- Click ‘Authorize’ again
Expected behavior
I should see “Value: ******”
Screenshots
Additional context or thoughts
I thought that’s the whole purpose of authorize button - to save user session so that it’s not lost on refresh
Issue Analytics
- State:
- Created 5 years ago
- Reactions:17
- Comments:5
Top Results From Across the Web
Authorization header not present on page refresh
Same issue I faced yesterday, so the solution is, to put the headers setting logic in one main component like "Header" or "Footer"...
Read more >Why is authentication lost after refreshing my single page ...
There could be a few different reasons why authentication is lost after refreshing a single page application. Common reasons are 1) Auth0 ......
Read more >Refresh access tokens
Refresh token lifetimes are managed through the Authorization Server access policy. The default value for the refresh token lifetime ( ...
Read more >Retrieve an Access Token and Refresh Token
The request is missing a required parameter, has an invalid value, or is otherwise improperly formed. invalid_client, The client authentication failed. This is ......
Read more >Refresh Tokens with OAuth 2.0 - LinkedIn
Refresh Token in the request is missing. It is mandatory parameter. Pass the stored Refresh Token received as part of initial access token...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Is this going to be merged anytime soon ? It is pretty troublesome to put the authentication part in every time you refresh the UI.
#5939 implements this and includes a feature flag (disabled by default). I hope SmartBear folks will take a look soon!