Versions in this module Expand all Collapse all v1 v1.4.0 Jan 6, 2020 Changes in this version + func BuildIntrospectionRequest(uri string, r introspection.Request) (*http.Request, error) + func BuildRevocationRequest(uri string, r revocation.Request) (*http.Request, error) + func BuildTokenRequest(uri string, r oauth2.TokenRequest) (*http.Request, error) + func IntrospectionRequestValues(r introspection.Request) url.Values + func ParseIntrospectionResponse(res *http.Response) (*introspection.Response, error) + func ParseRequestError(res *http.Response) error + func ParseTokenResponse(res *http.Response) (*oauth2.TokenResponse, error) + func RevocationRequestValues(r revocation.Request) url.Values + func TokenRequestValues(r oauth2.TokenRequest) url.Values + type Client struct + func New(config Config) *Client + func (c *Client) Authenticate(trq oauth2.TokenRequest) (*oauth2.TokenResponse, error) + func (c *Client) Introspect(irq introspection.Request) (*introspection.Response, error) + func (c *Client) Revoke(rrq revocation.Request) error + type Config struct + BaseURI string + IntrospectionEndpoint string + RevocationEndpoint string + TokenEndpoint string + func Default(baseURI string) Config + type Error struct + Body string + Status int + func (e *Error) Error() string