Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken string
func (AccessToken) String ¶
func (t AccessToken) String() string
type Config ¶
type Config struct {
Authority string `yaml:"authority" json:"authority"`
oauth.Config `yaml:",inline"`
HTTP client.Config `yaml:"http" json:"http"`
}
Config general configuration
type PlgdProvider ¶
type PlgdProvider struct {
Config Config
OAuth2 *oauth2.Config
HTTPClient *client.Client
OpenID openid.Config
}
PlgdProvider configuration with new http client
func NewPlgdProvider ¶
NewPlgdProvider creates OAuth client
func (*PlgdProvider) Close ¶
func (p *PlgdProvider) Close()
type Token ¶
type Token struct {
AccessToken AccessToken
RefreshToken string
Expiry time.Time
}
Token provides access tokens and their attributes.
func (Token) IsValidAccessToken ¶
Click to show internal directories.
Click to hide internal directories.