Disable offline, offline_access, openid scopes for clients #2419
Answered
by
klvnnsrikanth
klvnnsrikanth
asked this question in
Q&A
-
I have a use case where I am using Hydra as a oAuth server and not for OIDC. Is there a way to disable adding these scopes by default? I tried setting the environment variable Example: curl -X POST http://localhost:4445/clients -d'{"client_id": "a4192bc0-8d2e-48b0-9c6b-2a276db1ac2b", "scope": "", "secret": "test123"}' {"client_id":"a4192bc0-8d2e-48b0-9c6b-2a276db1ac2b","client_name":"","client_secret":"","redirect_uris":null,"grant_types":null,"response_types":null,"scope":"()","audience":[],"owner":"","policy_uri":"","allowed_cors_origins":[],"tos_uri":"","client_uri":"","logo_uri":"","contacts":null,"client_secret_expires_at":0,"subject_type":"public","jwks":{},"token_endpoint_auth_method":"client_secret_basic","userinfo_signed_response_alg":"none","created_at":"2021-03-23T14:27:02Z","updated_at":"2021-03-23T14:27:02.483041Z","metadata":{}} |
Beta Was this translation helpful? Give feedback.
Answered by
klvnnsrikanth
Mar 23, 2021
Replies: 1 comment
-
I think I got it to work with defining the environment variable to be just this |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
klvnnsrikanth
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think I got it to work with defining the environment variable to be just this
OIDC_DYNAMIC_CLIENT_REGISTRATION_DEFAULT_SCOPE=