This commit is contained in:
2025-07-23 17:56:33 +01:00
parent b7b0c60f03
commit af22256c96
4 changed files with 34 additions and 4 deletions
+3 -3
View File
@@ -175,7 +175,7 @@ func TestAzureOIDCRegression(t *testing.T) {
"sub": "user123",
"email": "[email protected]",
}
idToken, _ := createMockJWT(idTokenClaims)
idToken, _ := createAzureMockJWT(idTokenClaims)
session.SetIDToken(idToken)
// Mock the token verification to simulate Azure behavior
@@ -318,8 +318,8 @@ func TestAzureOIDCRegression(t *testing.T) {
})
}
// createMockJWT creates a basic JWT token for testing purposes
func createMockJWT(claims map[string]interface{}) (string, error) {
// createAzureMockJWT creates a basic JWT token for testing purposes
func createAzureMockJWT(claims map[string]interface{}) (string, error) {
// For testing purposes, create a JWT with expired claims when needed
// Use the test tokens infrastructure for most cases, but allow expired tokens for specific tests
testTokens := NewTestTokens()