REST call with logged in user (not technical User)
Hallo
is there a way to use REST Calls with credetials of the currently logged in User?
Until now, we use a technical User to communicate between a Java Solution and Contentserver. Now Business want to not use anymore the technical User but the currently logged in User. Bascically: is there a way, to get a Tocken of the logged in user (without knowing the PW)
Thomas
Comments
-
Yes the easiest method one uses is called "Impersonation" your main application will have a defined technical user whose password is known to you. You will initiate a super user connection like your app is doing now but you will then ask for the other user's token. All audits will say Document actions were done by the real user and not the super user. This methods have been existing in CS API for years and is the preferred way for Integrated applications.
If you do not like that the more complicated way is to look the OTDS Authentication .Login with the oauth client of OTDS and then play with the GUI until you can find SSO based credentialling. For SSO to work the user is first vetted by a Directory service of some kind so either it is a DC application (typical AD based intranet) or a oauth application(like okta ,google, facebook etc) .When the user does that the "man in the middle" will issue a token, you will use that token to create a CS Application token within OTDS and call CS API. The theory sounds fine but if you are new to authentication you will find almost no examples etc. but all we do it by a lot of reverse engineering :)
0
Categories
- All Categories
- 122 Developer Announcements
- 53 Articles
- 151 General Questions
- 147 Thrust Services
- 56 OpenText Hackathon
- 37 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Cloud Fax and Notifications
- 84 Digital Asset Management
- 9.4K Documentum
- 31 eDOCS
- 184 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 7 XM Fax
- Follow Categories