cassette v1.3.1 Cassette.Config
Struct that represents Cassette configuration
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
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.has_role?/2service- 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 certificate check fails
Any of those keys may be set in your Application environment (or the mix config/config.exs) as:
config :cassette, username: "john.doe"
Cassette.Servers 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`):
export CASSETTE_USERNAME=acme
Please check the [`Cassette.Config.default/0`](Cassette.Config.html#default/0) function.
Functions
Returns a configuration based on what is set in application environment and default values
Check Cassette.Config.t for key details