- open the
.env.local
file - fill out the value for
DJANGO_SECRET_KEY
- go to AWS
- log into your aws account, or create one if you don't have one
- navigate to the
Simple Email Service (SES)
- validate 2 emails, one which will be the sender email, and the other the receiver email
- go to the
SMTP settings
, and click onCreate SMTP credentials
- after creating the IAM user, next navigate to
IAM
- under
Access management
, click onusers
- click on the
SES
user that was created - click on
Add permissions
, then add theAmazonSESReadOnlyAccess
permission - then go to
Security credentials
, and create a new access key - take the access key and secret, and use them as the values in the
AWS_SES_ACCESS_KEY_ID
andAWS_SES_SECRET_ACCESS_KEY
environment variables - fill in the region where you set up the Simple Email Service in the
AWS_SES_REGION_NAME
environment variable - fill in the email that will be sending emails in the
AWS_SES_FROM_EMAIL
environment variable - go to google cloud HERE
- in the settings, hover over
APIs & Services
, and click onOAuth consent screen
- fill in the details for the OAuth consent screen
- create an
External
user type - add the
Authorized domains
- under
scopes
, clickADD OR REMOVE SCOPES
, add the../auth/userinfo.email
,../auth/userinfo.profile
, andopenid
scopes - under
Test users
, add your receiver email
- create an
- next go to the settings again, hover over
APIS & Services
, and click onCredentials
- click on
CREATE CREDENTIALS
, then click onOAuth client ID
- take the access key and secret, and use them as the values in the
GOOGLE_AUTH_KEY
andGOOGLE_AUTH_SECRET_KEY
environment variables - for
Application type
, you can selectWeb application
- under
Authorized JavaScript origins
, addhttp://localhost:3000
- under
Authorized redirect URIs
, addhttp://localhost:3000/auth/google
- to have this work in your production environment, do the following:
- under
Authorized JavaScript origins
, addhttps://your-domain.com
- under
Authorized redirect URIs
, addhttps://your-domain.com/auth/google
- under
- go to facebook developers HERE
- navigate to
My Apps
, click onCreate App
, then clickSet up Facebook Login
, then clickNext
- select
Website
andNo, I'm not building a game
, then clickNext
- fill in your app name, then click
Create app
- click on
Use cases
, then underAuthentication and account creation
, click theEdit
button - under the
email
permissions, clickAdd
- navigate to
Basic
underSettings
- take the
App ID
andApp secret
, and use them as the values in theFACEBOOK_AUTH_KEY
andFACEBOOK_AUTH_SECRET_KEY
environment variables - under
App domains
, addlocalhost
, and this is also where you can add your production domain - navigate to
Roles
underApp Roles
- click on
Add Testers
, and put into the field the value of a Facebook ID you will use to log into the app with- to get the value of a Facebook ID, simply log into the Facebook account, go to the profile page, then grab the ID from the URL
- to activate the tester account, with your tester account navigate to facebook developers HERE
- navigate to
My Apps
, and in the dropdown you will see a prompt to accept the account as a tester on the app - next go to
Products
, underFacebook Login
clickConfigure
, thenSettings
- for things to work in your development environment you don't need to fill in anything on this screen
- to have this work in your production environment, under
Valid OAuth Redirect URIs
, addhttps://your-domain.com/auth/facebook
- to deploy, go to the following link HERE
- next go to the timestamp at
2:47:14
, this is where I show the Digitalocean deployment