RAM OSLC REST: Am I authenticated?
![]()
How can I check that I am authenticated while using the OSLC REST Service to RAM?
|
Accepted answer
4 other answers
![]()
Authentication is not done on the (REST) service, but rather on the HTTP protocol. If you users ram.ws, you will be using basic authorization ... in this case, IF authorization is needed by the RAM server, and you are not authorized, then a 401 will be returned .. you will then need to send an Authorization header back.
In the case of form based, when/if authorization is needed by the RAM server, it will route you to a login page. Login information is help as part of your session on the server (pointed to by your session cookie). |
![]()
Basically Gili is saying, there is no way to know from just looking at the headers whether you are authenticated or not. That information is not sent in the response. The session cookie does not mean you are authenticated, it simply means a session (which can be anonymous) has been established with the host.
|
![]()
As Rich noted ... authentication information (who you are) is part of your session. RAM does not require one to authenticate ... as many resources may not need that. Only if you try to access something, and have no permission, RAM will start an authentication protocol (e.g., Form, oAuth ... etc.).
Sheehan mentioned above, that you can force that authentication dance by going to RAMsecure |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.