Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

niknetniko/uberauth-cas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Überauth CAS Strategy

Build Coverage Documentation Hex.pm

Central Authentication Service strategy for Überauth.

Installation

  1. Add ueberauth and ueberauth_cas to your list of dependencies in mix.exs:

    def deps do
      [
        {:ueberauth, "~> 0.2"},
        {:ueberauth_cas, "~> 1.0.0"},
      ]
    end
  2. Ensure ueberauth_cas is started before your application:

    def application do
      [applications: [:ueberauth_cas]]
    end
  3. Configure the CAS integration in config/config.exs:

    config :ueberauth, Ueberauth,
      providers: [cas: {Ueberauth.Strategy.CAS, [
        base_url: "http://cas.example.com",
        callback: "http://your-app.example.com/auth/cas/callback",
      ]}]
  4. In AuthController use the CAS strategy in your login/4 function:

    def login(conn, _params, _current_user, _claims) do
      conn
      |> Ueberauth.Strategy.CAS.handle_request!
    end

Compatibility

Überauth CAS was tested with the Casino CAS server implementation. Please let me know if Überauth CAS is incompatible with your CAS server, and why.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages