Fix advertised scopes for oauth protected resources
Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
@@ -31,7 +31,7 @@ type ProtectedResourceMetadata struct {
|
||||
func NewProtectedResourceMetadata(
|
||||
resource uri.URI,
|
||||
authorizationServer uri.URI,
|
||||
registeredScopes []coredata.OAuth2Scope,
|
||||
writeScopes []coredata.OAuth2Scope,
|
||||
) *ProtectedResourceMetadata {
|
||||
return &ProtectedResourceMetadata{
|
||||
Resource: resource,
|
||||
@@ -39,6 +39,6 @@ func NewProtectedResourceMetadata(
|
||||
BearerMethodsSupported: []string{
|
||||
"header",
|
||||
},
|
||||
ScopesSupported: protectedResourceScopes(registeredScopes),
|
||||
ScopesSupported: protectedResourceScopes(writeScopes),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user