Documentation ¶
Index ¶
- Constants
- func ChangeSubdomain(tokenURL, newSubdomain, oauthTokenPath string) (string, error)
- func FlattenTokenClaims(stdT *testing.T, consumerToken string) string
- func GetAccessToken(t *testing.T, oauthCredentialData *graphql.OAuthCredentialData, scopes string) string
- func GetAccessTokenBench(b *testing.B, oauthCredentialData *graphql.OAuthCredentialData, scopes string) string
- func GetClientCredentialsToken(t *testing.T, ctx context.Context, ...) string
- func GetClientCredentialsTokenWithClient(t *testing.T, ctx context.Context, client *http.Client, ...) string
- func GetToken(t *testing.T, ctx context.Context, tokenURL, clientID, clientSecret string, ...) string
- func GetTokenWithClient(t *testing.T, ctx context.Context, client *http.Client, ...) string
- func GetUserToken(t *testing.T, ctx context.Context, ...) string
- func HttpRequestBodyCloser(t *testing.T, resp *http.Response)
- func HttpRequestBodyCloserBench(b *testing.B, resp *http.Response)
- type HydraToken
- type OauthConfig
Constants ¶
View Source
const ( RuntimeScopes = "webhook:write runtime:read runtime:write application:read runtime.auths:read bundle.instance_auths:read" ApplicationScopes = "" /* 272-byte string literal not displayed */ IntegrationSystemScopes = "" /* 395-byte string literal not displayed */ IntegrationSystemScopesWithoutInternalVisibility = "" /* 331-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func ChangeSubdomain ¶
func GetAccessToken ¶
func GetAccessTokenBench ¶
func GetTokenWithClient ¶
func GetUserToken ¶
Types ¶
type HydraToken ¶
type HydraToken struct { AccessToken string `json:"access_token"` ExpiresIn int `json:"expires_in"` Scope string `json:"scope"` TokenType string `json:"token_type"` }
func FetchHydraAccessToken ¶
Click to show internal directories.
Click to hide internal directories.