mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-29 00:47:17 +02:00
mcp: add code type
This commit is contained in:
parent
9e4947c62f
commit
0135b8b9aa
6 changed files with 241 additions and 49 deletions
|
@ -81,6 +81,7 @@ func (srv *Handler) AuthorizationResponse(
|
|||
req *oauth21proto.AuthorizationRequest,
|
||||
) {
|
||||
code, err := CreateCode(
|
||||
CodeTypeAuthorization,
|
||||
id,
|
||||
time.Now().Add(time.Minute*10),
|
||||
req.ClientId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue