Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ability to refresh tokens for oauth flows #4302

Merged
merged 3 commits into from
Aug 29, 2024

Conversation

amk-dev
Copy link
Contributor

@amk-dev amk-dev commented Aug 27, 2024

Fixes HFE-548

Changes

This PR adds the ability to refresh generated oauth tokens. We only enable refresh tokens for the AuthCode flow. for other flows it doesnt make much sense to add refresh token flows as per my reading. ( but incase we get user requests, we can easily add that ).

The support for the OAuth 2 authorization type is extended to the CLI, relevant business logic to derive Authorization headers already existed but a request with the Authorization type set to oauth-2 was blocked previously reporting a status code of 501 which is changed herewith. This was also the case with the multipart/form-data content type which is enabled along with. Necessary updates are made to the test suite aimed at increasing coverage along with the relevant fixture additions.

@amk-dev amk-dev changed the base branch from main to next August 27, 2024 12:44
@amk-dev amk-dev marked this pull request as ready for review August 28, 2024 16:15
@liyasthomas liyasthomas linked an issue Aug 28, 2024 that may be closed by this pull request
1 task
@AndrewBastin AndrewBastin merged commit 181ad09 into hoppscotch:next Aug 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature]: Support OAuth2/OIDC Refresh Token
4 participants