Skip to content

Commit

Permalink
Remove history from default scopes
Browse files Browse the repository at this point in the history
Also make this compatibile with multiple scopes, which expects a
comma-separated list.

Fixes #16
  • Loading branch information
Aiden Scandella committed Sep 2, 2014
1 parent 5c416e8 commit f56b746
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def signup():
params = {
'response_type': 'code',
'redirect_uri': get_redirect_uri(request),
'scope': config.get('scopes'),
'scope': ','.join(config.get('scopes')),
}
url = generate_oauth_service().get_authorize_url(**params)
return redirect(url)
Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"access_token_url": "https://login.uber.com/oauth/token",
"authorize_url": "https://login.uber.com/oauth/authorize",
"base_url": "https://login.uber.com/",
"scopes": "profile history",
"scopes": ["profile"],
"name": "Sample app",
"base_uber_url": "https://api.uber.com/v1/",
"start_latitude": "37.781955",
Expand Down

0 comments on commit f56b746

Please sign in to comment.