Skip to content

Commit

Permalink
Adds callback mode that is direct to vault
Browse files Browse the repository at this point in the history
  • Loading branch information
DrDaveD committed May 2, 2023
1 parent ac6ab28 commit 3f69989
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions path_oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,26 @@ func pathOIDC(b *jwtAuthBackend) []*framework.Path {
},
},
},
{
Pattern: `oidc/poll`,
Fields: map[string]*framework.FieldSchema{
"state": {
Type: framework.TypeString,
},
"client_nonce": {
Type: framework.TypeString,
},
},
Operations: map[logical.Operation]framework.OperationHandler{
logical.UpdateOperation: &framework.PathOperation{
Callback: b.pathPoll,
Summary: "Poll endpoint to complete an OIDC login.",

// state is cached so don't process OIDC logins on perf standbys
ForwardPerformanceStandby: true,
},
},
},
{
Pattern: `oidc/auth_url`,

Expand Down

0 comments on commit 3f69989

Please sign in to comment.