Skip to content

Ueberauth strategy for use with Northwestern University Agentless SSO

License

Notifications You must be signed in to change notification settings

nulib/ueberauth_nusso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Ueberauth strategy for use with Northwestern University Agentless SSO

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages