Steamex v0.0.7 Steamex.Auth
Functions related to authenticating with the Steam OpenID provider.
Summary
Functions
Returns the URL you should direct your users to in order to log in
Validate a “return_to” payload from Steam
Functions
Returns the URL you should direct your users to in order to log in.
realm
should be set to your base URL, i.e. “http://example.com”.
return_to
is the URL that Steam will redirect to after a successful auth.
If you use Steamex.Auth.Phoenix
, this is realm <> "/steamex/return_to"
by default.
Validate a “return_to” payload from Steam.
You probably want to use Steamex.Auth.Plug
/Steamex.Auth.Phoenix
to handle this for you, but it’s here in case you want to validate payloads
manually.
This function will raise an exception if validation fails, or return the user’s Steam ID as an integer if it succeeds.