alipay

package
v0.3.10-0-alpha2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AuthUrl = "https://openauth.alipay.com/oauth2/publicAppAuthorize.htm"
)

Variables

This section is empty.

Functions

func NewAlipayOAuth2Driver

func NewAlipayOAuth2Driver(appId string, secret string) oauth2.IOAuth2Driver

Types

type SAlipayDriverFactory

type SAlipayDriverFactory struct{}

func (SAlipayDriverFactory) IdpAttributeOptions

func (drv SAlipayDriverFactory) IdpAttributeOptions() api.SIdpAttributeOptions

func (SAlipayDriverFactory) NewDriver

func (drv SAlipayDriverFactory) NewDriver(appId string, secret string) oauth2.IOAuth2Driver

func (SAlipayDriverFactory) TemplateName

func (drv SAlipayDriverFactory) TemplateName() string

func (SAlipayDriverFactory) ValidateConfig

func (drv SAlipayDriverFactory) ValidateConfig(conf api.SOAuth2IdpConfigOptions) error

type SAlipayOAuth2Driver

type SAlipayOAuth2Driver struct {
	oauth2.SOAuth2BaseDriver
}

func (*SAlipayOAuth2Driver) Authenticate

func (drv *SAlipayOAuth2Driver) Authenticate(ctx context.Context, code string) (map[string][]string, error)

func (*SAlipayOAuth2Driver) GetSsoRedirectUri

func (drv *SAlipayOAuth2Driver) GetSsoRedirectUri(ctx context.Context, callbackUrl, state string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL