RAM OSLC REST: How to do form based authentication?
I am trying to do a form-based authentication through the REST service on RAM. But not finding the way ahead.
My first target is a GET to http://server:port/oslc/servicesCatalog
This query allows anonymous access, but does not retrun all of the services/communities. Even with a basic authentication, I manage to get "Repository wide Asset Management Services" only.
Please help.
My first target is a GET to http://server:port/oslc/servicesCatalog
This query allows anonymous access, but does not retrun all of the services/communities. Even with a basic authentication, I manage to get "Repository wide Asset Management Services" only.
Please help.
Accepted answer
You need to go against the REST using the web URI, which is typically ram , this path uses form based. But by default it doesn't require a login until you access something that requires authentication.
But may I suggest that you really don't want to use form-based REST! REST is usually simpler when you use basic authentication. Most HTTP clients handle that easily. Form-based is a pain to handle in REST because you have to code the back and forth handshaking until you get authenticated. With basic you don't need to do that.
For basic you would use the path ram.ws/RAMSecure.
If you really truly absolutely positively without a shadow of any doubt :-) prefer to use the complicated form based REST over the tremendously simpler basic, then you will need to first force a login. After that you can then do normal REST calls. To force a form based login go to:
ram/secure/loginProxy.faces
Rich
But may I suggest that you really don't want to use form-based REST! REST is usually simpler when you use basic authentication. Most HTTP clients handle that easily. Form-based is a pain to handle in REST because you have to code the back and forth handshaking until you get authenticated. With basic you don't need to do that.
For basic you would use the path ram.ws/RAMSecure.
If you really truly absolutely positively without a shadow of any doubt :-) prefer to use the complicated form based REST over the tremendously simpler basic, then you will need to first force a login. After that you can then do normal REST calls. To force a form based login go to:
ram/secure/loginProxy.faces
Rich