Northwestern University Agentless SSO strategy for Ueberauth
- Add
ueberauth
andueberauth_nusso
to your list of dependencies inmix.exs
:
def deps do
[
{:ueberauth, "~> 0.2"},
{:ueberauth_nusso, "~> 0.3"},
]
end
- Ensure
ueberauth_nusso
is 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
AuthController
use the NuSSO strategy in yourlogin/4
function:
def login(conn, _params, _current_user, _claims) do
conn
|> Ueberauth.Strategy.NuSSO.handle_request!
end
Issues and Pull Requests are always welcome!