Documentation
¶
Index ¶
- func AllowedOrigin(origin string) bool
- func BasicEnabled() bool
- func DatabaseURI(label string) string
- func FlushStorage() bool
- func IsTest() bool
- func PublicAddress() string
- func PublicURI() string
- func SamlEnabled() bool
- func TargetAudiences() []string
- func TwofactorDisabled() bool
- func TwofactorResettable() bool
- func UserService(name, credential string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowedOrigin ¶
AllowedOrigin checks the given origin is whitelisted as an acceptable address.
func BasicEnabled ¶
func BasicEnabled() bool
BasicEnabled returns a boolean indicating whether the system allows basic authentication.
func DatabaseURI ¶
DatabaseURI is the URI used to establish the database connection
func FlushStorage ¶
func FlushStorage() bool
FlushStorage returns whether the data should be flushed per use.
func PublicAddress ¶
func PublicAddress() string
PublicAddress is a bindable address to host the server
func SamlEnabled ¶
func SamlEnabled() bool
SamlEnabled returns a boolean indicating whether the system allows SAML authentication.
func TargetAudiences ¶
func TargetAudiences() []string
TargetAudiences which are accepted based on the configured environment.
func TwofactorDisabled ¶
func TwofactorDisabled() bool
TwofactorDisabled returns a boolean indicating whether the system allows for multiple factor authentication.
func TwofactorResettable ¶
func TwofactorResettable() bool
TwofactorResettable returns a boolean indicating whether the system allows for an account to reset the multiple factor authentication assigned to it.
func UserService ¶
UserService will attempt to pull credential information for a service by service name and credential name.
If there is a VCAP_SERVICES environment variable it will attempt to parse its JSON value.
Otherwise it will look for an environment variable in a normalized name and use its value:
- app-smtp => APP_SMTP
- app-postgres => APP_POSTGRES
Types ¶
This section is empty.