oidc

package
v0.0.0-...-f1775f8 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CONFIGURATION_PATH = ".well-known/openid-configuration"

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsIdP

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

func NewAwsIdP

func NewAwsIdP(awsConfig awsclient.AwsClient, issuerMeta issuer.OIDCIssuerMeta) (*AwsIdP, error)

func (*AwsIdP) Create

func (a *AwsIdP) Create(ctx context.Context) error

func (*AwsIdP) Delete

func (a *AwsIdP) Delete(ctx context.Context) error

func (*AwsIdP) IsUpdate

func (a *AwsIdP) IsUpdate() (bool, error)

func (*AwsIdP) Update

func (a *AwsIdP) Update(ctx context.Context) error

type AwsS3IdPFactory

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

func NewAwsS3IdpFactory

func NewAwsS3IdpFactory(
	ctx context.Context,
	region,
	bucketName string,
	jwk *selfhosted.JWK,
	jwksFileName string,
	awsClient awsclient.AwsClient,
) (*AwsS3IdPFactory, error)

func (*AwsS3IdPFactory) IdP

func (*AwsS3IdPFactory) IdPDiscovery

func (f *AwsS3IdPFactory) IdPDiscovery() selfhosted.OIDCIdPDiscovery

func (*AwsS3IdPFactory) IdPDiscoveryContents

type IdPDiscoveryContents

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

func NewIdPDiscoveryContents

func NewIdPDiscoveryContents(jwk *selfhosted.JWK, issuerMeta issuer.OIDCIssuerMeta, jwksFileName string) *IdPDiscoveryContents

func (*IdPDiscoveryContents) Discovery

func (p *IdPDiscoveryContents) Discovery() ([]byte, error)

func (*IdPDiscoveryContents) JWK

func (p *IdPDiscoveryContents) JWK() ([]byte, error)

func (*IdPDiscoveryContents) JWKsFileName

func (p *IdPDiscoveryContents) JWKsFileName() string

type S3IdPDiscovery

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

func NewS3IdPDiscovery

func NewS3IdPDiscovery(awsConfig awsclient.AwsClient, region, bucketName string) *S3IdPDiscovery

NewS3IdPDiscovery initializes a new instance of S3IdPCreator with the specified AWS region and bucket name. This function attempts to create an AWS client configured for the specified region.

func (*S3IdPDiscovery) CreateStorage

func (s *S3IdPDiscovery) CreateStorage(ctx context.Context) error

CreateStorage creates an S3 bucket

func (*S3IdPDiscovery) Delete

Delete delete an S3 bucket and objects

func (*S3IdPDiscovery) Upload

Upload uploads the OIDC provider's discovery configuration and JSON Web Key Set (JWKS) to the specified AWS S3 bucket. This method is responsible for uploading the necessary OIDC configuration files to S3, making them accessible for OIDC clients.

Jump to

Keyboard shortcuts

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