Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.49 KB

README.md

File metadata and controls

53 lines (39 loc) · 1.49 KB

Ueberauth Strategy for Northwestern University Agentless SSO

Build Coverage Hex.pm

Northwestern University Agentless SSO strategy for Ueberauth

Installation

  1. Add ueberauth and ueberauth_nusso to your list of dependencies in mix.exs:
def deps do
  [
    {:ueberauth, "~> 0.2"},
    {:ueberauth_nusso, "~> 0.3"},
  ]
end
  1. Ensure ueberauth_nusso is started before your application:
def application do
  [applications: [:ueberauth_nusso]]
end
  1. 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
  1. In AuthController use the NuSSO strategy in your login/4 function:
def login(conn, _params, _current_user, _claims) do
  conn
  |> Ueberauth.Strategy.NuSSO.handle_request!
end

Contributing

Issues and Pull Requests are always welcome!