This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ca.gc.ssc.cats; | |
import com.sun.identity.saml2.plugins.DefaultIDPAttributeMapper; | |
import com.sun.identity.saml2.common.SAML2Exception; | |
import java.util.List; | |
/** | |
* This class <code>CATSv2IDPAttributeMapper</code> implements the | |
* <code>IDPAttributeMapper</code> to return the only SAML Attribute | |
* mandated by CATS v2 for insertion in the SAML Assertion. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Remove-Certificates { | |
$usercerts = @() | |
$exchangecerts = @() | |
Write-Host "Connecting to Exchange Online" | |
#used to connect to exchange online, must be customized for each tenant and certificate | |
$ClientId = "" | |
$Organization = "" | |
$CertificateThumbprint = "" | |
Try { |