Documentation ¶
Index ¶
- Constants
- type AppType
- type ProviderConfig
- type Wechat
- func (p Wechat) GetAuthorizationURL(ctx context.Context, deps oauthrelyingparty.Dependencies, ...) (string, error)
- func (Wechat) GetJSONSchema() map[string]interface{}
- func (Wechat) GetUserProfile(ctx context.Context, deps oauthrelyingparty.Dependencies, ...) (authInfo oauthrelyingparty.UserProfile, err error)
- func (Wechat) ProviderID(cfg oauthrelyingparty.ProviderConfig) oauthrelyingparty.ProviderID
- func (Wechat) SetDefaults(cfg oauthrelyingparty.ProviderConfig)
Constants ¶
View Source
const Type = liboauthrelyingparty.TypeWechat
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProviderConfig ¶
type ProviderConfig oauthrelyingparty.ProviderConfig
func (ProviderConfig) AccountID ¶
func (c ProviderConfig) AccountID() string
func (ProviderConfig) AppType ¶
func (c ProviderConfig) AppType() AppType
func (ProviderConfig) IsSandboxAccount ¶
func (c ProviderConfig) IsSandboxAccount() bool
func (ProviderConfig) WechatRedirectURIs ¶
func (c ProviderConfig) WechatRedirectURIs() []string
type Wechat ¶
type Wechat struct{}
func (Wechat) GetAuthorizationURL ¶
func (p Wechat) GetAuthorizationURL(ctx context.Context, deps oauthrelyingparty.Dependencies, param oauthrelyingparty.GetAuthorizationURLOptions) (string, error)
func (Wechat) GetJSONSchema ¶
func (Wechat) GetUserProfile ¶
func (Wechat) GetUserProfile(ctx context.Context, deps oauthrelyingparty.Dependencies, param oauthrelyingparty.GetUserProfileOptions) (authInfo oauthrelyingparty.UserProfile, err error)
func (Wechat) ProviderID ¶
func (Wechat) ProviderID(cfg oauthrelyingparty.ProviderConfig) oauthrelyingparty.ProviderID
func (Wechat) SetDefaults ¶
func (Wechat) SetDefaults(cfg oauthrelyingparty.ProviderConfig)
Click to show internal directories.
Click to hide internal directories.