Documentation
¶
Index ¶
- Constants
- func BuildAuthorizationHandler(st *state.State, opts AuthorizeOptions, client *http.Client) (*auth.AuthorizationCodeHandler, func(), error)
- func Refresh(ctx context.Context, st *state.State, client *http.Client) (*state.TokenState, error)
- func RefreshWithToken(ctx context.Context, st *state.State, refreshToken string, client *http.Client) (*state.TokenState, error)
- func Register(ctx context.Context, st *state.State, opts RegisterOptions, ...) error
- func TokenFromSource(ctx context.Context, handler auth.OAuthHandler) (*state.TokenState, error)
- func VerifyPKCES256(asm *oauthex.AuthServerMeta) bool
- type AuthorizeOptions
- type DiscoverResult
- type RegisterOptions
Constants ¶
View Source
const DefaultCallbackPort = 3142
Variables ¶
This section is empty.
Functions ¶
func BuildAuthorizationHandler ¶
func BuildAuthorizationHandler(st *state.State, opts AuthorizeOptions, client *http.Client) (*auth.AuthorizationCodeHandler, func(), error)
func RefreshWithToken ¶
func TokenFromSource ¶
func TokenFromSource(ctx context.Context, handler auth.OAuthHandler) (*state.TokenState, error)
func VerifyPKCES256 ¶
func VerifyPKCES256(asm *oauthex.AuthServerMeta) bool
Types ¶
type AuthorizeOptions ¶
type DiscoverResult ¶
type DiscoverResult struct {
MetadataURL string
Protected *oauthex.ProtectedResourceMetadata
AuthServer *oauthex.AuthServerMeta
}
Click to show internal directories.
Click to hide internal directories.