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

API generation ignores additional scopes if more than one #194

Closed
Ferlonas opened this issue Apr 23, 2020 · 0 comments
Closed

API generation ignores additional scopes if more than one #194

Ferlonas opened this issue Apr 23, 2020 · 0 comments

Comments

@Ferlonas
Copy link
Contributor

When generating the API for an endpoint which requires more than one scope, any scope beyond the first will not be checked in the authorizer.

e.g.

"OAuth2": [
  "pay:payment-methods:read",
  "pay:payment-tokens:read"
]

leads to the generated code

ctx, ok := authBackend.AuthorizeOAuth2(r, w, "pay:payment-methods:read")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants