Skip to content

Commit db65b19

Browse files
committed
Add information on using DELETE web script to remove OAuth 2.0 user tokens
1 parent 77a02d1 commit db65b19

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ To install the component, copy the two files into your Alfresco installation, an
2626
* Copy `share-oauth/target/share-oauth.jar` into `tomcat/webapps/share/WEB-INF/lib`
2727
* Copy `share-oauth-repo/target/share-oauth-repo.jar` into `tomcat/webapps/alfresco/WEB-INF/lib`
2828

29+
Repository API
30+
--------------
31+
32+
A small set of web scripts are provided in the repository component to allow the connector to get and set OAuth tokens as needed.
33+
34+
It should not normally be necessary to call these APIs directly, but in the event of tokens becoming corrupted or to force a re-authorization from the provider, a `DELETE` script allows them to be removed. This can be invoked using Curl, e.g.
35+
36+
curl http://localhost:8080/alfresco/s/extras/oauth2/token/<token-name> -u admin:admin -X DELETE
37+
2938
Debugging
3039
---------
3140

0 commit comments

Comments
 (0)