Documentation ¶
Overview ¶
Package login implements client login functionality shared between various clients
Package login implements client login functionality shared between various clients
Index ¶
- Variables
- func Login(ctx context.Context, opts ...Option) (token string, refreshToken string, err error)
- type OpenBrowserError
- type Option
- func WithAudience(aud []string) Option
- func WithAuth0Connection(conn string) Option
- func WithClientID(id string) Option
- func WithCreateRefreshToken() Option
- func WithIdentity(identity string) Option
- func WithIdentityProvider(idp string) Option
- func WithIncludeUpstreamToken() Option
- func WithInviteCode(inviteCode string) Option
- func WithIssuer(issuer string) Option
- func WithOrgName(org string) Option
- func WithSkipRegistration() Option
Constants ¶
This section is empty.
Variables ¶
View Source
var (
HTMLAuthSuccessful = `` /* 2665-byte string literal not displayed */
)
Functions ¶
Types ¶
type OpenBrowserError ¶ added in v0.1.20
type OpenBrowserError struct {
// contains filtered or unexported fields
}
OpenBrowserError wraps the error returned from browser.OpenURL, since this can take a few different forms depending on the OS.
func (*OpenBrowserError) Error ¶ added in v0.1.20
func (e *OpenBrowserError) Error() string
func (*OpenBrowserError) Unwrap ¶ added in v0.1.20
func (e *OpenBrowserError) Unwrap() error
type Option ¶
type Option func(opt *config)
func WithAudience ¶
func WithAuth0Connection ¶
func WithClientID ¶
func WithCreateRefreshToken ¶ added in v0.1.9
func WithCreateRefreshToken() Option
func WithIdentity ¶
func WithIdentityProvider ¶
func WithIncludeUpstreamToken ¶
func WithIncludeUpstreamToken() Option
func WithInviteCode ¶
func WithIssuer ¶
func WithOrgName ¶
func WithSkipRegistration ¶
func WithSkipRegistration() Option
Click to show internal directories.
Click to hide internal directories.