jwt token based authentication
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2024 05:15 AM - edited 05-22-2024 05:16 AM
Hi All,
We areintegrating servicenow with Oracle netsuite.
They have provided below postman script and asked us to configure as per servicenow.
We have uploaded the Jks cerificate in servicenow and configured the JWT keys. I am trying with below servicenow script. I am not getting token. But when I validate that in postman the response is coming as "inavalid_token".
var jwtAPI = new sn_auth.GlideJWTAPI();
var headerJSON ={alg: 'PS256', typ: 'JWT',kid: '**********'};
var header = JSON.stringify(headerJSON);
var payloadJSON = { "iss": "client id","scope": ['restlets','rest_webservices'] ,"iat":"3600","exp":"3600","aud": "https://xxxxoracle.com"};
var payload = JSON.stringify(payloadJSON);
var jwtProviderSysId = "3af1c7111b920614570e7550cd4bcb78";
var jwt = jwtAPI.generateJWT(jwtProviderSysId,header, payload);
gs.info("JWT:" + jwt);
Please assist me on this. Am I missing anywhere in configuring header and payload?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2024 07:46 AM
Hi, I'm facing with the same issue, did you success to integrate with JWT to NetSuite ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2024 09:56 AM
Did you ever get this working?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2025 07:54 AM
Is your jwt_keystore_aliases keys table record configured with RSA256 or RSA512 in the Signing Algorithm?