Hydra: Accept login request

HI,

According to the docs, the request body for the accept login request endpoint accepts a payload with a context attribute. This attribute is a raw JSON message. Is this incorporated in the issued id token, and if so, how? If not, how can you pass attributes to this endpoint that you want to be incorporated in the id token, e.g. the roles of the authenticated user?

No, this is just replayed when you request the consent payload. You can use it to store contextual information for your UI. Maybe that’s documented improperly?

Thanks for the reply. So, the only “user” attribute you will get in the token is the subject? Any plans to enhance this soon, e.g. with a tighter integration with Kratos so you can get all of the attributes of the identity?