Documentation ¶
Index ¶
- Constants
- func GetAccessToken(t *testing.T, authServerHost, clientID string) string
- func GetAuthorizationCode(t *testing.T, authServerHost, clientID, deviceID, scopes string) string
- func GetDefaultAccessToken(t *testing.T) string
- func GetDefaultDeviceAuthorizationCode(t *testing.T, deviceID string) string
- func GetJWTValidator(jwkURL string) *jwt.Validator
- func HTTPDo(t *testing.T, req *http.Request, followRedirect bool) *http.Response
- func MakeConfig(t *testing.T) service.Config
- func New(t *testing.T, cfg service.Config) func()
- func NewRequest(method, host, url string, body io.Reader) *requestBuilder
- func SetUp(t *testing.T) (tearDown func())
Constants ¶
View Source
const ( ClientTest = "test" // Client with short auth code and access token expiration ClientTestShortExpiration = "testShortExpiration" // Client will return error when the same auth code or refresh token // is used repeatedly within a minute of the first use ClientTestRestrictedAuth = "testRestrictedAuth" // Client with expired access token ClientTestExpired = "testExpired" // Client for C2C testing ClientTestC2C = "testC2C" // Client with configured required params used to verify the authorization and token request query params ClientTestRequiredParams = "requiredParams" // Secret for client with configured required params ClientTestRequiredParamsSecret = "requiredParamsSecret" // Valid refresh token if refresh token restriction policy not configured ValidRefreshToken = "refresh-token" )
Variables ¶
This section is empty.
Functions ¶
func GetAuthorizationCode ¶
func GetDefaultAccessToken ¶
func GetJWTValidator ¶ added in v2.4.0
func NewRequest ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.