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

OAuth2 support #59

Open
rospe opened this issue Aug 28, 2023 · 1 comment
Open

OAuth2 support #59

rospe opened this issue Aug 28, 2023 · 1 comment

Comments

@rospe
Copy link

rospe commented Aug 28, 2023

Hi,

it'd be great if your library would support OAuth2 auth flow for specific URLs, since all our $refs are secured by that method. For example, we could provide client credentials (clientid and client secret + token endpoint) via ENV and would then expect that the library requests a bearer token and send it along in the header for the respective requests to our selected referred URLs.

@gazpachoking
Copy link
Owner

This isn't something that would be included directly in the library, but it should be fairly easy to implement yourself. You can write a custom loader to grab the references and return the loaded json.

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

No branches or pull requests

2 participants