Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow ProofOfPossesion Options per Endpoint #38

Open
nenaraab opened this issue Nov 24, 2021 · 0 comments
Open

Allow ProofOfPossesion Options per Endpoint #38

nenaraab opened this issue Nov 24, 2021 · 0 comments

Comments

@nenaraab
Copy link
Contributor

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant