Documentation
¶
Index ¶
Constants ¶
View Source
const (
PropertiesPrefix = "integrate.security"
)
Variables ¶
View Source
var DefaultConfigFS embed.FS
Functions ¶
This section is empty.
Types ¶
type AccountsProperties ¶
type AccountsProperties struct {
Default AccountCredentialsProperties `json:"default"`
Additional []AccountCredentialsProperties `json:"additional"`
}
type AuthEndpointsProperties ¶
type AuthEndpointsProperties struct {
// BaseUrl is used to override service discovery and load-balancing
// When set, ServiceName, Scheme and ContextPath are ignored
BaseUrl string `json:"base-url"`
// ServiceName The name of auth service, used by service discovery to authentication/authorization URL
ServiceName string `json:"service-name"`
// Scheme HTTP scheme ("http"/"https") of auth service, in case it's not resolvable from service registry
Scheme string `json:"scheme"`
// ContextPath The path prefix of all endpoints, in case it's not resolvable from service registry
ContextPath string `json:"context-path"`
// PasswordLogin Path of password login endpoint
PasswordLogin string `json:"password-login"`
// SwitchContext Path of switch tenant/user endpoint
SwitchContext string `json:"switch-context"`
}
type SecurityIntegrationProperties ¶
type SecurityIntegrationProperties struct {
// How much time after a failed attempt, when re-try is allowed. Before this period pass,
// integration framework will not re-attempt switching context to same combination of username and tenant name
FailureBackOff utils.Duration `json:"failure-back-off"`
// How much time that security context is guaranteed to be valid after requested.
// when such validity cannot be guaranteed (e.g. this value is longer than token's validity),
// we use FailureBackOff and re-request new token after `back-off` passes
GuaranteedValidity utils.Duration `json:"guaranteed-validity"`
Endpoints AuthEndpointsProperties `json:"endpoints"`
Client ClientCredentialsProperties `json:"client"`
Accounts AccountsProperties `json:"accounts"`
}
func BindSecurityIntegrationProperties ¶
func BindSecurityIntegrationProperties(ctx *bootstrap.ApplicationContext) SecurityIntegrationProperties
BindSecurityIntegrationProperties create and bind SessionProperties, with a optional prefix
func NewSecurityIntegrationProperties ¶
func NewSecurityIntegrationProperties() *SecurityIntegrationProperties
NewSecurityIntegrationProperties create a DataProperties with default values
Click to show internal directories.
Click to hide internal directories.