From c85b32d355a183dac3e46e50aac8b2c344cbd2d7 Mon Sep 17 00:00:00 2001 From: arekkas Date: Sun, 17 Dec 2017 18:46:38 +0100 Subject: [PATCH] Resolves overriding auth_time with wrong value --- token/jwt/claims_id_token.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/token/jwt/claims_id_token.go b/token/jwt/claims_id_token.go index 13fffc628..6f3250506 100644 --- a/token/jwt/claims_id_token.go +++ b/token/jwt/claims_id_token.go @@ -56,10 +56,6 @@ func (c *IDTokenClaims) ToMap() map[string]interface{} { ret["auth_time"] = c.AuthTime.Unix() } - if !c.RequestedAt.IsZero() { - ret["auth_time"] = c.RequestedAt.Unix() - } - if len(c.AuthenticationContextClassReference) > 0 { ret["acr"] = c.AuthenticationContextClassReference }