Exemple #1
0
        public static EntityDescriptor GetSpEntityDescriptor(string entityId)
        {
            var descriptor = new EntityDescriptor(new EntityId(entityId));
            var cert       = EntityDescriptorProviderMock.GetMockCertificate();
            var idpRole    = new ServiceProviderSingleSignOnDescriptor();

            idpRole.AssertionConsumerServices.Add(0, new IndexedProtocolEndpoint(0, new Uri(ProtocolBindings.HttpRedirect), new Uri("http://localhost:60879")));
            descriptor.RoleDescriptors.Add(idpRole);
            return(descriptor);
        }
Exemple #2
0
        public static EntityDescriptor GetEntityDescriptor()
        {
            var descriptor = new EntityDescriptor();
            var cert       = EntityDescriptorProviderMock.GetMockCertificate();
            var idpRole    = new IdentityProviderSingleSignOnDescriptor();

            idpRole.SingleSignOnServices.Add(new ProtocolEndpoint(new Uri(ProtocolBindings.HttpRedirect), new Uri("http://localhost:60879")));
            descriptor.RoleDescriptors.Add(idpRole);
            return(descriptor);
        }
Exemple #3
0
        public static EntityDescriptor GetIdpEntityDescriptor(string entityId)
        {
            var descriptor = new EntityDescriptor(new EntityId(entityId));
            var cert       = EntityDescriptorProviderMock.GetMockCertificate();
            var idpRole    = new IdentityProviderSingleSignOnDescriptor();

            idpRole.ProtocolsSupported.Add(new Uri("urn:oasis:names:tc:SAML:2.0:protocol"));
            idpRole.SingleSignOnServices.Add(new ProtocolEndpoint(new Uri(ProtocolBindings.HttpRedirect), new Uri("http://localhost:60879")));
            descriptor.RoleDescriptors.Add(idpRole);
            return(descriptor);
        }