[OIDC] LINE login use unsupported algorithm HS256 instead of expected ES256 #1116
-
Hello, While I was trying to integrate LINE with Kratos' OIDC, I was presented with error : "oidc: id token signed with unsupported algorithm, expected ["ES256"] got "HS256"" LINE specifically told is in their document with no way to change the algorithm Is there anywhere I can make Kratos understand HS256? Here is my current configuration. - id: line
provider: generic
client_id: ...
client_secret: ...
mapper_url: file:///etc/config/kratos/oidc.line.jsonnet
scope:
- email
issuer_url: https://access.line.me
auth_url: https://access.line.me/oauth2/v2.1/authorize
token_url: https://api.line.me/oauth2/v2.1/token |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
HS256 is not supported because it is a symmetric key which does not make any sense in the context of OpenID Connect. Their well-known document states that they issue ES256 ( https://access.line.me/.well-known/openid-configuration ) so it's very strange that a HS256 ends up at Ory Kratos. I would inquire at LINE to see what's going on or post an ID Token payload here for further debugging. |
Beta Was this translation helpful? Give feedback.
HS256 is not supported because it is a symmetric key which does not make any sense in the context of OpenID Connect. Their well-known document states that they issue ES256 ( https://access.line.me/.well-known/openid-configuration ) so it's very strange that a HS256 ends up at Ory Kratos. I would inquire at LINE to see what's going on or post an ID Token payload here for further debugging.