oauth2: Hydrates auth time value in id token
This is only a preliminary solution and must be added to the
consent flow.
@@ -90,6 +90,7 @@ func (s *DefaultConsentStrategy) ValidateConsentRequest(req fosite.AuthorizeRequ
Issuer: s.Issuer,
IssuedAt: time.Now(),
ExpiresAt: time.Now().Add(s.DefaultIDTokenLifespan),
+ AuthTime: time.Now(),
Extra: consent.IDTokenExtra,
},
// required for lookup on jwk endpoint
