Skip to content
This repository has been archived by the owner on May 24, 2019. It is now read-only.

Add leaderboard_base_uri to config #228 #229

Merged
merged 1 commit into from
Jan 12, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Firefox Accounts Configuration
{
client_id: <str>,
scopes: <str>,
leaderboard_base_uri: <str>,
profile_uri: <str>,
oauth_uri: <str>,
redirect_uri: <str>
Expand Down
1 change: 1 addition & 0 deletions leaderboard/fxa/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def test_config_view_returns_fxa_settings(self):
'client_id': test_settings['FXA_CLIENT_ID'],
'scopes': test_settings['FXA_SCOPE'],
'oauth_uri': test_settings['FXA_OAUTH_URI'],
'leaderboard_base_uri': 'http://testserver/',
'profile_uri': test_settings['FXA_PROFILE_URI'],
'redirect_uri': 'http://testserver{path}'.format(
path=reverse('fxa-redirect')),
Expand Down
1 change: 1 addition & 0 deletions leaderboard/fxa/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def get(self, request):
'scopes': settings.FXA_SCOPE,
'oauth_uri': settings.FXA_OAUTH_URI,
'profile_uri': settings.FXA_PROFILE_URI,
'leaderboard_base_uri': request.build_absolute_uri('/'),
'redirect_uri': request.build_absolute_uri(
reverse('fxa-redirect')),
},
Expand Down