openid

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	GetDiscoveryConfigUrl = "/.well-known/openid-configuration"
)
View Source
const RECIPE_ID = "openid"

Variables

This section is empty.

Functions

func AfterEach added in v0.5.8

func AfterEach()

func BeforeEach added in v0.5.8

func BeforeEach()

func CreateJWT

func CreateJWT(payload map[string]interface{}, validitySecondsPointer *uint64) (jwtmodels.CreateJWTResponse, error)

func CreateJWTWithContext added in v0.5.0

func CreateJWTWithContext(payload map[string]interface{}, validitySecondsPointer *uint64, userContext supertokens.UserContext) (jwtmodels.CreateJWTResponse, error)

func GetJWKS

func GetJWKS() (jwtmodels.GetJWKSResponse, error)

func GetJWKSWithContext added in v0.5.0

func GetJWKSWithContext(userContext supertokens.UserContext) (jwtmodels.GetJWKSResponse, error)

func GetOpenIdDiscoveryConfigurationWithContext added in v0.5.0

func GetOpenIdDiscoveryConfigurationWithContext(userContext supertokens.UserContext) (openidmodels.GetOpenIdDiscoveryConfigurationResponse, error)

func Init

func ResetForTest

func ResetForTest()

Types

type Recipe

type Recipe struct {
	RecipeModule supertokens.RecipeModule
	Config       openidmodels.TypeNormalisedInput
	RecipeImpl   openidmodels.RecipeInterface
	JwtRecipe    jwt.Recipe
	APIImpl      openidmodels.APIInterface
}

func MakeRecipe

func MakeRecipe(recipeId string, appInfo supertokens.NormalisedAppinfo, config *openidmodels.TypeInput, onSuperTokensAPIError func(err error, req *http.Request, res http.ResponseWriter)) (Recipe, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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