Documentation

TestResultActions
in package

This action class shows the attributes coming in the SAML response in a tabular form indicating if the Test SSO connection was successful. Is used as a reference to do attribute mapping.

Tags
todo
  • Move the html code to template files and pick it from there

Table of Contents

$attrs  : mixed
$certError  : mixed
$commonBody  : mixed
$errorHeader  : mixed
$exceptionBody  : mixed
$footer  : mixed
$hasExceptionOccurred  : mixed
$nameId  : mixed
$samlException  : mixed
$samlResponse  : mixed
$successHeader  : mixed
$tableContent  : mixed
$template  : mixed
__construct()  : mixed
execute()  : mixed
Execute function to execute the classes function.
getTableContent()  : mixed
Append Attributes in the SAML response to the table content to be shown to the user.
processCertErrors()  : mixed
Add cert error and certificates for echoing on screen.
processExceptionTemplate()  : mixed
Add exception Content to our template variable for echoing on screen.
processTemplateContent()  : mixed
Add Content to our template variable for echoing on screen.
processTemplateFooter()  : mixed
Add footer to our template variable for echoing on screen.
processTemplateHeader()  : mixed
Add header to our template variable for echoing on screen.

Properties

$certError

private mixed $certError = '<p style="font-weight:bold;font-size:14pt;margin-left:1%%;">CERT CONFIGURED IN PLUGIN:</p><div style="color: #373B41; font-family: Menlo,Monaco,Consolas,monospace;direction: ltr;text-align: left;white-space: pre; word-spacing: normal;word-break: normal;font-size: 13px;font-style: normal;font-weight: 400; height: auto;line-height: 19.5px;border: 1px solid #ddd;background: #fafafa;padding: 1em; margin: .5em 0;border-radius: 4px;">{{certinplugin}}</div> <p style="font-weight:bold;font-size:14pt;margin-left:1%%;">CERT FOUND IN RESPONSE:</p><div style="color: #373B41; font-family: Menlo,Monaco,Consolas,monospace;direction: ltr;text-align: left;white-space: pre; word-spacing: normal;word-break: normal;font-size: 13px;font-style: normal;font-weight: 400; height: auto;line-height: 19.5px;border: 1px solid #ddd;background: #fafafa;padding: 1em; margin: .5em 0;border-radius: 4px;">{{certfromresponse}}</div>'

$commonBody

private mixed $commonBody = '<span style="font-size:14pt;"><b>Hello</b>, {{email}}</span><br/> <p style="font-weight:bold;font-size:14pt;margin-left:1%%;">ATTRIBUTES RECEIVED:</p> <table style="border-collapse:collapse;border-spacing:0; display:table;width:100%%; font-size:14pt;background-color:#EDEDED;"> <tr style="text-align:center;"> <td style="font-weight:bold;border:2px solid #949090;padding:2%%;">ATTRIBUTE NAME</td> <td style="font-weight:bold;padding:2%%;border:2px solid #949090; word-wrap:break-word;">ATTRIBUTE VALUE</td> </tr>{{tablecontent}} </table>'

$errorHeader

private mixed $errorHeader = ' <div style="color: #a94442;background-color: #f2dede;padding: 15px;margin-bottom: 20px;text-align:center; border:1px solid #E6B3B2;font-size:18pt;">TEST FAILED </div><div style="display:block;text-align:center;margin-bottom:4%%;"><img style="width:15%%;"src="{{wrong}}"></div>'

$exceptionBody

private mixed $exceptionBody = '<div style="margin: 10px 0;padding: 12px;color: #D8000C;background-color: #FFBABA;font-size: 16px; line-height: 1.618;overflow-wrap:break-word;">{{exceptionmessage}}</div>{{certErrorDiv}}{{samlResponseDiv}}'
private mixed $footer = ' <div style="margin:3%%;display:block;text-align:center;"> <input style="padding:1%%;width:100px;background: #0091CD none repeat scroll 0%% 0%%;cursor: pointer; font-size:15px;border-width: 1px;border-style: solid;border-radius: 3px;white-space: nowrap; box-sizing: border-box;border-color: #0073AA;box-shadow: 0px 1px 0px rgba(120, 200, 230, 0.6) inset; color: #FFF;"type="button" value="Done" onClick="self.close();"></div>'

$samlResponse

private mixed $samlResponse = '<p style="font-weight:bold;font-size:14pt;margin-left:1%%;">SAML RESPONSE FROM IDP:</p><div style="color: #373B41; font-family: Menlo,Monaco,Consolas,monospace;direction: ltr;text-align: left;white-space: pre; word-spacing: normal;word-break: normal;font-size: 13px;font-style: normal;font-weight: 400; height: auto;line-height: 19.5px;border: 1px solid #ddd;background: #fafafa;padding: 1em; margin: .5em 0;border-radius: 4px;overflow:scroll">{{samlresponse}}</div>'

$successHeader

private mixed $successHeader = ' <div style="color: #3c763d;background-color: #dff0d8; padding:2%%;margin-bottom:20px;text-align:center; border:1px solid #AEDB9A; font-size:18pt;">TEST SUCCESSFUL </div> <div style="display:block;text-align:center;margin-bottom:4%%;"><img style="width:15%%;" src="{{right}}"></div>'

$tableContent

private mixed $tableContent = "<tr><td style='font-weight:bold;border:2px solid #949090;padding:2%%;'>{{key}}</td><td style='padding:2%%; border:2px solid #949090; word-wrap:break-word;'>{{value}}</td></tr>"

$template

private mixed $template = '<div style="font-family:Calibri;padding:0 3%%;">{{header}}{{commonbody}}{{footer}}</div>'

Methods

execute()

Execute function to execute the classes function.

public execute() : mixed
Return values
mixed

getTableContent()

Append Attributes in the SAML response to the table content to be shown to the user.

private getTableContent() : mixed
Return values
mixed

processCertErrors()

Add cert error and certificates for echoing on screen.

private processCertErrors() : mixed
Return values
mixed

processExceptionTemplate()

Add exception Content to our template variable for echoing on screen.

private processExceptionTemplate() : mixed
Return values
mixed

processTemplateContent()

Add Content to our template variable for echoing on screen.

private processTemplateContent() : mixed
Return values
mixed

processTemplateFooter()

Add footer to our template variable for echoing on screen.

private processTemplateFooter() : mixed
Return values
mixed

processTemplateHeader()

Add header to our template variable for echoing on screen.

private processTemplateHeader() : mixed
Return values
mixed

Search results