- open the
.env.localfile - 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
SESuser that was created - click on
Add permissions, then add theAmazonSESReadOnlyAccesspermission - 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_IDandAWS_SES_SECRET_ACCESS_KEYenvironment variables - fill in the region where you set up the Simple Email Service in the
AWS_SES_REGION_NAMEenvironment variable - fill in the email that will be sending emails in the
AWS_SES_FROM_EMAILenvironment 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
Externaluser type - add the
Authorized domains - under
scopes, clickADD OR REMOVE SCOPES, add the../auth/userinfo.email,../auth/userinfo.profile, andopenidscopes - 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_KEYandGOOGLE_AUTH_SECRET_KEYenvironment 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
WebsiteandNo, 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 theEditbutton - under the
emailpermissions, clickAdd - navigate to
BasicunderSettings - take the
App IDandApp secret, and use them as the values in theFACEBOOK_AUTH_KEYandFACEBOOK_AUTH_SECRET_KEYenvironment variables - under
App domains, addlocalhost, and this is also where you can add your production domain - navigate to
RolesunderApp 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 LoginclickConfigure, 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