REST API - Authentication resource - Postman - 401 Unauthorized Error
I am trying to use Rest APIs but stuck at the very first step of authentication itself. Even after following - Collibra REST API authentication - Collibra - Developer , I am always getting 401 unauthorized error. I have read some articles pointing to CSRF token but that should come into play post authentication.
Using vlab - https://api-vlab.collibra.com/docs/restv2.
In swagger it is working but not on another client. Only the Application Info resource call is successful. As I’m blocked so any help is appreciated.
I guess I’m missing on something minor as I couldn’t find any similar article.
pawan
Posted 4 years ago · Edited 1 year ago·Last reply 4 years ago
8 comments
georgehulse
·4 years ago · EditedLooking forward to hear about how this was resolved. I have a similar issue with authentication through Postman using Collibra DQ. This appears to be outside of the scope of Collibra’s professional services offering, so any help from the Data Citizens community will be greatly appreciated!
pawan
OP4 years ago · EditedMy issue was related to vlabs, it doesn’t offer any way to do API calls externally. In the 14 days test/trial environment, I didn’t face any issue with the login credentials provided.
Darshan Kaveria
·4 years ago · EditedHi- Try to disable CSRF token in Console configuration and authenticate using http call instead https. The reason behind it can be if you have setup SSL config on environment so that might be blocking it. Another way is to look for SSL cert upload option to bypass it
pawan
OP4 years ago · EditedHi, I’ll try and update you. Thanks.
Alexandra Jorgenson
Admin4 years ago · Edited@pawan I received this response from Support: "For dgc level api requests to work at present you need a (dgc) local user and password. If you try the same with a local user and corresponding password against your own development environment the same should work. The api-vlab.collibra.com doesn’t seem to provide you with that required local user and password to allow api dgc api calls. Have you tried the username and password as provided for the console api?
Console Credentials
https://console-api-vlab.collibra.com/
Username: readonly Password: Read0nly!
(note that is the number zero in the password)
pawan
OP4 years ago · EditedLet me give it a try and report back. Thanks.
pawan
OP4 years ago · EditedHi, Console credentials didn’t work with the “auth/sessions” API call. I don’t have access to verify SSO settings of vlab. And, I don’t know about any other local user therefore as an alternate way to move ahead I have signed up for trial version - test-drive.collibra.com. I’m able to use API’s with it.
Disabling CSRF token is not an option in this environment.
Thanks!
Alexandra Jorgenson
Admin4 years ago · Edited@pawan At this point, I’d recommend you submit a ticket to our Support Portal and reference the URL of this thread when submitting the ticket.