• Curl test with JWT token

    curl -H “Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsIng1dCI6Ikc4LXhPSlZqaXFQczF3dmJVRGxqVVkzOW5GdyIsImtpZCI6Im9yYWtleSJ9.eyJvcmFjbGUub2F1dGgudGtfY29udGV4dCI6InVzZXJfYXNzZXJ0aW9uIiwiZXhwIjoxNDg0Nzc5MTE5LCJzdWIiOiJzYW1kbV9vc2IiLCJpc3MiOiJlbWEuZXVyb3BhLmV1IiwicHJuIjoic2FtZG1fb3NiIiwianRpIjoiNGRmNzY0MjUtYTVkYy00ZTg1LTljZjgtMDU3MDVhNDYyYWFhIiwib3JhY2xlLm9hdXRoLnN2Y19wX24iOiJPQXV0aFNlcnZpY2VQcm9maWxlIiwiaWF0IjoxNDg0NzUwMzE5LCJvcmFjbGUub2F1dGguaWRfZF9pZCI6IjEyMzQ1Njc4LTEyMzQtMTIzNC0xMjM0LTEyMzQ1Njc4OTAxMiIsInVzZXIudGVuYW50Lm5hbWUiOiJEZWZhdWx0RG9tYWluIiwib3JhY2xlLm9hdXRoLnBybi5pZF90eXBlIjoiTERBUF9VSUQifQ.SWs_Rgmpeb1_i-K1vR0L361YmefmWgoLj-l0sSYe4KI-awMxfzSF0l4xcrltnD0xm0T-fm-qXXMn-esWw2mc9OndAlvvAAWQWdzhsL6AXgDMs9VXhAyyd1ald3lzYL2m3lfCbcMii8QCDytSzY4y46v50q_3pvapvmVPQig3Oic” http://host:post/v1/lists

    How to obtain a jwt token,

    if the URL is protected by OAM SSO then, just copy paste the url in browser, enter user/password,

    Get DEV tools up (Hit F12) and check in Request headers

 

oam-curl-1

Or test with SOAP UI,

oam-curl-2