RFC 6749 Section 6 - Refresh Token with scope #12
-
Which version of Duende IdentityServer are you using? Which version of .NET are you using? https://datatracker.ietf.org/doc/html/rfc6749#section-6 mentions an optional The TokenRequestValidator.cs code var validatedResources = await _resourceValidator.ValidateRequestedResourcesAsync(new ResourceValidationRequest
{
Client = _validatedRequest.Client,
Scopes = _validatedRequest.RefreshToken.AuthorizedScopes,
ResourceIndicators = resourceIndicators,
}); is using the AuthorizedScopes from the storage for validation. We could implement this in the |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
@AndersAbel may I ask if you have found anything yet? Usages of request.Raw.Get with the "scope" parameter seem to be quite limited and not within the /connect/token path for a refresh_token. Thanks! |
Beta Was this translation helpful? Give feedback.
-
(note: we're moving this issue to our new community discussions) |
Beta Was this translation helpful? Give feedback.
-
We''re looking into this at the moment. |
Beta Was this translation helpful? Give feedback.
-
The RFC you provided the link to mentions this is optional. We don't have a use case either at the moment so it doesn't have priority for now. Alternatively you could look into resource indicators. These might be a better option because they are organized on the identity provider level and are less client dependent. |
Beta Was this translation helpful? Give feedback.
The RFC you provided the link to mentions this is optional. We don't have a use case either at the moment so it doesn't have priority for now.
We will however consider this. I'll add your suggestion to our internal ideas document. Thanks for suggesting it!
Alternatively you could look into resource indicators. These might be a better option because they are organized on the identity provider level and are less client dependent.