Forum Discussion
6 Replies
You can get it using the API
https://lithosphere.lithium.com/restapi/vc/authentication/sessions/login
Here is the related doc
https://lithosphere.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=sessionauth
Sign in to react to this post- kavithams8 years agoGuide
Hi VikasB
Thanks for the reply. Yes I tried using that too.
So when I make a rest call within a component and pass the logged in user's login as the query param, it throws error saying "cannot switch to yourself"
If I don't pass the user.login query param, it says authentication failed
How can I go about this?
Sign in to react to this post You do not need to pass the login details. See here, it works fine in the component.
Sign in to react to this post- kavithams8 years agoGuide
Oh. I'm doing the exact same thing but getting an error. Please see below ( both with "?url" and without too )
Sign in to react to this post If you are using SSO in community, you need to login first and then use the call: http://community_url.com/restapi/vc/authentication/sessions/current/id
If you're not using SSO on the community, you can login using: http://community_url.com/restapi/vc/authentication/sessions/login?user.login=username&user.password=password
Sign in to react to this post- kavithams8 years agoGuide
Okay, so I'm using the first call "/authentication/sessions/current/id" one and I get a token but that is not the same as the session Key looks like.
For example : I got this as the output : 9EC147CAC5F9F2DDA2C21A7F6521D0FB and this is not the same as the session key functionally too.
Kindly advise how to go about ?
Sign in to react to this post