loopback-component-oauth2 icon indicating copy to clipboard operation
loopback-component-oauth2 copied to clipboard

Missing the revoke endpoint

Open XinV opened this issue 11 years ago • 4 comments

The OAuth2 spec has revoke endpoint: POST /revoke HTTP/1.1 Host: server.example.com Content-Type: application/x-www-form-urlencoded Authorization: Basic czZCaGRSa3F0MzpnWDFmQmF0M2JW

token=45ghiukldjahdnhzdauz&token_type_hint=refresh_token

Can loopback-component-oauth2 provides this endpoint soon so that we can build the open api platform on top of loopback-component-oauth2 easily? Thanks.

XinV avatar May 14 '15 20:05 XinV

Where do you see the revoke endpoint in the oAuth 2.0 spec - https://tools.ietf.org/html/rfc6749? I couldn't find it.

raymondfeng avatar May 14 '15 20:05 raymondfeng

ah, i saw it here: https://tools.ietf.org/html/rfc7009

XinV avatar May 15 '15 01:05 XinV

I just implemented and released the feature in 2.0.0-rc2.

raymondfeng avatar May 18 '15 06:05 raymondfeng

Very cool. Thanks

XinV avatar May 18 '15 17:05 XinV