Atex.Config (atex v0.9.1)

View Source

Library-wide configuration for Atex.

Configuration

The following keys are supported under config :atex:

config :atex,
  plc_directory_url: "https://plc.directory",
  service_did: "did:web:my-service.example"
  • :plc_directory_url - Base URL for the did:plc directory server. Defaults to "https://plc.directory".
  • :service_did - The DID of this service, used as the expected aud claim when validating incoming inter-service auth JWTs via Atex.XRPC.Router. Required when using Atex.XRPC.Router with auth enabled.

Summary

Functions

Returns the configured base URL for the did:plc directory server.

Returns the configured service DID to be used for validation service auth tokens.

Functions

directory_url()

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

Returns the configured base URL for the did:plc directory server.

Reads :plc_directory_url from the :atex application environment. Defaults to "https://plc.directory".

service_did()

@spec service_did() :: String.t() | nil

Returns the configured service DID to be used for validation service auth tokens.

Reads :service_did from the `:atex application environment.