provider

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

func NewDocumentDataSource

func NewDocumentDataSource() datasource.DataSource

func NewJWKSDataSource

func NewJWKSDataSource() datasource.DataSource

Types

type DiscoveryDocument

type DiscoveryDocument struct {
	Issuer                           string   `json:"issuer"`
	JWKSURI                          string   `json:"jwks_uri"`
	ResponseTypesSupported           []string `json:"response_types_supported"`
	SubjectTypesSupported            []string `json:"subject_types_supported"`
	IDTokenSigningAlgValuesSupported []string `json:"id_token_signing_alg_values_supported"`
	ClaimsSupported                  []string `json:"claims_supported,omitempty"`
	GrantTypes                       []string `json:"grant_types,omitempty"`
	GrantTypesSupported              []string `json:"grant_types_supported,omitempty"`
}

type DocumentDataSource

type DocumentDataSource struct {
}

DocumentDataSource defines the data source implementation.

func (*DocumentDataSource) Configure

func (*DocumentDataSource) Metadata

func (*DocumentDataSource) Read

func (*DocumentDataSource) Schema

type DocumentDataSourceModel

type DocumentDataSourceModel struct {
	ID                               types.String `tfsdk:"id"`
	DiscoveryURL                     types.String `tfsdk:"discovery_url"`
	Issuer                           types.String `tfsdk:"issuer"`
	JWKSURI                          types.String `tfsdk:"jwks_uri"`
	ResponseTypesSupported           types.List   `tfsdk:"response_types_supported"`
	SubjectTypesSupported            types.List   `tfsdk:"subject_types_supported"`
	IDTokenSigningAlgValuesSupported types.List   `tfsdk:"id_token_signing_alg_values_supported"`
	ClaimsSupported                  types.List   `tfsdk:"claims_supported"`
	GrantTypes                       types.List   `tfsdk:"grant_types"`
}

DocumentDataSourceModel describes the data source data model.

type JWKSDataSource

type JWKSDataSource struct {
}

JWKSDataSource defines the data source implementation.

func (*JWKSDataSource) Configure

func (*JWKSDataSource) Metadata

func (*JWKSDataSource) Read

func (*JWKSDataSource) Schema

type JWKSDataSourceModel

type JWKSDataSourceModel struct {
	ID      types.String `tfsdk:"id"`
	JWKSURI types.String `tfsdk:"jwks_uri"`
	Keys    types.List   `tfsdk:"keys"`
	PEM     types.List   `tfsdk:"pem"`
}

JWKSDataSourceModel describes the data source data model.

type JWKSDocument

type JWKSDocument struct {
	Keys []JWKeys `json:"keys"`
}

type JWKeys

type JWKeys struct {
	Kty string `json:"kty"`
	Alg string `json:"alg"`
	Use string `json:"use"`
	Kid string `json:"kid"`
	N   string `json:"n"`
	E   string `json:"e"`
}

type WellKnownOIDCProvider

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

WellKnownOIDCProvider defines the provider implementation.

func (*WellKnownOIDCProvider) Configure

func (*WellKnownOIDCProvider) DataSources

func (p *WellKnownOIDCProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*WellKnownOIDCProvider) Metadata

func (*WellKnownOIDCProvider) Resources

func (p *WellKnownOIDCProvider) Resources(ctx context.Context) []func() resource.Resource

func (*WellKnownOIDCProvider) Schema

type WellKnownOIDCProviderModel

type WellKnownOIDCProviderModel struct {
}

WellKnownOIDCProviderModel describes the provider data model.

Jump to

Keyboard shortcuts

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