Login via third-party account
When you want to allow an applicant to login via a thirdparty account like xing, use the /thirdparties/login endpoint.
Request with tokens
By sending the following GET-request, you can retrieve a list of thirdparty providers a user may login with:
1 2 |
curl -i -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X GET "https://api.softgarden.io/api/rest/v2/frontend/thirdparties/login" |
with TOKEN eihter being a client access token or a user access token. It is used to determine the validity of this request.
Request with basic authorization
As an alternative, you can use here the basic authorization method. Just write
1 2 |
curl -i -u "{clientId}:" -H "Content-Type: application/json" -X GET "https://api.softgarden.io/api/rest/v2/frontend/thirdparties/login" |
{clientId} is the ID for your application to develop given to you by softgarden. The colon seen in the example is obligatory.
Path parameters
– none –
Query parameters
– none –
Response values
Upon | Returned value | Description |
---|---|---|
success | JSON-encoded List<ThirdpartyService> | For more information see the according page. |
failure | 500 – INTERNAL SERVER ERROR | When an error appears while processing your request. |
authorization error | 401 / 403 | See here for details. |
Example return value
1 2 3 4 5 6 7 8 9 10 |
[ { "id" : "XING", "logoUrl" : "//static.softgarden.de/images/social/xing_button.png", "shareButtonHeight" : 55, "shareButtonWidth" : 20, "popupHeight" : 640, "popupWidth": 640 } ] |