authable v0.6.5 Authable.AuthStrategy.Header

Authable Strategy implements behaviour Authable.Strategy to check ‘header’ based authencations to find resource owner.

Summary

Functions

Finds resource owner using configured ‘headers’ 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

Functions

authenticate(conn, required_scopes)

Finds resource owner using configured ‘headers’ 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.