cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
491
Views
0
Helpful
2
Replies

New guest user on sponsor portal, REST-API [3.2]

Gioacchino
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

Gioacchino
Level 1
Level 1

Sorry, I found that I have to enable the CSRF here

Gioacchino_0-1711465321262.png

Administration > SystemSettings > API Settings > API Service Settings

View solution in original post

2 Replies 2

Gioacchino
Level 1
Level 1

Sorry, I found that I have to enable the CSRF here

Gioacchino_0-1711465321262.png

Administration > SystemSettings > API Settings > API Service Settings

Gioacchino
Level 1
Level 1

Nothing