Skip to content

Allow ProofOfPossesion Options per Endpoint #38

@nenaraab

Description

@nenaraab

For a feature version (like 1.0) we can think of solution how to integrate this check into the middleware.

In our project we check all authentication with the help of http subrouters and middlewares before the actual endpoint.

subrouter.Use(
    middleware.AuthenticationHandler
)

A way to customise this Middleware and enable/disable parts of the validation based on the route would be really cool. Maybe something like the following:

func (m *Middleware) CreateAuthenticationHandler(proofOfPossession options) func(handler http.Handler) http.Handler {
    // return the actual AuthenticationHandler with options enabled/disabled
    // and checks like azp == expected caller client id
}

Originally posted by @f-blass in #35 (comment)

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