From: Nikolaos E. <nik...@gm...> - 2018-02-23 19:53:06
|
Hello everybody, I have 3 questions. First, is it possible to reproduce the registration flow, when a user is logging in using an IdP, using API calls? For example, can I register to B2ACCESS with my ORCID account but using the API and not the web GUI? Second, I tried to make a put request to add an attribute to an entity as is shown in this guide http://www.unity-idm.eu/documentation/unity-2.2.0/ rest-api-v1.html#_set_attribute , but when I pass the data I get the response “No JSON object could be decoded”. I run this command: ``` curl -v -u ‘username’:'password' -H 'Content-Type: application/json' -d '{"values": ["{\"value\":\"so...@em...\",\"tags\":[]}"],"name": "email","groupPath": "/ROOT"}' -X PUT 'https://unity.eudat-aai.fz- juelich.de/rest-admin/v1/entity/{entityid}/attribute?identityType=email' | python -m json.tool ``` So, how should be the format of the json data? And third, what parameters should I pass to https://unity.eudat-aai.fz- juelich.de/oauth2/token endpoint to get an access token after registration? Best regards, Nick |