View Source CloudflareAccessEx.Config (cloudflare_access_ex v0.1.2)

Utility functions for processing the configuration of the library.

Summary

Functions

Return all domain names in all keys under :cloudflare_access_ex.

Get the issuer URL for a domain. By default, just the domain name is provided, but it is also possible to provide a full URL. This function will ensure that the issuer URL is a full URL.

Given a domain atom or string, return the domain string.

Functions

@spec get_domain_strings() :: [String.t()]

Return all domain names in all keys under :cloudflare_access_ex.

@spec get_issuer(String.t()) :: String.t()

Get the issuer URL for a domain. By default, just the domain name is provided, but it is also possible to provide a full URL. This function will ensure that the issuer URL is a full URL.

@spec resolve_domain(atom() | String.t()) :: String.t()

Given a domain atom or string, return the domain string.

If the domain is an atom, it will be looked up in the application config.