You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-06-17 00:17:40 +02:00
Authorize in Redeem callback flow
This commit is contained in:
@ -118,7 +118,7 @@ func TestGoogleProviderGroupValidator(t *testing.T) {
|
||||
validatorFunc func(*sessions.SessionState) bool
|
||||
expectedAuthZ bool
|
||||
}{
|
||||
"Email is authorized with GroupValidator": {
|
||||
"Email is authorized with groupValidator": {
|
||||
session: &sessions.SessionState{
|
||||
Email: sessionEmail,
|
||||
},
|
||||
@ -127,7 +127,7 @@ func TestGoogleProviderGroupValidator(t *testing.T) {
|
||||
},
|
||||
expectedAuthZ: true,
|
||||
},
|
||||
"Email is denied with GroupValidator": {
|
||||
"Email is denied with groupValidator": {
|
||||
session: &sessions.SessionState{
|
||||
Email: sessionEmail,
|
||||
},
|
||||
@ -149,9 +149,9 @@ func TestGoogleProviderGroupValidator(t *testing.T) {
|
||||
g := NewWithT(t)
|
||||
p := newGoogleProvider()
|
||||
if tc.validatorFunc != nil {
|
||||
p.GroupValidator = tc.validatorFunc
|
||||
p.groupValidator = tc.validatorFunc
|
||||
}
|
||||
g.Expect(p.GroupValidator(tc.session)).To(Equal(tc.expectedAuthZ))
|
||||
g.Expect(p.groupValidator(tc.session)).To(Equal(tc.expectedAuthZ))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user