idps

package
v1.3.0-prerelease.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultMappingMethod = validMappingMethods[0]
View Source
var LDAPAttrDefaultID []string = []string{"dn"}
View Source
var LDAPAttrDefaultName []string = []string{"cn"}
View Source
var LDAPAttrDefaultPrefferedUsername []string = []string{"uid"}

Functions

func CreateGoogleIDPBuilder

func CreateGoogleIDPBuilder(ctx context.Context, mappingMethod string, state *GoogleIdentityProvider) (*cmv1.GoogleIdentityProviderBuilder, error)

func GithubSchema

func GithubSchema() tfsdk.NestedAttributes

func GithubValidators

func GithubValidators() []tfsdk.AttributeValidator

func GitlabSchema

func GitlabSchema() tfsdk.NestedAttributes

func GitlabValidators

func GitlabValidators() []tfsdk.AttributeValidator

func GoogleSchema

func GoogleSchema() tfsdk.NestedAttributes

func GoogleValidators

func GoogleValidators() []tfsdk.AttributeValidator

func HTPasswdUserList added in v1.3.0

func HTPasswdUserList() tfsdk.NestedAttributes

func HTPasswdValidators added in v1.2.0

func HTPasswdValidators() []tfsdk.AttributeValidator

func HtpasswdSchema

func HtpasswdSchema() tfsdk.NestedAttributes

func LDAPAttributesSchema

func LDAPAttributesSchema() tfsdk.NestedAttributes

func LDAPSchema

func LDAPSchema() tfsdk.NestedAttributes

func LDAPValidators

func LDAPValidators() []tfsdk.AttributeValidator

func MappingMethodValidators

func MappingMethodValidators() []tfsdk.AttributeValidator

func OpenidSchema

func OpenidSchema() tfsdk.NestedAttributes

func ValidateHTPasswdPassword added in v1.2.0

func ValidateHTPasswdPassword(password string) error

func ValidateHTPasswdUsername added in v1.2.0

func ValidateHTPasswdUsername(username string) error

Types

type GithubIdentityProvider

type GithubIdentityProvider struct {
	CA            types.String `tfsdk:"ca"`
	ClientID      types.String `tfsdk:"client_id"`
	ClientSecret  types.String `tfsdk:"client_secret"`
	Hostname      types.String `tfsdk:"hostname"`
	Organizations types.List   `tfsdk:"organizations"`
	Teams         types.List   `tfsdk:"teams"`
}

type GitlabIdentityProvider

type GitlabIdentityProvider struct {
	CA           types.String `tfsdk:"ca"`
	ClientID     types.String `tfsdk:"client_id"`
	ClientSecret types.String `tfsdk:"client_secret"`
	URL          types.String `tfsdk:"url"`
}

type GoogleIdentityProvider

type GoogleIdentityProvider struct {
	ClientID     types.String `tfsdk:"client_id"`
	ClientSecret types.String `tfsdk:"client_secret"`
	HostedDomain types.String `tfsdk:"hosted_domain"`
}

type HTPasswdIdentityProvider

type HTPasswdIdentityProvider struct {
	Users []HTPasswdUser `tfsdk:"users"`
}

type HTPasswdUser added in v1.3.0

type HTPasswdUser struct {
	Username types.String `tfsdk:"username"`
	Password types.String `tfsdk:"password"`
}

type LDAPIdentityProvider

type LDAPIdentityProvider struct {
	BindDN       types.String                    `tfsdk:"bind_dn"`
	BindPassword types.String                    `tfsdk:"bind_password"`
	CA           types.String                    `tfsdk:"ca"`
	Insecure     types.Bool                      `tfsdk:"insecure"`
	URL          types.String                    `tfsdk:"url"`
	Attributes   *LDAPIdentityProviderAttributes `tfsdk:"attributes"`
}

type LDAPIdentityProviderAttributes

type LDAPIdentityProviderAttributes struct {
	EMail             types.List `tfsdk:"email"`
	ID                types.List `tfsdk:"id"`
	Name              types.List `tfsdk:"name"`
	PreferredUsername types.List `tfsdk:"preferred_username"`
}

type OpenIDIdentityProvider

type OpenIDIdentityProvider struct {
	CA                       types.String                  `tfsdk:"ca"`
	Claims                   *OpenIDIdentityProviderClaims `tfsdk:"claims"`
	ClientID                 types.String                  `tfsdk:"client_id"`
	ClientSecret             types.String                  `tfsdk:"client_secret"`
	ExtraScopes              types.List                    `tfsdk:"extra_scopes"`
	ExtraAuthorizeParameters map[string]string             `tfsdk:"extra_authorize_parameters"`
	Issuer                   types.String                  `tfsdk:"issuer"`
}

type OpenIDIdentityProviderClaims

type OpenIDIdentityProviderClaims struct {
	EMail             types.List `tfsdk:"email"`
	Groups            types.List `tfsdk:"groups"`
	Name              types.List `tfsdk:"name"`
	PreferredUsername types.List `tfsdk:"preferred_username"`
}

Jump to

Keyboard shortcuts

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