Skip to content

DPop key should never leave the server #1322

@matthieusieben

Description

@matthieusieben

DPoP keys are meant to protect the access-token in transit (from attacks like heartbleed, etc.). This is only efficient if the DPoP key is never sent over the wire.

The current implementation stores the OAuth session data in (encrypted, but still) cookies, which goes against this:

const session = await useServerSession(event)
const { stateStore, sessionStore } = useOAuthStorage(session)

The same is also true for "state data". The State store is used to keep track of the state of a particular oauth flow. In particular, it should allow to prevent replays. Being stored in cookies, replays can be made possible.

Both SessionStore and StateStore should be using backend databases to store their data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions