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

@ -88,7 +88,7 @@ func AuthorizeCodeClient(ctx context.Context, tokenReq *oidc.AccessTokenRequest,
if err != nil {
return nil, nil, err
}
err = AuthorizeCodeChallenge(tokenReq, request.GetCodeChallenge())
err = AuthorizeCodeChallenge(tokenReq.CodeVerifier, request.GetCodeChallenge())
return request, client, err
}
if client.AuthMethod() == oidc.AuthMethodPost && !exchanger.AuthMethodPostSupported() {