Skip to content

Commit

Permalink
Merge pull request #83 from PlaidWeb/feature/82-indieauth-changes
Browse files Browse the repository at this point in the history
Request a code in the 'me' scope
  • Loading branch information
fluffy-critter committed Aug 11, 2020
2 parents c0e34b9 + 4875b8f commit b75f278
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion authl/handlers/indieauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,8 @@ def initiate_auth(self, id_url, callback_uri, redir):
'redirect_uri': callback_uri,
'client_id': client_id,
'state': state,
'response_type': 'id',
'response_type': 'code',
'scope': 'me',
'me': id_url})
return disposition.Redirect(url)

Expand Down
2 changes: 1 addition & 1 deletion tests/handlers/test_indieauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def test_handler_success():
assert 'client_id' in user_get
assert 'state' in user_get
assert user_get['state'] in store
assert user_get['response_type'] == 'id'
assert user_get['response_type'] == 'code'
assert 'me' in user_get

# fake the verification response
Expand Down

0 comments on commit b75f278

Please sign in to comment.