-
1. Re: How to authenticate a user using rest url in Gatein
haint Dec 10, 2013 1:59 AM (in response to josdel)I guess gatein-portal/web/rest/src/main/webapp/META-INF/context.xml that is you want
-
2. Re: How to authenticate a user using rest url in Gatein
nttuyen266 Dec 10, 2013 3:29 AM (in response to josdel)If you want to check authentication with username/passwrod via REST, following step:
- in file: configuration.properties, set
gatein.sso.callback.enabled=true
- And then you can authentication via
GET http://localhost:8080/portal/rest/sso/authcallback/auth/${username}/${password}
POST http://localhost:8080/portal/rest/sso/authcallback/postauth?username=${username}&password=${password}
Note: if you want to use POST method, please add Content-Type=application/x-www-form-urlencoded in to header of request.
-
3. Re: How to authenticate a user using rest url in Gatein
josdel Dec 11, 2013 7:57 AM (in response to haint)Thanks for the reply @Hai Nguyen
-
4. Re: Re: How to authenticate a user using rest url in Gatein
josdel Dec 10, 2013 4:06 AM (in response to nttuyen266)Thanks for the answer.
-
5. Re: How to authenticate a user using rest url in Gatein
josdel Feb 14, 2014 1:46 AM (in response to nttuyen266)Hi Tuyen,
Would you please give REST API to get user roles in my mobile app?
Thanks in advance
Josny
-
6. Re: How to authenticate a user using rest url in Gatein
mposolda Feb 14, 2014 2:55 AM (in response to josdel)1 of 1 people found this helpfulHi,
for getting roles of user, you can send request via GET method to http://localhost:8080/portal/rest/sso/authcallback/roles/${username} for example http://localhost:8080/portal/rest/sso/authcallback/roles/john
Marek
-
7. Re: How to authenticate a user using rest url in Gatein
josdel Mar 4, 2014 5:11 AM (in response to mposolda)Hi Marek,
Thanks for the answer. The above rest url is helpful to find the Groups of the user. Also I want the REST API to get user memberships.
Thanks
Josny