openidmodels

package
v0.12.6 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 8

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, useStaticSigningKey *bool, 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