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

(improvement, yaml): Update default OAuth configuration #3573

Merged
merged 8 commits into from May 13, 2024

Conversation

amckinney
Copy link
Contributor

This builds upon the changes introduced in #3563, and adds the following:

  • Update YAML configuration to expose clientId, clientSecret and scopes request properties.
  • Add default configuration to simplify the expected use case.
  • Refactor fern check to include more validation around the added configuration.

With this, the simplest OAuth configuration available to the user is the following:

name: api
imports:
  auth: auth.yml

auth: OAuthScheme
auth-schemes:
  OAuthScheme:
    scheme: oauth
    type: client-credentials
    get-token:
      endpoint: auth.getToken

@amckinney amckinney requested a review from dsinghvi as a code owner May 8, 2024 17:38
@amckinney amckinney merged commit b04e64b into main May 13, 2024
27 checks passed
@amckinney amckinney deleted the amckinney/oauth/config branch May 13, 2024 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants