Ueberauth.Strategy.NuSSO (Ueberauth NuSSO strategy v2.2.0)

View Source

NuSSO Strategy for Überauth. Redirects the user to an NuSSO login page and verifies the auth token the NuSSO server returns after a successful login. The login flow looks like this:

  1. User is redirected to the NuSSO server's login page by Ueberauth.Strategy.NuSSO.handle_request!
  2. User signs in to the NuSSO server.
  3. NuSSO server redirects back to the Elixir application, sending an auth token as an HTTP Cookie header.
  4. This auth token is validated by this Überauth NuSSO strategy, fetching the user's information at the same time.
  5. User can proceed to use the Elixir application.

Summary

Functions

Ueberauth extra information callback. Returns all attributes the NuSSO server returned about the user that authenticated.

Ueberauth after login callback with a valid NuSSO Cookie.

Ueberauth request handler. Redirects to the NuSSO server's login page.

Ueberauth user information.

Ueberauth UID callback.

Functions

credentials(conn)

Callback implementation for Ueberauth.Strategy.credentials/1.

default_options()

Callback implementation for Ueberauth.Strategy.default_options/0.

extra(conn)

Ueberauth extra information callback. Returns all attributes the NuSSO server returned about the user that authenticated.

handle_callback!(conn)

Ueberauth after login callback with a valid NuSSO Cookie.

handle_cleanup!(conn)

Callback implementation for Ueberauth.Strategy.handle_cleanup!/1.

handle_request!(conn)

Ueberauth request handler. Redirects to the NuSSO server's login page.

info(conn)

Ueberauth user information.

uid(conn)

Ueberauth UID callback.