-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Applying example to remix authenticator strategy #51
Comments
About the name: forget it, inspecting the code I found that My problem seems related to configuration of the
Probably this is a misconfiguration on my side? I'm trying to use an OIDC service served by Keycloak |
I think I will need to add more possible values to the |
@sergiodxa yes, my impression was that those interfaces are too strict on possible values, or at least the list of possible values seems not updated enough. |
Hi, I have the same issue with Ory Hydra. Some values are not taken into account in the enums. Here is the ZodError content: [
{
"received": "client_credentials",
"code": "invalid_enum_value",
"options": [
"authorization_code",
"refresh_token",
"urn:ietf:params:oauth:grant-type:device_code",
"urn:ietf:params:oauth:grant-type:jwt-bearer",
"implicit"
],
"path": [
"grant_types_supported",
2
],
"message": "Invalid enum value. Expected 'authorization_code' | 'refresh_token' | 'urn:ietf:params:oauth:grant-type:device_code' | 'urn:ietf:params:oauth:grant-type:jwt-bearer' | 'implicit', received 'client_credentials'"
},
{
"received": "offline",
"code": "invalid_enum_value",
"options": [
"openid",
"profile",
"offline_access",
"name",
"given_name",
"family_name",
"nickname",
"email",
"email_verified",
"picture",
"created_at",
"identities",
"phone",
"address"
],
"path": [
"scopes_supported",
1
],
"message": "Invalid enum value. Expected 'openid' | 'profile' | 'offline_access' | 'name' | 'given_name' | 'family_name' | 'nickname' | 'email' | 'email_verified' | 'picture' | 'created_at' | 'identities' | 'phone' | 'address', received 'offline'"
},
{
"received": "token id_token code",
"code": "invalid_enum_value",
"options": [
"code",
"token",
"id_token",
"code token",
"code id_token",
"token id_token",
"code token id_token",
"none"
],
"path": [
"response_types_supported",
5
],
"message": "Invalid enum value. Expected 'code' | 'token' | 'id_token' | 'code token' | 'code id_token' | 'token id_token' | 'code token id_token' | 'none', received 'token id_token code'"
},
{
"received": "pairwise",
"code": "invalid_enum_value",
"options": [
"public"
],
"path": [
"subject_types_supported",
1
],
"message": "Invalid enum value. Expected 'public', received 'pairwise'"
}
] |
I have a similar validation problem with Azure AAD. Are there any plans to make schema validation less strict? Attaching my configuration and the resulting errors. |
I'm trying to use the Remix example
The error I get is:
What I noticed is that example configuration is
authenticator.use(strategy);
, which is not also passing a name (as documented in remix-auth.I tried adding a name But doing this changed nothing:
Also note that I has to add
authorizationParams
to make TS happy.The text was updated successfully, but these errors were encountered: