mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-04-02 22:25:30 +02:00
Update middleware tests
This commit is contained in:
parent
b333ef89bc
commit
0586a9e072
@ -225,7 +225,7 @@ Nnc3a3lGVWFCNUMxQnNJcnJMTWxka1dFaHluYmI4Ongtb2F1dGgtYmFzaWM=`
|
||||
authorizationHeader: fmt.Sprintf("Bearer %s", nonVerifiedToken),
|
||||
expectedErr: k8serrors.NewAggregate([]error{
|
||||
errors.New("unable to verify bearer token"),
|
||||
errors.New("oidc: malformed jwt: illegal base64 data at input byte 8"),
|
||||
errors.New("oidc: malformed jwt: oidc: malformed jwt payload: illegal base64 data at input byte 8"),
|
||||
}),
|
||||
expectedSession: nil,
|
||||
}),
|
||||
@ -238,7 +238,7 @@ Nnc3a3lGVWFCNUMxQnNJcnJMTWxka1dFaHluYmI4Ongtb2F1dGgtYmFzaWM=`
|
||||
authorizationHeader: "Basic ZXlKZm9vYmFyLmV5SmZvb2Jhci4xMjM0NWFzZGY6",
|
||||
expectedErr: k8serrors.NewAggregate([]error{
|
||||
errors.New("unable to verify bearer token"),
|
||||
errors.New("oidc: malformed jwt: illegal base64 data at input byte 8"),
|
||||
errors.New("oidc: malformed jwt: oidc: malformed jwt payload: illegal base64 data at input byte 8"),
|
||||
}),
|
||||
expectedSession: nil,
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user