Skip to content

Commit

Permalink
Se documento la función set_oauth.
Browse files Browse the repository at this point in the history
  • Loading branch information
nehuenpereyra committed Aug 5, 2021
1 parent 205c630 commit 46ecf80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/helpers/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
oauth = OAuth()

def set_oauth(app):
"""The OAuth module is configured
Keyword arguments:
app -- application where to initialize the module
"""
SITE_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__),".."))
json_url_google = os.path.join(SITE_ROOT, "static","oauth", "client_secret_google.json")
json_data_google = json.load(open(json_url_google))
Expand Down

0 comments on commit 46ecf80

Please sign in to comment.