Skip to content

Have Hydra store usernames linked to tokens #364

@michael-golfi

Description

@michael-golfi

As I understand, OpenID Connect is supposed to be the authentication-side for OAuth (so to speak). Right now I have token creation using client credentials with a backend (called Gatekeeper for all intents and purposes) acting as an intermediary between a webapp and Hydra. But there is no linking of usernames to tokens in Hydra so when introspection is done with Hydra, there is no concept of which user the token was requested for. Which means that I would need to start caching in Gatekeeper. This wouldn't be ideal because I want it to be stateless and to keep the majority of auth logic in Hydra.

I know that client credentials demands that the client id and subject are equal, does Hydra have any way to cache the username of the requesting user (given that the username is provided)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions