extsamlidp

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PropertiesPrefix = "security.idp.saml"
)

Variables

View Source
var Module = &bootstrap.Module{
	Name:       "SAML IDP",
	Precedence: security.MaxSecurityPrecedence - 100,
	Options: []fx.Option{
		fx.Provide(BindSamlAuthProperties),
	},
}

Functions

func Use

func Use()

Types

type Options

type Options func(opt *option)

func WithProperties

func WithProperties(props *SamlAuthProperties) Options

type SamlAuthEndpointProperties

type SamlAuthEndpointProperties struct{}

type SamlAuthProperties

type SamlAuthProperties struct {
	Enabled   bool                       `json:"enabled"`
	Endpoints SamlAuthEndpointProperties `json:"endpoints"`
}

func NewSamlAuthProperties

func NewSamlAuthProperties() *SamlAuthProperties

type SamlIdentityProvider

type SamlIdentityProvider struct {
	SamlIdpDetails
}

SamlIdentityProvider implements idp.IdentityProvider, idp.AuthenticationFlowAware and samllogin.SamlIdentityProvider

func NewIdentityProvider

func NewIdentityProvider(opts ...SamlIdpOptions) *SamlIdentityProvider

func (SamlIdentityProvider) AuthenticationFlow

func (s SamlIdentityProvider) AuthenticationFlow() idp.AuthenticationFlow

func (SamlIdentityProvider) Domain

func (s SamlIdentityProvider) Domain() string

func (SamlIdentityProvider) EntityId

func (s SamlIdentityProvider) EntityId() string

func (SamlIdentityProvider) ExternalIdName

func (s SamlIdentityProvider) ExternalIdName() string

func (SamlIdentityProvider) ExternalIdpName

func (s SamlIdentityProvider) ExternalIdpName() string

func (SamlIdentityProvider) GetAutoCreateUserDetails

func (s SamlIdentityProvider) GetAutoCreateUserDetails() security.AutoCreateUserDetails

func (SamlIdentityProvider) GetMetadataTrustedKeys

func (s SamlIdentityProvider) GetMetadataTrustedKeys() []string

func (SamlIdentityProvider) MetadataLocation

func (s SamlIdentityProvider) MetadataLocation() string

func (SamlIdentityProvider) ShouldMetadataRequireSignature

func (s SamlIdentityProvider) ShouldMetadataRequireSignature() bool

func (SamlIdentityProvider) ShouldMetadataTrustCheck

func (s SamlIdentityProvider) ShouldMetadataTrustCheck() bool

type SamlIdpAutoCreateUserDetails

type SamlIdpAutoCreateUserDetails struct {
	Enabled               bool
	EmailWhiteList        []string
	AttributeMapping      map[string]string
	ElevatedUserRoleNames []string
	RegularUserRoleNames  []string
}

func (SamlIdpAutoCreateUserDetails) GetAttributeMapping

func (a SamlIdpAutoCreateUserDetails) GetAttributeMapping() map[string]string

func (SamlIdpAutoCreateUserDetails) GetElevatedUserRoleNames

func (a SamlIdpAutoCreateUserDetails) GetElevatedUserRoleNames() []string

func (SamlIdpAutoCreateUserDetails) GetEmailWhiteList

func (a SamlIdpAutoCreateUserDetails) GetEmailWhiteList() []string

func (SamlIdpAutoCreateUserDetails) GetRegularUserRoleNames

func (a SamlIdpAutoCreateUserDetails) GetRegularUserRoleNames() []string

func (SamlIdpAutoCreateUserDetails) IsEnabled

func (a SamlIdpAutoCreateUserDetails) IsEnabled() bool

type SamlIdpDetails

type SamlIdpDetails struct {
	EntityId                 string
	Domain                   string
	MetadataLocation         string
	ExternalIdName           string
	ExternalIdpName          string
	MetadataRequireSignature bool
	MetadataTrustCheck       bool
	MetadataTrustedKeys      []string
	AutoCreateUserDetails    SamlIdpAutoCreateUserDetails
}

type SamlIdpOptions

type SamlIdpOptions func(opt *SamlIdpDetails)

type SamlIdpSecurityConfigurer

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

SamlIdpSecurityConfigurer implements authserver.IdpSecurityConfigurer

func NewSamlIdpSecurityConfigurer

func NewSamlIdpSecurityConfigurer(opts ...Options) *SamlIdpSecurityConfigurer

func (*SamlIdpSecurityConfigurer) Configure

func (*SamlIdpSecurityConfigurer) ConfigureLogout

func (c *SamlIdpSecurityConfigurer) ConfigureLogout(ws security.WebSecurity, config *authserver.Configuration)

Jump to

Keyboard shortcuts

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