andela / ah-infinity-stones

BSD 3-Clause "New" or "Revised" License
0 stars 3 forks source link

#161966914 Implement social login functionalities #40

Closed PromasterGuru closed 5 years ago

PromasterGuru commented 5 years ago

What does this PR do?

Description of Task to be completed?

How should this be manually tested?

$ https://github.com/andela/ah-infinity-stones.git $ cd ah-infinity-stones $ git checkout ft-social-login-161966914 $ virutalenv -m python3 venv $ source venv/bin/activate $ pip install -r requirements.txt

Create a .env file and add the relevant environmental variables

export DATABASE_NAME='db_name'
export DATABASE_TEST='test_db_name'
export DATABASE_USER='db_user_name'
export DATABASE_PASSWORD='db_user_password'
export DATABASE_HOST=''
export DATABASE_PORT='5432'
export SECRET_KEY='your_secret_key'
export GOOGLE_KEY='google_key'
export GOOGLE_SECRET_KEY='google_secret_key'
export FACEBOOK_KEY='facebook_app_id'
export FACEBOOK_SECRET_KEY='facebook_user_secret_key'
export TWITTER_KEY='twitter_key'
export TWITTER_SECRET_KEY='twitter_secret_key'
export EMAIL_HOST_USER='email_host_user'
export EMAIL_HOST_PASSWORD='_email_host_user_password'

Start postman and use the following url http://127.0.0.1:8000/api/login/oauth/

Use the following links to get your access tokens Google:

{
    "provider":"google-oauth2",
    "access_token":"valid_google_access_token"
}

Facebook

{
    "provider":"facebook",
    "access_token":"valid_facebook_access_token"
}

Twitter

{
    "provider": "twitter",
    "access_token": "valid_access_token",
    "access_token_secret": "valid_access_token_secret"

}

What are the relevant pivotal tracker stories?

#161966914

Screenshots (if appropriate)

screenshot 2018-12-17 at 20 30 13



screenshot 2018-12-17 at 22 17 04



screenshot 2018-12-17 at 22 18 55



screenshot 2018-12-17 at 20 34 46
r-wambui commented 5 years ago

@PromasterGuru Please check that the travis completes the build.

codeclimate[bot] commented 5 years ago

Code Climate has analyzed commit 2eac0e84 and detected 6 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1
Duplication 5

View more on Code Climate.