Skip to content

Commit

Permalink
Zulu time for expires_at OAuth2 API response
Browse files Browse the repository at this point in the history
  • Loading branch information
mblomdahl committed Nov 2, 2017
1 parent 8685407 commit d4c0843
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/end2end/test_oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def test_verify_success_response(token, testapp):
headers={'Authorization': str('Bearer ' + token.access_token)})

assert res.json_body['app_version'] == __version__
assert res.json_body['expires_at'] == token.expires_at.isoformat()
assert res.json_body['expires_at'] == token.expires_at.isoformat() + 'Z'
assert res.json_body['user']['full_name'] == token.user.full_name
assert res.json_body['user']['email'] == token.user.email

Expand Down
2 changes: 1 addition & 1 deletion xl_auth/oauth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def verify():

return jsonify(
app_version=current_app.config['APP_VERSION'],
expires_at=oauth.access_token.expires_at.isoformat(),
expires_at=oauth.access_token.expires_at.isoformat() + 'Z',
user={
'full_name': oauth.user.full_name,
'email': oauth.user.email,
Expand Down

0 comments on commit d4c0843

Please sign in to comment.