openidmodels

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: Apache-2.0 Imports: 3 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIInterface

type APIInterface struct {
	GetOpenIdDiscoveryConfigurationGET *func(options APIOptions, userContext supertokens.UserContext) (GetOpenIdDiscoveryConfigurationAPIResponse, error)
}

type APIOptions

type APIOptions struct {
	RecipeImplementation RecipeInterface
	Config               TypeNormalisedInput
	RecipeID             string
	Req                  *http.Request
	Res                  http.ResponseWriter
	OtherHandler         http.HandlerFunc
}

type GetOpenIdDiscoveryConfigurationAPIResponse added in v0.7.0

type GetOpenIdDiscoveryConfigurationAPIResponse struct {
	OK *struct {
		Issuer   string
		Jwks_uri string
	}
	GeneralError *supertokens.GeneralErrorResponse
}

type GetOpenIdDiscoveryConfigurationResponse

type GetOpenIdDiscoveryConfigurationResponse struct {
	OK *struct {
		Issuer   string
		Jwks_uri string
	}
}

type OverrideStruct

type OverrideStruct struct {
	Functions  func(originalImplementation RecipeInterface) RecipeInterface
	APIs       func(originalImplementation APIInterface) APIInterface
	JwtFeature *jwtmodels.OverrideStruct
}

type RecipeInterface

type RecipeInterface struct {
	GetOpenIdDiscoveryConfiguration *func(userContext supertokens.UserContext) (GetOpenIdDiscoveryConfigurationResponse, error)
	CreateJWT                       *func(payload map[string]interface{}, validitySeconds *uint64, userContext supertokens.UserContext) (jwtmodels.CreateJWTResponse, error)
	GetJWKS                         *func(userContext supertokens.UserContext) (jwtmodels.GetJWKSResponse, error)
}

type TypeInput

type TypeInput struct {
	Issuer             *string
	JwtValiditySeconds *uint64
	Override           *OverrideStruct
}

type TypeNormalisedInput

type TypeNormalisedInput struct {
	IssuerDomain       supertokens.NormalisedURLDomain
	IssuerPath         supertokens.NormalisedURLPath
	JwtValiditySeconds *uint64
	Override           OverrideStruct
}

Jump to

Keyboard shortcuts

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