Packages

An Ueberauth strategy for generic OpenID Connect (OIDC) authentication, and a library for implementing other OIDC strategies. Based on the Oidcc library.

Current section

Files

Jump to
ueberauth_oidcc lib ueberauth_oidcc application.ex
Raw

lib/ueberauth_oidcc/application.ex

defmodule UeberauthOidcc.Application do
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children =
for child_opts <- Application.get_env(:ueberauth_oidcc, :issuers) || [] do
name = Map.fetch!(child_opts, :name)
child_opts = Map.put_new(child_opts, :backoff_type, :random)
Supervisor.child_spec({Oidcc.ProviderConfiguration.Worker, child_opts}, id: name)
end
opts = [strategy: :one_for_one, name: UeberauthOidcc.Supervisor]
Supervisor.start_link(children, opts)
end
end