public async Task GetPermissionsAsyncTest() { var cloudOpts = new CloudFoundryEndpointOptions(); var mgmtOpts = new CloudFoundryManagementOptions(); mgmtOpts.EndpointOptions.Add(cloudOpts); var securityBase = new SecurityBase(cloudOpts, mgmtOpts, null); var result = await securityBase.GetPermissionsAsync("testToken"); Assert.NotNull(result); }
internal async Task <SecurityResult> GetPermissions(HttpContextBase context) { string token = GetAccessToken(context.Request); return(await _base.GetPermissionsAsync(token).ConfigureAwait(false)); }
internal async Task <SecurityResult> GetPermissions(IOwinContext context) { string token = GetAccessToken(context.Request); return(await _base.GetPermissionsAsync(token)); }