03-26-2024 07:27 AM - edited 03-26-2024 08:03 AM
I'm following the instructions on this page
https://pubhub.devnetcloud.com/media/identity-services-engine-api-v1/docs/endpoints/configuration/guest-user.html#!/guestuser/get_ers_config_guestuser
It says that to create the user I have to provide the X-CSRF-TOKEN "previously acquired".
How do I get it? I added a header with "X-CSRF-TOKEN: fetch" in a generic requests to get the list of the users, but I did not get anything about X-CSRF-TOKEN.
Also what about the "ERS-Media-Type" ? The page says "Example:- identity.guestuser.2.0".
Shall use "identity.guestuser.2.0"? Or what string?
I'm using PostMan to test the data sent to the ISE.
Also, I'd like to send data in JSON format, I have many users, but I'll create one by one. Preparing the XML file for bulk user creation is too much consuming for the moment.
Thanks,
Gio
Solved! Go to Solution.
03-26-2024 08:02 AM
Sorry, I found that I have to enable the CSRF here
Administration > SystemSettings > API Settings > API Service Settings
03-26-2024 08:02 AM
Sorry, I found that I have to enable the CSRF here
Administration > SystemSettings > API Settings > API Service Settings
03-26-2024 08:07 AM - edited 03-26-2024 02:55 PM
Nothing
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide