I'm working on an application that integrates with GitHub and am having issues "logging out" a user that was previously authenticated. When I attempt to revoke the authorization token for the user, I get a 404 Not Found response from the API.
According to the documentation, it looks like I should just be able to make a DELETE
request to https://api.github.com/authorizations/[authTokenId]
. I have tried a couple of different things including:
- Ensuring the Authorization header is set with the current auth token
- Ensuring the UserAgent header is set with what I use for the rest of the API calls
Nothing seems to result in anything but a 404 though. I have validated that the token is valid and has that the Id matches with what is expected (id
property from the authorization response and from the "check an authorization" response as well). Anyone have another thought on something I could be missing?