Ueberauth Paypal Strategy v0.2.0 Ueberauth.Strategy.Paypal

Paypal Strategy for Überauth.

Summary

Functions

Provides the credentials for the user

Provides the extra params for the user

The callback phase implementation for your strategy

The cleanup phase implementation for your strategy

The request phase implementation for your strategy

Provides the info for the user

Provides the uid for the user

Functions

auth(conn)
credentials(conn)

Provides the credentials for the user.

This is one of the component functions that is used to construct the auth struct. What you return here will be in the auth struct at the credentials key.

Callback implementation for Ueberauth.Strategy.credentials/1.

default_options()
extra(conn)

Provides the extra params for the user.

This is one of the component functions that is used to construct the auth struct. What you return here will be in the auth struct at the extra key.

You would include any additional information within extra that does not fit in either info or credentials

Callback implementation for Ueberauth.Strategy.extra/1.

handle_callback!(conn)

The callback phase implementation for your strategy.

In this function you should make any external calls you need, check for errors etc. The result of this phase is that either a failure (Ueberauth.Failure) will be assigned to the connections assigns at ueberauth_failure or an Ueberauth.Auth struct will be constrcted and added to the assigns at :ueberauth_auth.

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

handle_cleanup!(conn)

The cleanup phase implementation for your strategy.

The cleanup phase runs after the callback phase and is present to provide a mechanism to cleanup any temporary data your strategy may have placed in the connection.

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

handle_request!(conn)

The request phase implementation for your strategy.

Setup, redirect or otherwise in here. This is an information gathering phase and should provide the end user with a way to provide the information required for your application to authenticate them.

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

info(conn)

Provides the info for the user.

This is one of the component functions that is used to construct the auth struct. What you return here will be in the auth struct at the info key.

Callback implementation for Ueberauth.Strategy.info/1.

uid(conn)

Provides the uid for the user.

This is one of the component functions that is used to construct the auth struct. What you return here will be in the auth struct at the uid key.

Callback implementation for Ueberauth.Strategy.uid/1.