-
Describe bug When I login with an existing identity in kratos, I get that the Reproducing the bug
Expected behavior I expect to be logged in as the user/identity instead of trying to create the identity again. I do get the correct values from the claims requested. Configuration I always have the email for testing purposes oidc.hydra.jsonnet local claims = {
email_verified: false
} + std.extVar('claims');
{
identity: {
traits: {
email: claims.email
},
},
} kratos.yml #...
methods:
password:
enabled: false
oidc:
enabled: true
config:
providers:
- id: hydra
provider: generic
mapper_url: file:///etc/config/kratos/oidc.hydra.jsonnet
client_id: client-id
client_secret: this-is-the-secret
scope:
- profile
- openid
issuer_url: http://my-issuer.com/
requested_claims:
userinfo:
email:
essential: true
#... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
I don't quite follow, could you please elaborate? Thanks! |
Beta Was this translation helpful? Give feedback.
-
@aeneasr @vinckr I managed to resolve the issue. solution I was creating the subject every time a user login even if it is the same user. Hence, after removing that and used the subject in the database. The login flow worked. I hope I am making sense. |
Beta Was this translation helpful? Give feedback.
@aeneasr @vinckr I managed to resolve the issue.
solution
I was creating the subject every time a user login even if it is the same user. Hence, after removing that and used the subject in the database. The login flow worked.
I hope I am making sense.