Should DefaultClientConfigurationValidator.ValidateGrantTypesAsync method also respect client offline access property? #137
Unanswered
i00lii
asked this question in
IdentityServer
Replies: 1 comment
-
I want to be sure I understand what your goal is. You mentioned only allowing the offline_access grant type, but offline_access is a scope defined in the OIDC extension to OAuth 2.0 and not one of the grant types defined in the OAuth 2.0 spec. You will need at least one grant type allowed for your client and which grant type is appropriate will depend on what type of client you have. Is your application an application with users where you'll be obtaining an access token and refresh token for each user? Or is your scenario a server-to-server scenario with no users? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
IdentityServer version
7.2.0
.NET version
NET8
Description
This might sound wired, but according to some business requirements we have to implement the following scenario:
Current implementation of
DefaultClientConfigurationValidator.ValidateGrantTypesAsync
is not checking offline_access, since it's not a part ofclient.AllowedGrantTypes
.Current implementation:
Suggested changes:
Reproduction steps
No response
Expected behavior
No response
Logs
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions