undo authTime export from example
This commit is contained in:
parent
519718ec96
commit
5c6ead281e
2 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue