500 error when using ?access_token #69962

Closed
opened 2019-09-16 23:07:34 +02:00 by Frederic · 4 comments

The server throw an internal error when querying the API without cookies

AttributeError at /api/me
'AnonymousUser' object has no attribute 'roles'

how to reproduce:

  • get an access token for a specific user and a specific app, eventually make a login on blender ID

  • go then to your browser
    http://id.local:8000/api/me?access_token=XXX
    you should see your user info

  • logout from blender ID, or remove your cookies
    same URL goes 500 now

The server throw an internal error when querying the API without cookies ``` AttributeError at /api/me 'AnonymousUser' object has no attribute 'roles' ``` how to reproduce: - get an access token for a specific user and a specific app, eventually make a login on blender ID - go then to your browser http://id.local:8000/api/me?access_token=XXX you should see your user info - logout from blender ID, or remove your cookies same URL goes 500 now
Author

Added subscriber: @TaOuch

Added subscriber: @TaOuch
Sybren A. Stüvel was assigned by Brecht Van Lommel 2019-09-17 11:38:23 +02:00

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Passing an access token in this way is not supported. All API calls should have an HTTP header Authorization: Bearer XXX.

Passing an access token in this way is not supported. All API calls should have an HTTP header `Authorization: Bearer XXX`.
Author

it was for the fact that the server throw a 500 error.

it was for the fact that the server throw a 500 error.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: infrastructure/blender-id#69962
No description provided.