-
Type: Bug
-
Status: Open
-
Priority: Blocker
-
Resolution: Unresolved
-
Affects Version/s: 2021.0
-
Fix Version/s: None
-
Component/s: OAuth
-
Tags:
Using the oauth api endpoint, it's not possible to delete a token if a user as several tokens registered for the same service.
Only workaround is to delete the token directly in the db.
Possible non-exclusive solutions :
- delete all tokens when using this endpoint
- add a path segment for the serviceLogin to target a specific token
nuxeo_1 | 2021-09-02T03:56:06,516 ERROR [http-nio-0.0.0.0-8080-exec-17] [org.nuxeo.ecm.webengine.app.WebEngineExceptionMapper] org.nuxeo.ecm.core.api.NuxeoException: Found multiple 7 accounts for Administrator nuxeo_1 | org.nuxeo.ecm.core.api.NuxeoException: Found multiple 7 accounts for Administrator nuxeo_1 | at org.nuxeo.ecm.restapi.server.jaxrs.OAuth2Object.getTokenDoc(OAuth2Object.java:512) ~[nuxeo-rest-api-server-2021.7.15.jar:?] nuxeo_1 | at org.nuxeo.ecm.restapi.server.jaxrs.OAuth2Object.deleteProviderToken(OAuth2Object.java:302) ~[nuxeo-rest-api-server-2021.7.15.jar:?] nuxeo_1 | at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] nuxeo_1 | at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] nuxeo_1 | at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] nuxeo_1 | at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]