Search Results:
×Step 1: Set up an Identity Source in miniOrange
IDP Name | <Your IDP Display Name> |
IDP Identifier | <Your IDP App Name> |
IdP Entity ID | https://<YOUR_SAML_IDP_DOMAIN> |
SAML SSO Login URL | https://<YOUR_SAML_IDP_DOMAIN> |
X.509 Certificate | Provide the SAML IDP signing certificate |
Override Return URL | Yes |
Return URL | Leave blank |
Step 2: Configure miniOrange as relying party in your SAML IDP
Step 3: Creating an external app in miniOrange
Step 4: Fetching the Customer Key and Customer Token Key
Step 5: Adding the request page
var http = require('http'); var crypto = require('crypto'); var customer_id=<CUSTUMER_ID>; var skey =<CUSTUMER_KEY>; var app_secret=<APP_SECRET>; var return_url = "http://localhost:<port-number-of-your-callback-file>; function encode(text, skey) { var len = text.length; var padSize = 16 - (len % 16); for (var i = 0; i < padSize; i++) { text += String.fromCharCode(padSize); } var cipher = crypto.createCipheriv('aes-128-ecb', skey, ''); cipher.setAutoPadding(false); var encrypted = cipher.update(text, 'utf8', 'base64'); encrypted += cipher.final('base64'); return encrypted; } var timestamp=new Date().getTime(); var input_string =timestamp+":"+app_secret; var cipher_text=encode(input_string, skey); var redirect_url = "https://login.xecurify.in/moas/broker/login/jwt/"+customer_id+"/"+"?token="+encodeURIComponent(cipher_text)+"&returnUrl="+encodeURIComponent(return_url); http.createServer(function (req, res) { res.writeHead(302, {'Location': redirect_url}); res.end(); }).listen(808);
Step 6: Adding the response page
var http = require('http'); var url = require('url'); http.createServer(function (req, res) { if(req.method=='GET') var url_parts =url.parse(req.url,true); var arr = ((url_parts.path).toString()).split("."); var buf = Buffer.from(arr[1], 'base64'); var user_attributes = JSON.parse(buf); if (typeof user_attributes['NameID']) { var expiry = user_attributes['exp']; res.writeHead(200, {'Content-Type': 'text/html'}); if(expiry>new Date().getTime() / 1000){ var username =user_attributes['NameID']; res.end(username); } else { res.end("Response expired. Try login again."); } }}).listen(8080);
miniOrange provides 24/7 support for all the Secure Identity Solutions. We ensure high quality support to meet your satisfaction.
Try Nowminiorange provides most affordable Secure Identity Solutions for all type of use cases and offers different packages based on customer's requirement.
Request A QuoteWe offer Secure Identity Solutions for Single Sign-On, Two Factor Authentication, Adaptive MFA, Provisioning, and much more. Please contact us at -
+1 978 658 9387 (US) , +91 97178 45846 (India) | info@xecurify.com