Nerzal / gocloak

golang keycloak client
Apache License 2.0
1.01k stars 275 forks source link

ClientScope has no mapping for "type" #479

Open namanrawal47 opened 2 months ago

namanrawal47 commented 2 months ago

Describe the bug I'm sure this is a pretty simple fix, but currently the struct representation for ClientScope does not contain "type". As a result, after generating Client Scopes they default to type none. Type none cannot be added to a client under defaultClientScopes nor optionalClientScopes.

To Reproduce Steps to reproduce the behavior:

  1. Bootstrap Keycloak and generate client scopes
  2. Generated client scopes cannot be added to clients unless they are of type Default or Optional.

Expected behavior type should exist as an additional field under the ClientScope struct.

Desktop (please complete the following information):