public WspAuthorizationPolicy() { _id = Guid.NewGuid().ToString(); _issuerClaimSet = CreateIssuer(); _trustFabric = OpenTrustFabric(); }
public CustomSecurityTokenService(SecurityTokenServiceConfiguration configuration) : base(configuration) { _trustFabric = OpenTrustFabric(); // Setup certificate the STS is going to use to sign the issued tokens configuration.SigningCredentials = new X509SigningCredentials(CertificateUtil.GetCertificate(StoreName.My, StoreLocation.LocalMachine, SigningCertificateName)); //configuration.SigningCredentials = new X509SigningCredentials(CertificateUtil.GetCertificate(StoreName.My, StoreLocation.LocalMachine, SigningCertificateName), // "http://www.w3.org/2000/09/xmldsig#rsa-sha1", // "http://www.w3.org/2000/09/xmldsig#sha1"); }
public CustomSaml2SecurityTokenHandler(XmlNodeList nodes) : base(nodes) { _trustFabric = OpenTrustFabric(); }
public CustomSaml2SecurityTokenHandler(SamlSecurityTokenRequirement tokenRequirement) : base(tokenRequirement) { _trustFabric = OpenTrustFabric(); }
public CustomSaml2SecurityTokenHandler() : base() { _trustFabric = OpenTrustFabric(); }
private void ctfPath_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { string url = ctfPath.Text; try { HttpWebRequest httpRequest = (HttpWebRequest)WebRequest.Create(url); httpRequest.UserAgent = @"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"; using (HttpWebResponse httpResponse = (HttpWebResponse)httpRequest.GetResponse()) { XmlDocument xmlDocument = new XmlDocument(); xmlDocument.PreserveWhitespace = true; xmlDocument.Load(httpResponse.GetResponseStream()); GfipmCryptoTrustFabric.GfipmCryptoTrustFabric tf = new GfipmCryptoTrustFabric.GfipmCryptoTrustFabric(); _entitiesDescriptor = tf.LoadFromXml(xmlDocument.OuterXml); Reload(); } } catch (Exception ex) { string msg = string.Format("Error: {0}. {1}", ex.Message, (ex.InnerException != null) ? ex.InnerException.Message : ""); System.Windows.Forms.MessageBox.Show(msg, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } }
private void browseButton_Click(object sender, EventArgs e) { if (this.CryptographicTrustFabricFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.ctfPath.Text = CryptographicTrustFabricFileDialog.FileName; GfipmCryptoTrustFabric.GfipmCryptoTrustFabric tf = new GfipmCryptoTrustFabric.GfipmCryptoTrustFabric(); try { _entitiesDescriptor = tf.OpenCtfFileAndValidateSignature(this.ctfPath.Text); Reload(); } catch (Exception ex) { string msg = string.Format("Error: {0}. {1}", ex.Message, (ex.InnerException != null) ? ex.InnerException.Message : ""); System.Windows.Forms.MessageBox.Show(msg, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } }
private void Init() { _trustFabric = OpenTrustFabric(); }
public WspClaimsTransformer() : base() { _trustFabric = OpenTrustFabric(); }