-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added example key folder with empty files and example auth_config for…
… reference
- Loading branch information
Showing
8 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.