Documentation
¶
Index ¶
- type Provider
- func (p *Provider) BeginAuthorization(ctx context.Context, req providerpkg.AuthorizationRequest) (*providerpkg.AuthorizationResponse, error)
- func (p *Provider) ExchangeAuthorizationCode(ctx context.Context, req providerpkg.ExchangeRequest) (*schema.IdentityInsert, error)
- func (p *Provider) HTTPHandler() httprequest.PathItem
- func (p *Provider) Key() string
- func (p *Provider) PublicConfig() schema.PublicClientConfiguration
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewWithIssuer ¶
func (*Provider) BeginAuthorization ¶
func (p *Provider) BeginAuthorization(ctx context.Context, req providerpkg.AuthorizationRequest) (*providerpkg.AuthorizationResponse, error)
func (*Provider) ExchangeAuthorizationCode ¶
func (p *Provider) ExchangeAuthorizationCode(ctx context.Context, req providerpkg.ExchangeRequest) (*schema.IdentityInsert, error)
func (*Provider) HTTPHandler ¶
func (p *Provider) HTTPHandler() httprequest.PathItem
func (*Provider) PublicConfig ¶
func (p *Provider) PublicConfig() schema.PublicClientConfiguration
Example ¶
provider, _ := New("client-id", "client-secret")
fmt.Println(provider.PublicConfig().Issuer)
fmt.Println(provider.PublicConfig().ClientID)
Output: https://accounts.google.com client-id
Click to show internal directories.
Click to hide internal directories.