oauth2-proxy / mockoidc

A Mock OIDC Server for Unit & Integration Tests
MIT License
68 stars 40 forks source link

`expires_in` in OAuth2 Token is too huge #38

Open YoitoFes opened 2 years ago

YoitoFes commented 2 years ago

According to RFC6749, expires_in in OAuth2 Token is the lifetime in seconds of the access token.

But mockoidc set MockOIDC.AccessTTL directly to expires_in, making expires_in huge; e.g. if AccessTTL = 10 * time.Seconds (1000000000 int64), expires_in becomes 10000000000 in seconds.