artsy_auth_ex v0.1.1 Artsy.Auth.Plug
Plug for enforcing authentication using Artsy's oauth.
You can configure this plug by defining what roles are allowed to pass this plug:
config :artsy_auth_ex,
allowed_roles: []
This plug checks if current session has access token in the session, verifies if user has proper role based on allowed roles. If user is not allowed, it will return 403 and halt the connection. If user is not logged in, it redirects to "/auth" to get redirected to proper login page.
Link to this section Summary
Link to this section Functions
Link to this function
call(conn, params)
Link to this function