feat: add resource owner scope / claim (#2274)

* feat: add resource owner scope / claime

* fix: private claimes

* fix: private claims

* fix: add claim description

* Update claims.md

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
Fabi
2021-08-31 11:49:31 +02:00
committed by GitHub
parent c884a11f1b
commit 31a91a0039
7 changed files with 119 additions and 45 deletions

View File

@@ -109,6 +109,9 @@ func (c *Client) IsScopeAllowed(scope string) bool {
if strings.HasPrefix(scope, ScopeUserMetaData) {
return true
}
if strings.HasPrefix(scope, ScopeResourceOwner) {
return true
}
for _, allowedScope := range c.allowedScopes {
if scope == allowedScope {
return true