Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient struct {
// contains filtered or unexported fields
}
func New ¶
func New(endpoint, client, secret string) *HTTPClient
func (*HTTPClient) IsAllowed ¶
func (c *HTTPClient) IsAllowed(ar *AuthorizeRequest) (bool, error)
func (*HTTPClient) IsAuthenticated ¶
func (c *HTTPClient) IsAuthenticated(token string) (bool, error)
func (*HTTPClient) IsRequestAllowed ¶
func (*HTTPClient) SetClientToken ¶
func (c *HTTPClient) SetClientToken(token *oauth2.Token)
Click to show internal directories.
Click to hide internal directories.