oidc_config

package
v1.2.27-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildJSONWebKeySet

func BuildJSONWebKeySet(publicKeyContent []byte) ([]byte, error)

BuildJSONWebKeySet builds JSON web key set from the public key

func CreateKeyPair

func CreateKeyPair() ([]byte, []byte, error)

func GenerateBucketName

func GenerateBucketName(userPrefix string) (string, error)

func GenerateDiscoveryDocument

func GenerateDiscoveryDocument(bucketURL string) string

func IsValidBucketName

func IsValidBucketName(bucketName string) bool

Types

type JSONWebKeySet

type JSONWebKeySet struct {
	Keys []jose.JSONWebKey `json:"keys"`
}

type OidcConfigInput

type OidcConfigInput struct {
	BucketName           string
	IssuerUrl            string
	PrivateKey           []byte
	PrivateKeyFilename   string
	DiscoveryDocument    string
	Jwks                 []byte
	PrivateKeySecretName string
}

func BuildOidcConfigInput

func BuildOidcConfigInput(userPrefix, region string) (OidcConfigInput, error)

Jump to

Keyboard shortcuts

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