Documentation ¶
Index ¶
- Variables
- func ExtractJwtExpClaim(t *testing.T, token string) *time.Time
- func ParseFormPostResponse(redirectURL string, resp io.ReadCloser) (authorizationCode, stateFromServer, iDToken string, token xoauth2.Token, ...)
- func RequireEqualDuration(t *testing.T, expected time.Duration, actual time.Duration, ...)
- func RequireEqualTime(t *testing.T, expected time.Time, actual time.Time, precision time.Duration)
Constants ¶
This section is empty.
Variables ¶
View Source
var TestLifespans = oauth2.ClientLifespanConfig{ AuthorizationCodeGrantAccessTokenLifespan: ptr(31 * time.Hour), AuthorizationCodeGrantIDTokenLifespan: ptr(32 * time.Hour), AuthorizationCodeGrantRefreshTokenLifespan: ptr(33 * time.Hour), ClientCredentialsGrantAccessTokenLifespan: ptr(34 * time.Hour), ImplicitGrantAccessTokenLifespan: ptr(35 * time.Hour), ImplicitGrantIDTokenLifespan: ptr(36 * time.Hour), JwtBearerGrantAccessTokenLifespan: ptr(37 * time.Hour), PasswordGrantAccessTokenLifespan: ptr(38 * time.Hour), PasswordGrantRefreshTokenLifespan: ptr(39 * time.Hour), RefreshTokenGrantIDTokenLifespan: ptr(40 * time.Hour), RefreshTokenGrantAccessTokenLifespan: ptr(41 * time.Hour), RefreshTokenGrantRefreshTokenLifespan: ptr(42 * time.Hour), }
Functions ¶
func ParseFormPostResponse ¶
func RequireEqualDuration ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.