authable v0.11.0 Authable.AuthStrategy.Session

Authable Strategy implements behaviour Authable.Strategy to check 'session' based authencations to find resource owner.

Link to this section Summary

Functions

Finds resource owner using configured 'session' keys. Returns nil if either no keys are configured or key value not found in the session. And, it returns Authable.Model.User on sucess, {:error, Map, :http_status_code} on fails.

Link to this section Functions

Link to this function

authenticate(conn, required_scopes)

Finds resource owner using configured 'session' keys. Returns nil if either no keys are configured or key value not found in the session. And, it returns Authable.Model.User on sucess, {:error, Map, :http_status_code} on fails.