[ ] 👎 Sweep Needs Improvement
I created this PR to fix the failing GitHub Actions.## Description
This PR addresses the failing GitHub Actions issue by making necessary modifications to the tyk_handler.go file in the tap/identity-handlers directory. The issue occurred when a curl request to a specific URL returned a 500 error. Additionally, the GetEmail function needed updates to correctly retrieve the email for Single Sign-On (SSO).
Summary of Changes
Modified the CompleteIdentityAction function in tyk_handler.go to handle the case where the requested URL returns a 500 error. Added error handling code to log the error and return an appropriate response.
Updated the GetEmail function in tyk_handler.go to ensure it correctly retrieves the email to be used for SSO. Added necessary checks and fallbacks to handle cases where the email is not available.
Please review and merge this PR to resolve the failing GitHub Actions issue.
PR Feedback (click)
tyk_handler.go
file in thetap/identity-handlers
directory. The issue occurred when a curl request to a specific URL returned a 500 error. Additionally, theGetEmail
function needed updates to correctly retrieve the email for Single Sign-On (SSO).Summary of Changes
CompleteIdentityAction
function intyk_handler.go
to handle the case where the requested URL returns a 500 error. Added error handling code to log the error and return an appropriate response.GetEmail
function intyk_handler.go
to ensure it correctly retrieves the email to be used for SSO. Added necessary checks and fallbacks to handle cases where the email is not available.Please review and merge this PR to resolve the failing GitHub Actions issue.