diff --git a/example/server/storage/oidc.go b/example/server/storage/oidc.go index 0ebaca6..63afcf9 100644 --- a/example/server/storage/oidc.go +++ b/example/server/storage/oidc.go @@ -39,7 +39,7 @@ type AuthRequest struct { CodeChallenge *OIDCCodeChallenge done bool - AuthTime time.Time + authTime time.Time } // LogValue allows you to define which fields will be logged. @@ -76,7 +76,7 @@ func (a *AuthRequest) GetAudience() []string { } func (a *AuthRequest) GetAuthTime() time.Time { - return a.AuthTime + return a.authTime } func (a *AuthRequest) GetClientID() string { diff --git a/example/server/storage/storage.go b/example/server/storage/storage.go index 742b7a1..b556828 100644 --- a/example/server/storage/storage.go +++ b/example/server/storage/storage.go @@ -771,7 +771,7 @@ func (s *Storage) getTokenExchangeClaims(ctx context.Context, request op.TokenEx func getInfoFromRequest(req op.TokenRequest) (clientID string, authTime time.Time, amr []string) { authReq, ok := req.(*AuthRequest) // Code Flow (with scope offline_access) if ok { - return authReq.ApplicationID, authReq.AuthTime, authReq.GetAMR() + return authReq.ApplicationID, authReq.authTime, authReq.GetAMR() } refreshReq, ok := req.(*RefreshTokenRequest) // Refresh Token Request if ok {