By: Pratik Ghadge user 01 Nov 2017 at 2:06 a.m. CDT

2 Responses
Pratik Ghadge gravatar
Hello Team, I've php portal and I like to consume SCIM API with php-CURL. I'm not able to understand how do I create "Authorization header. As value use the encoded credentials ". And call to API. Can anyone provide simple SCIM API integration with PHP code. Previously I used SCIM API with test mode and consumed in php code. But I don't wish to use SCIM test mode. I like to create User by communicating to "/identity/restv1/scim/v2/Users"

By Jose Gonzalez staff 01 Nov 2017 at 9:53 a.m. CDT

Jose Gonzalez gravatar
Hi there, Can you please elaborate more on your need? From your comment > "Authorization header. As value use the encoded credentials " It looks like you are using test mode. But afterwards you have mentioned: > I don't wish to use SCIM test mode So it's a bit puzzling. If you are a starter, I recommend you to use test mode. Test mode in 3.1.x is a lot more safer than in previous version but came at the cost of some programming is needed. Unfortunately, we don't have PHP sample code for this case. The hard part is being able to get the access token, otherwise it's just a matter of ramming the token into the HTTP header of your requests to the SCIM endpoints. Note that you are not passing the token as a request parameter anymore: https://www.gluu.org/docs/ce/user-management/scim2/#differences-between-current-31x-and-older-test-mode If you are stuck getting the token, please double check you created the openId Client in oxTrust as explained in the docs, and follow the [algorithm given](https://www.gluu.org/docs/ce/user-management/scim2/#request-an-access-token-to-the-token-endpoint) - it's very detailed. Kind regards, Jose.

By William Lowe user 07 Nov 2017 at 9:29 a.m. CST

William Lowe gravatar
Pratik, Did Jose's comments resolve your issue? Thanks, Will