Skip to content

Commit b38d3ca

Browse files
committed
Adds callback mode that is direct to vault
1 parent 53c3d96 commit b38d3ca

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

path_oidc.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,26 @@ func pathOIDC(b *jwtAuthBackend) []*framework.Path {
124124
},
125125
},
126126
},
127+
{
128+
Pattern: `oidc/poll`,
129+
Fields: map[string]*framework.FieldSchema{
130+
"state": {
131+
Type: framework.TypeString,
132+
},
133+
"client_nonce": {
134+
Type: framework.TypeString,
135+
},
136+
},
137+
Operations: map[logical.Operation]framework.OperationHandler{
138+
logical.UpdateOperation: &framework.PathOperation{
139+
Callback: b.pathPoll,
140+
Summary: "Poll endpoint to complete an OIDC login.",
141+
142+
// state is cached so don't process OIDC logins on perf standbys
143+
ForwardPerformanceStandby: true,
144+
},
145+
},
146+
},
127147
{
128148
Pattern: `oidc/auth_url`,
129149

0 commit comments

Comments
 (0)