Closed afreakk closed 2 years ago
Hello there, The error is generated from this kubebuilder annotation
// +kubebuilder:validation:Enum=id_token;code;token
It seems it would be enough to expand the enum here and regen the CRD
Hello there, For clarification, are you trying to pass an array, or a single field with the value of "id_token token"? The following sample is working just fine
apiVersion: hydra.ory.sh/v1alpha1
kind: OAuth2Client
metadata:
name: my-oauth2-client
namespace: default
spec:
grantTypes:
- client_credentials
- implicit
- authorization_code
- refresh_token
responseTypes:
- id_token
- code
- token
scope: "read write"
secretName: my-secret-123
yeah, that deploys fine, but if you tried using multiple responseTypes in a implicit flow, you got
invalid: spec.responseTypes: Unsupported value: "id_token token": supported values: "id_token", "code", "token"
I see, so basically right now we support an OR scenario, but not an AND one.
We would like to support the following options:
apiVersion: hydra.ory.sh/v1alpha1
kind: OAuth2Client
metadata:
name: my-oauth2-client
namespace: default
spec:
grantTypes:
- client_credentials
- implicit
- authorization_code
- refresh_token
responseTypes:
- id_token
- code
- token
- code token
- code id_token
- id_token token
- code id_token token
scope: "read write"
secretName: my-secret-123
Preflight checklist
Describe the bug
If i do implicit grant with
response_type=id_token+token
and i configureOAuth2Client
with:I get
The client is not allowed to request response_type 'id_token token'.
BUT If i manually create the client usingPOST
& json body withI am allowed to do implicit grant with
response_type=id_token+token
. But maester wont let me configure response_types like that:Results in:
Reproducing the bug
kind: OAuth2Client
with:Relevant log output
No response
Relevant configuration
No response
Version
oryd/hydra-maester:v0.0.24
On which operating system are you observing this issue?
No response
In which environment are you deploying?
Kubernetes with Helm
Additional Context
No response