cassette v1.5.0 Cassette.Config
Struct that represents Cassette configuration
Link to this section Summary
Functions
Returns a configuration based on what is set in application environment and default values
Resolves config by fetching environment variables when values are in the form
Link to this section Types
The following keys are supported and may be defined in your application env
username
- the username to authenticate on cas serverpassword
- the password to authenticate on cas serverbase_url
- the base url for your CAS server (do not include thelogin/
)base_authority
- simplifies role checking, please refer toCassette.User.role?/2
service
- the CAS service to use when validating service ticketstgt_ttl
- the TGT cache time to livest_ttl
- the ST cache time to livevalidation_ttl
- the ST validation cache time to liveinsecure
- boolean to allow connection even with ssl check failures
Any of those keys may be set in your Application environment
(or the mix config/config.exs
) as:
config :cassette, username: "john.doe"
Cassette.Server
s call the resolve/1
function on this module to resolve any
configuration using environment variables.
To use an environment variable set the value to
{:system, "SOME_ENVIRONMENT_VARIABLE"}
.
Or in config.exs
:
config :cassette, username: {:system, "CASSETTE_USERNAME"}
``
and configure your environment (provabably in something like
`/etc/default/your_app`):
CASSETTE_USERNAME=acme
Please check the [`Cassette.Config.default/0`](Cassette.Config.html#default/0) function.
Link to this section Functions
Returns a configuration based on what is set in application environment and default values
Check Cassette.Config.t
for key details
Resolves config by fetching environment variables when values are in the form:
{:system, "SOME_ENVIRONMENT_VARIABLE"}
The value will be fetched from the SOME_ENVIRONMENT_VARIABLE
variable.
If that variable is nil
, the default value in Cassette.Config.t
will be
used