define handlers, routes

This commit is contained in:
Tim Möhlmann 2023-09-13 19:13:53 +03:00
parent fe3f98a4f9
commit 81d42b061d
3 changed files with 143 additions and 37 deletions

View file

@ -183,8 +183,7 @@ func ClientIDFromRequest(r *http.Request, p ClientProvider) (clientID string, au
type ClientCredentials struct {
ClientID string `schema:"client_id"`
ClientSecret string `schema:"client_secret"` // Client secret from request body
ClientSecretBasic string `schema:"-"` // Obtained from http request
ClientSecret string `schema:"client_secret"` // Client secret from Basic auth or request body
ClientAssertion string `schema:"client_assertion"` // JWT
ClientAssertionType string `schema:"client_assertion_type"`
}