コード例 #1
0
        private void AddPersistedGrants()
        {
            _persistentGrantRepository.Insert(new PersistedGrant(_guidGenerator.Create())
            {
                Key       = "PersistedGrantKey1",
                SubjectId = "PersistedGrantSubjectId1",
                ClientId  = "PersistedGrantClientId1",
                Type      = "PersistedGrantType1",
                Data      = ""
            });

            _persistentGrantRepository.Insert(new PersistedGrant(_guidGenerator.Create())
            {
                Key       = "PersistedGrantKey2",
                SubjectId = "PersistedGrantSubjectId2",
                ClientId  = "c1",
                Type      = "c1type",
                Data      = ""
            });

            _persistentGrantRepository.Insert(new PersistedGrant(_guidGenerator.Create())
            {
                Key       = "PersistedGrantKey3",
                SubjectId = "PersistedGrantSubjectId3",
                ClientId  = "c1",
                Type      = "c1type",
                Data      = ""
            });
        }
コード例 #2
0
        private void AddPersistentGrants()
        {
            _persistentGrantRepository.Insert(new PersistedGrant(_guidGenerator.Create())
            {
                Key       = "38",
                ClientId  = "TestClientId-38",
                Type      = "TestType-38",
                SubjectId = "TestSubject",
                Data      = "TestData-38"
            });

            _persistentGrantRepository.Insert(new PersistedGrant(_guidGenerator.Create())
            {
                Key       = "37",
                ClientId  = "TestClientId-37",
                Type      = "TestType-37",
                SubjectId = "TestSubject",
                Data      = "TestData-37"
            });

            _persistentGrantRepository.Insert(new PersistedGrant(_guidGenerator.Create())
            {
                Key       = "36",
                ClientId  = "TestClientId-X",
                Type      = "TestType-36",
                SubjectId = "TestSubject-X",
                Data      = "TestData-36"
            });

            _persistentGrantRepository.Insert(new PersistedGrant(_guidGenerator.Create())
            {
                Key       = "35",
                ClientId  = "TestClientId-X",
                Type      = "TestType-35",
                SubjectId = "TestSubject-X",
                Data      = "TestData-35"
            });
        }