예제 #1
0
        private ApiScope CreateApiScope()
        {
            var claim  = new ApiScopeClaim();
            var claims = new List <ApiScopeClaim>()
            {
                claim
            };
            var scope = new ApiScope
            {
                ApiScopeClaims = claims
            };

            claim.ApiScpope = scope;
            return(scope);
        }
예제 #2
0
        protected override ProtectResource Create()
        {
            var scope = new ApiScope
            {
                ApiScopeClaims = new List <ApiScopeClaim>()
            };

            EntityCreated(scope);
            return(new ProtectResource
            {
                Secrets = new List <ApiSecret>(),
                Scopes = new List <ApiScope>()
                {
                    scope
                },
                ApiClaims = new List <ApiClaim>(),
                Properties = new List <ApiProperty>()
            });
        }