aaronpk / Aperture

Aperture is a Microsub server. Currently in beta.
https://aperture.p3k.io
Apache License 2.0
69 stars 5 forks source link

Receiving "Unauthorized" in request response #9

Closed EdwardHinkle closed 6 years ago

EdwardHinkle commented 6 years ago

I'm receiving this error from ?action=channels

{ "error": "unauthorized", "error_description": "The access token provided does not have the necessary scope for this action" }

At first I thought this might be a scoping issue. I checked my token endpoint and received:

{ "me": "https://eddiehinkle.com/", "client_id": "***", "scope": "create read" }

In IRC we talked and thought it might be because it is expecting scope to be an array. However I tried the following commit: https://github.com/EdwardHinkle/Aperture/commit/5c0e9b4c8f7743dd345426f1f0acf4370676b0b1 which still present the same error. So doesn't seem quite as easy as I thought.

EdwardHinkle commented 6 years ago

Used a new token as to avoid cache issues and the fix works