コード例 #1
0
 public void ItInitializesASettingsObjectProperly()
 {
     Settings settings = new Settings();
     settings.AssertionConsumerServiceUrl = "https://mysuperapp.com/maestrano/auth/saml/consume";
     settings.IdpCertificate = "somecertificateinfo";
     settings.IdpSsoTargetUrl = "https://maestrano.com/auth/saml";
     settings.Issuer = "my-app";
 }
コード例 #2
0
        public Settings SamlSettings()
        {
            if (settings == null)
            {
                settings = MnoHelper.With(presetName).Sso.SamlSettings();
            }

            return settings;
        }
コード例 #3
0
        /// <summary>
        /// Initialize a Request
        /// </summary>
        /// <returns></returns>
        public Request New(NameValueCollection parameters = null)
        {
            this.parameters = parameters;
            this.settings = null;
            if (presetName == null)
            {
                presetName = "maestrano";
            }

            Id = "_" + Guid.NewGuid().ToString();
            IssueInstant = DateTime.Now.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ");

            return this;
        }