aws-samples / aws-serverless-connect-wallboard

Sample code for building a serverless wallboard for Amazon Connect.
MIT No Attribution
29 stars 16 forks source link

SAML Authenication Not Working #12

Closed bmurrell-cbre closed 1 year ago

bmurrell-cbre commented 1 year ago

Hello,

I was able to deploy the agent status wallboard without any issues using CONNECT_MANAGED however whenever I try to use this wallboard with an instance that uses SAML authentication it doesn't populate agent status for our users. Does this wallboard work with SAML instances?

Brettles commented 1 year ago

While I haven't tried it with a SAML-authenticated connect instance I don't think that should affect how the wallboard works. The components of interest are the Lambda functions and they are authorised using IAM roles. So as long as the Lambda functions have permissions to read/write the DynamoDB table; to receive data from the Kinesis Data Stream (for agent status updates); and to query the Connect APIs - then it should all work as normal.

AFAIK SAML authentication is for agents/supervisors/managers, not for the programmatic access to the Connect APIs that are used to gather statistics (historical and real-time metrics).

My only thought is: If you enable debugging in the process-agent-event.py Lambda function you should see agent events arriving. If not, then there's an issue - either the Lambda function isn't subscribed to the Kinesis stream or agent events aren't being delivered to the stream.