first draft of a new server interface

This commit is contained in:
Tim Möhlmann 2023-09-04 23:33:51 +03:00
parent daf82a5e04
commit d6a9c0bbb9
9 changed files with 481 additions and 9 deletions

View file

@ -180,3 +180,11 @@ func ClientIDFromRequest(r *http.Request, p ClientProvider) (clientID string, au
}
return data.ClientID, false, nil
}
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
ClientAssertion string `schema:"client_assertion"` // JWT
ClientAssertionType string `schema:"client_assertion_type"`
}