Documentation ¶
Index ¶
Constants ¶
View Source
const CONFIGURATION_PATH = ".well-known/openid-configuration"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 (f *AwsS3IdPFactory) IdP(i issuer.OIDCIssuerMeta) (selfhosted.OIDCIdP, error)
func (*AwsS3IdPFactory) IdPDiscovery ¶
func (f *AwsS3IdPFactory) IdPDiscovery() selfhosted.OIDCIdPDiscovery
func (*AwsS3IdPFactory) IdPDiscoveryContents ¶
func (f *AwsS3IdPFactory) IdPDiscoveryContents(i issuer.OIDCIssuerMeta) selfhosted.OIDCIdPDiscoveryContents
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 ¶
func (s *S3IdPDiscovery) Delete(ctx context.Context, o selfhosted.OIDCIdPDiscoveryContents) error
Delete delete an S3 bucket and objects
func (*S3IdPDiscovery) Upload ¶
func (s *S3IdPDiscovery) Upload(ctx context.Context, o selfhosted.OIDCIdPDiscoveryContents, forceUpdate bool) error
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.
Click to show internal directories.
Click to hide internal directories.