Components
This proposal is about the OAuth2 module of SteemConnect. To be more precise - about the https://steemconnect.com/api/oauth2/token/revoke
endpoint.
Proposal
At the moment, there is no way to revoke refresh token via the https://steemconnect.com/api/oauth2/token/revoke
endpoint.
Currently, this endpoint revokes the access token provided in the Authorization header. I believe it would be really useful for developers to be able to also revoke the refresh token.
Mockups / Examples
My proposal is to change the current behavior of the https://steemconnect.com/api/oauth2/token/revoke
endpoint. Here is how it IMO could work:
The core concept is that not the access_token provided in the Authorization header is being revoked, but token provided in the request's body.
It would enable a developer to implement revoking both refresh token and access token using the same endpoint.
As you can see, the headers section would include:
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
- Authorization: <access_token>
and body:
- token, the access_token or refresh_token to revoke
- token_type_hint, there developer should specify the type of token (access_token or refresh_token) provided in the token field
In my opinion, if token_type_hint was refresh_token, SteemConnect should revoke both access token and refresh token.
If token_type_hint was access_token, SteemConnect should only revoke access token.
For more information check this paper:
Benefits
With revocable refresh token via the /api/oauth2/token/revoke
endpoint, a developer would be able to delete all tokens of the user if one didn't need them anymore. My proposal would enable to use offline
scope more safety.
Posted on Utopian.io - Rewarding Open Source Contributors
Your contribution cannot be approved because it does not follow the Utopian Rules.
Your suggestion has to do with the usage of the platform created by the project owner platform and not to do with a suggestion relating to a technical issue to increase the running of the platform.
You can contact us on Discord.
[utopian-moderator]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I'm not sure if you understood both my contribution and how the SteemConnect works.
SteemConnect is not only an app for (for example) generating hot signing links. It is also an OAuth2 service for developers that allow them to implement authentication flow for their app.
I believe my contribution is related to significant technical aspects of the project - revoking tokens is an essential feature for OAuth2 service.
Revocable refresh token is a minor feature idd.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hey @sunray, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hi @jakipatryk, This contribution has been verified after reevaluation. Thank you.
You can contact us on Discord.
[utopian-moderator]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Nice! Promoted for 0.008SBD! :-]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hey @jakipatryk I am @utopian-io. I have just upvoted you!
Achievements
Suggestions
Get Noticed!
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit