Supervisor listing all the Agents:
Supervisor adding a new Agent:
Supervisor viewing the Audit Events
Agent logging in:
This is a Flex Plugin that allows the Supervisors of your Contact Center to add/remove Agents by their own without the need of having a SaaS Identity Provider (IdP) of the market to manage your Agents.
Of course, if you already have an IdP - especially the ones we support on our SSO configuration Page - it makes no sense to use this Plugin.
This plugin is meant for those companies who do not have an IdP and want to have Flex running as soon as possible!
Disclaimer: Ask your Developers to validate this Plugin, this is not production-ready code!
This Plugin uses 100% of the Twilio Products and, therefore, makes it easy to have it running quickly!
- It uses Twilio Functions to orchestrate the SSO validation;
- It uses Twilio Sync for storing the Agents;
- It uses Twilio Verify to validate the authenticity of the Agents logging into Flex;
- It uses the new Twilio Paste - which is the base for all future Flex Plugins;
You need to enable Flex UI 2.0, the newest version of Flex!
We have to install 2 assets:
- The Twilio Functions (back-end)
- The Flex Plugin (front-end)
-
clone this repo;
-
execute
cd ./serverless-ssoto go to the Twilio Functions folder. -
npm installto install the packages into your computer. -
rename
.env-examplefrom this folder to.envand follow the instructions in the.envfile. -
you have to generate the public/private pair keys for the SSO. Go to
./serverless-sso/src/assetsfolder and execute the two commands below:openssl genrsa -out privatekey.private.cer 1024 openssl req -new -x509 -key privatekey.private.cer -out publickey.private.cer -days 900 -
You should now have two new files in the
assetsfolder:privatekey.private.cerandpublickey.private.cer. You know the rules, don't send this private key to anyone. -
npm run deployto deploy the functions to your Twilio environment. -
Quick test to see if you have done it correctly until here. Open Chrome and check if you can visit your
https://xxxxxx.twil.io/sso/saml- Change thexxxxxxto your environment that was displayed in your Terminal from step 7 above. You should see an errorERR_REDIRECT_FLOW_BAD_ARGS. For now, this means: Success until here! -
Now go to Flex SSO configuration to configure the SSO you just deployed with Flex. Configure with the values below:
-
X.509 Certificate: Put the content of./src/assets/publickey.private.certhere. -
Single sign-on URL:https://xxxxxx.twil.io/sso/saml -
Will you be hosting your own domain: Leave it unchecked. -
Trusted Domains: (it is disabled) -
Default redirect URL: (it is disabled) -
Login using Popup - On: Leave it unchecked. -
Hit
Savebutton
-
-
Final test: On this same Flex SSO configuration page, there is a link saying
Login with SSO: Open this link in Incognito on your Browser, that is the link your agents will use to login on Flex. If everything goes right, you should see the Login page (like this one) - You can even try to log in, you should receive an error saying "Agent not found" - This is fine for now.
- execute
cd ./flex-plugin-ssoto go to the Plugin folder. npm installto install the packages into your computer.- rename
.env-examplefrom this folder to.envand follow the instructions in the.envfile. - You need to have the Twilio CLI. Type
twilioin your terminal to see if you have it, if not, install it now. - You need the Flex Plugins CLI . Type
twilio pluginsto make sure you have it, if not, install it. - You need to create a new profile for your Twilio CLI, type
twilio profiles:listto check if you are using it correctly. If not, add a new profile with the cmdtwilio profiles:add. npm run deploy -- --changelog "first deployment!"to deploy this Plugin.- Once step 8 is finished, it will show the next steps, you will have to run the command mentioned there (something like
twilio flex:plugins:release ... etc etc) - We are done! Go to https://flex.twilio.com - You should see a new icon on the left-hand side. From there you can add/remove your Agents and ask them to visit the link mentioned on step 10 to log in on Flex.
-
[Feature] multi-BPOs concept: in RealTime Queue Dashboard, add the possibility to filter out only the queues from the BPO... Hiding the queues from others.
-
[Feature] multi-BPOs concept: in the Flex Insights, add the possibility to have reports of their own BPO, using custom embedded dashboards.



