Skip to content

Commit

Permalink
added example key folder with empty files and example auth_config for…
Browse files Browse the repository at this point in the history
… reference
  • Loading branch information
gguibon committed Sep 20, 2021
1 parent a777ee3 commit 5e060f2
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions app/auth/auth_config_example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# -*- coding: utf-8 -*-
# authomatic providers config.py
## WARNING : this class is empty and showcases the app/auth/auth_config.py that is required to run backend locally.
## Please use your own consumer and secret keys.

import authomatic
from authomatic.providers import oauth1, oauth2

CONFIG = {
'twitter': { # Your internal provider name
# Provider class
'class_': oauth1.Twitter,
'consumer_key': '####',
'consumer_secret': '####',
'id': authomatic.provider_id()
},

# 'yahoo': {
# 'class_': oauth1.Yahoo,
# 'consumer_key': '##########--',
# 'consumer_secret': '##########',
# 'id': authomatic.provider_id()
# },

'facebook': {

'class_': oauth2.Facebook,
'consumer_key': '###',
'consumer_secret': '###',
'id': authomatic.provider_id(),
'scope': oauth2.Facebook.user_info_scope
},

'google': {
'class_': oauth2.Google,
'consumer_key': '###',
'consumer_secret': '###',
'id': authomatic.provider_id(),
'scope': oauth2.Google.user_info_scope
},

'github': {

'class_': oauth2.GitHub,
'consumer_key':'###',
'consumer_secret': '###',
'id': authomatic.provider_id(),
'scope': oauth2.GitHub.user_info_scope
},

'linkedin': {
'class_': oauth2.LinkedIn,
'consumer_key': '###',
'consumer_secret': '###',
'id': authomatic.provider_id(),
'scope': oauth2.LinkedIn.user_info_scope,
'_name': 'LinkedIn',
},
}
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file added keys_example/arborator-grew.pem
Empty file.

0 comments on commit 5e060f2

Please sign in to comment.