Northwestern University Agentless SSO strategy for Ueberauth
- Add
ueberauthandueberauth_nussoto your list of dependencies inmix.exs:
def deps do
[
{:ueberauth, "~> 0.2"},
{:ueberauth_nusso, "~> 0.3"},
]
end- Ensure
ueberauth_nussois started before your application:
def application do
[applications: [:ueberauth_nusso]]
end- Configure the NuSSO integration in
config/config.exs:
config :ueberauth, Ueberauth,
providers: [nusso: {Ueberauth.Strategy.NuSSO, []}]
config :ueberauth, Ueberauth.Strategy.NuSSO,
base_url: "http://websso.example.com/",
consumer_key: "AGENTLESS_SSO_CONSUMER_KEY",
include_attributes: true- In
AuthControlleruse the NuSSO strategy in yourlogin/4function:
def login(conn, _params, _current_user, _claims) do
conn
|> Ueberauth.Strategy.NuSSO.handle_request!
endIssues and Pull Requests are always welcome!