question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Authorization value is lost on refresh

See original GitHub issue

Q&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:

  1. Click on ‘Authorize’
  2. Enter value
  3. Press ‘Authorize’
  4. Refresh the page
  5. Click ‘Authorize’ again

Expected behavior

I should see “Value: ******”

Screenshots

screenshot from 2018-09-06 06-26-58 screenshot from 2018-09-06 06-27-47

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:closed
  • Created 5 years ago
  • Reactions:17
  • Comments:5

github_iconTop GitHub Comments

14reactions
hanutcommented, Dec 4, 2019

Is this going to be merged anytime soon ? It is pretty troublesome to put the authentication part in every time you refresh the UI.

0reactions
cognifloydcommented, May 5, 2020

#5939 implements this and includes a feature flag (disabled by default). I hope SmartBear folks will take a look soon!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found