OAuth: Redirect URL is cleared unexpectedly and Refresh Token controls cannot be disabled
What happens?
API Reference 1.72.0:
Hi, First of all, thank you for the excellent and truly unmatched features you provide, as well as the significant improvements you have made recently. Scalar has become an incredibly powerful tool.
However, we are still facing two challenges with OAuth:
1. Redirect URL is cleared unexpectedly
The Redirect URL field becomes empty in either of these cases:
- Changing the Credentials Location field.
- Successfully obtaining a token using the Authorize button and then selecting Clear.
Expected behavior
The configured Redirect URL should remain unchanged unless the user explicitly edits or clears it. Changing the Credentials Location or clearing the obtained tokens should not reset this field.
2. Refresh Token controls are always displayed
The Refresh URL field and Refresh button are always displayed, even when the OAuth provider does not support refresh tokens or no refresh token is available.
When a user selects Refresh in this situation, the following error is shown:
No refresh token available
Expected behavior
Ideally, the Refresh button and Refresh URL field should be hidden or disabled when refresh tokens are not supported or no refresh token is available.
Is there currently any configuration option to disable or hide this feature? If not, would it be possible to make the Refresh Token controls optional or conditionally displayed?
What did you expect to happen?
- The configured Redirect URL should remain unchanged unless the user explicitly edits or clears it. Changing the Credentials Location or clearing the obtained tokens should not reset this field.
- Ideally, the Refresh button and Refresh URL field should be hidden or disabled when refresh tokens are not supported or no refresh token is available.
OpenAPI Document
No response
Source: scalar/scalar