package
1.4.0
Repository: https://github.com/256dpi/oauth2.git
Documentation: pkg.go.dev

# Functions

AccessTokenTest validates the specified access token by requesting the protected resource.
AuthorizationCodeGrantTest tests the authorization code grant.
AuthorizationEndpointTest executes general authorization endpoint tests.
ClientCredentialsGrantTest tests the client credentials grant.
Default returns a common used configuration that can taken as a basis.
Do will perform the specified request on the specified handler.
ImplicitGrantTest tests the implicit grant.
IntrospectionEndpointTest executes general token introspection tests.
PasswordGrantTest tests the password grant.
ProtectedResourceTest validates authorization of the protected resource.
RefreshTokenGrantTest tests the refresh token grant.
RefreshTokenTest validates the specified refreshToken by requesting a new access token and validating it as well.
RevocationEndpointTest executes general token revocation tests.
Run will run all tests using the specified config.
TokenEndpointTest executes general token endpoint tests.

# Structs

A Config declares the needed info for testing an OAuth2 authentication server.
A Request is a convenience wrapper to formulate test requests.