mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-06-05 22:44:17 +00:00
Fix the issue when expired token did not forced reauthentication.
This commit is contained in:
+2
-1
@@ -375,8 +375,9 @@ func (suite *TraefikOidcTestSuite) TestIsUserAuthenticated() {
|
||||
|
||||
suite.mockTokenVerifier.On("VerifyToken", "valid.eyJleHAiOjk5OTk5OTk5OTl9.signature").Return(nil)
|
||||
|
||||
authenticated := suite.oidc.isUserAuthenticated(session)
|
||||
authenticated, tokenExpired := suite.oidc.isUserAuthenticated(session)
|
||||
suite.True(authenticated)
|
||||
suite.False(tokenExpired)
|
||||
}
|
||||
|
||||
func (suite *TraefikOidcTestSuite) TestInitiateAuthentication() {
|
||||
|
||||
Reference in New Issue
Block a user