oidcbuilder

package
v0.0.0-...-b534984 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DiscoveryDocumentKey = ".well-known/openid-configuration"
	JWKSKey              = "openid/v1/jwks"
	WebContainer         = "$web"
)

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(env env.Interface) (encPrivateKey []byte, encPublicKey []byte, err error)

func DeleteOidcFolder

func DeleteOidcFolder(ctx context.Context, directory string, blobsClient azblob.BlobsClient) error

func DocumentKey

func DocumentKey(directory string, blobKey string) string

func GenerateBlobContainerURL

func GenerateBlobContainerURL(env env.Interface) string

func GenerateDiscoveryDocument

func GenerateDiscoveryDocument(bucketURL string) string

func GetBlobName

func GetBlobName(tenantID string, docID string) string

Types

type JSONWebKeySet

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

type OIDCBuilder

type OIDCBuilder struct {
	// contains filtered or unexported fields
}

func NewOIDCBuilder

func NewOIDCBuilder(env env.Interface, oidcEndpoint string, directoryName string) (*OIDCBuilder, error)

func (*OIDCBuilder) EnsureOIDCDocs

func (b *OIDCBuilder) EnsureOIDCDocs(ctx context.Context, blobsClient azblob.BlobsClient) error

func (*OIDCBuilder) GetBlobContainerURL

func (b *OIDCBuilder) GetBlobContainerURL() string

func (*OIDCBuilder) GetEndpointUrl

func (b *OIDCBuilder) GetEndpointUrl() string

func (*OIDCBuilder) GetPrivateKey

func (b *OIDCBuilder) GetPrivateKey() string

Jump to

Keyboard shortcuts

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