Nerzal / gocloak

golang keycloak client
Apache License 2.0
991 stars 271 forks source link

LoginClient require scope in keycloak version 20 #395

Open kianyee opened 1 year ago

kianyee commented 1 year ago

Is your feature request related to a problem? Please describe. keycloak version 20, scope is require in request body in /auth/realms/marketplace/protocol/openid-connect/token

Describe the solution you'd like Add Scope argument in LoginClient function

Screenshot 2023-01-03 at 10 21 52 AM

spacepatcher commented 1 year ago

Hi! This limitation can be bypassed on Keycloak side. Just assign a default scope value and you won't have to specify it in the request to generate the token. It just worked for me.