Skip to content

Commit

Permalink
Merge pull request #10 from joshbode/additional_scopes
Browse files Browse the repository at this point in the history
add optional additional scopes
  • Loading branch information
Lucas Chapin authored Oct 26, 2018
2 parents 00cc0c5 + dba88ad commit 8684104
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/google_oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
from .auth import Auth

class GoogleOAuth(Auth):
def __init__(self, app, authorized_emails):
def __init__(self, app, authorized_emails, additional_scopes=None):
super(GoogleOAuth, self).__init__(app)
google_bp = make_google_blueprint(
scope=[
"https://www.googleapis.com/auth/userinfo.email",
"https://www.googleapis.com/auth/userinfo.profile",
],
] + (additional_scopes if additional_scopes else []),
offline=True,
reprompt_consent=True,
)
Expand Down

0 comments on commit 8684104

Please sign in to comment.