Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to create a crowd client by using restful API?

Yang HuaJie April 18, 2015

How to create a crowd client by using restful API?

 

I am trying to search in document and I am only able to find java examples. Is there PHP examples? Or any examples by using restful API?  I am using PHP applications.

4 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Yang HuaJie April 20, 2015

Hi Diego

 

I am not quite get it. I need you to explain me more details. Where shall I fire the rest request, from PHP application or browser. 

 

Please help me list step by step as I couldn't find it online. And in order for me to SSO with other application, what should I do?

0 votes
Diego Berrueta
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 19, 2015

crowd.properties is only used to configure the Java implementation of Crowd's SSO. If you are integrating a PHP application, you don't need this file.

Instead, you need to directly use the REST API, in particular POST /session/$TOKEN to validate the $TOKEN that your PHP application will receive as a cookie from the browser. Additionally, you may need to POST /session if your application needs to create a new SSO session for requests that do not have a valid token cookie, or to redirect to the Crowd login page to create the session for you.

0 votes
Yang HuaJie April 19, 2015

Hi Diego

 

I do read the link you shared to me. But I am still don't get it. In order for me to implement SSO with my PHP application. What's the minimal requirement? How does crowd SSO works?  

 

I believe the crowd.properties file couldn't work if I just copy/paste in my PHP app.

 

 

Best Regards.

0 votes
Diego Berrueta
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 19, 2015

Hi Yang,

You'll find the documentation of Crowd's REST API at https://developer.atlassian.com/display/CROWDDEV/Crowd+REST+APIs. Check the resources linked from that page to learn more about the Crowd REST resources.

Best regards.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events