authorization

WCF Authorization - access to operations via claims

这一生的挚爱 提交于 2019-12-06 11:20:01
问题 I am trying to implement authorization for a WCF service but I have run into some significant difficulties. I think I need to use a hybrid solution combining custom authentication and claims, but I am not sure if this is correct. My application uses Windows authentication to connect to the application. Once the user has been authorized, access to functions needs to be granted based on permission information stored in the database. Users can be assigned permissions via the application

How to achieve security level 3 in FIWARE?

可紊 提交于 2019-12-06 11:14:09
I am deploying FIWARE security GEs (i.e., Wilma, AuthzForce, Keyrock) in my computer. Security level 2 (Basic Authorization) is working well, but now I need security level 3 (Advanced Authorization) using XACML. Long story short, I want a tutorial of implementation security level 3. However, as far as I know, any tutorial or document about security level 3 does not exist. For now, I create my policy with PAP's API, and change 'custom_policy' option in config.js from 'undefined' to 'policy.js'. And then I create 'policy.js' file into 'PEP/policies', but don't change anything compared with its

Vimeo API AuthorizationUrl Without Login

≡放荡痞女 提交于 2019-12-06 10:02:52
问题 I'm using Vimeo API to get video on a web application context and i have a simple question (i hope :P ) It´s possible to do a request for application authorization using oAuth protocol and via the following link: https://vimeo.com/oauth/authorize?oauth_token=XXXX, WITHOUT force the user to login in browser? I noticed that if I'm not logged on Vimeo, when I go to https://vimeo.com/oauth/authorize?oauth_token=XXXX, Vimeo redirects me to the login page... Thanks. 回答1: I found it =) You can

How to associate list of objects with user(Account) in ASP .NET MVC

那年仲夏 提交于 2019-12-06 09:42:22
I would like to store a List of objects for every User of my application. I would like to add a List of Meeting objects for every user. Of course I would like to make this work with Entity Framework public class Meeting{ int Id {get;set;} Person Person {get;set;}//Meeting with person DateTime DateTime{get;set;} } Question: Should I add this to tha AccountModels.cs ? Where should I add it inside this file? Should it be just and Id of meeting or not? Or maybe I need association class between them? I post contents of the AccountModels.cs file below. using System; using System.Collections.Generic;

integrating nodejs rest services with wso2

萝らか妹 提交于 2019-12-06 09:12:11
have my rest webservices written in nodejs. I want to implement role based[admin,user,super admin etc] authorisation for these API's How can use wso2 with NodeJS ? You can use WSO2 API Manager for this. Here is a nice article on how to do that. And here is official documentation. EDIT: You can read the complete product documentation here . And, there is an API Manager Cloud offering too. 来源: https://stackoverflow.com/questions/41164896/integrating-nodejs-rest-services-with-wso2

Custom Role Provider with ActiveDirectory Authentication

情到浓时终转凉″ 提交于 2019-12-06 09:04:50
I'm creating a custom Role provider based on the ASP.NET Role provider. I have 3 tables. One for Users, one for Roles, one for UsersInRoles.The Users table has no password column because the users are authenticated with ActiveDirectory. That's my approach so far. I can't get the cusstom Role Provider to work, anyone has the same situation like me. How do you make a custom Role provider works with AD? What I did: create a class which inherits from System.Web.Security.RoleProvider , and choose "Implement abstract class" from the context menu when clicking on : Roleprovider . I only implemented

Permissions design pattern that allows date-based access

て烟熏妆下的殇ゞ 提交于 2019-12-06 09:02:51
I am looking at ways to implement an authorization (not authentication) scheme in my app. There are currently two roles in the system: A and B, but there may be more. User's only have one role. Basically, the I have it set up now is with two database tables. One is for role-based permissions on a model, and the other is for specific user-based permissions. I am thinking that this way, users can have a set of default permissions based on their role-based permissions, but then they can also have specific permissions granted/revoked. So for example: table: user_permissions columns: user_id: [int]

ASP.NET -> WCF Service requires Windows authentication

别等时光非礼了梦想. 提交于 2019-12-06 08:35:36
I've been tasked with building a basic admin app. The app needs an ASP.NET front end which talks to a number of back end services using WCF. One requirement is that the users of the app are authenticated using Windows authentication. I can do this no problem if the app logic were contained in the ASP.NET app, but I have no idea how to perform authentication within the back end WCF services? Is it possible to pass credentials through to a WCF service and have it perform the authentication? It depends... (Note most of this is based on HTTP/IIS as the transport, could be different if using TCP or

How can I limit asp.net control actions based on user role?

本秂侑毒 提交于 2019-12-06 08:33:46
问题 I have several pages or views in my application which are essentially the same for both authenticated users and anonymous users. I'd like to limit the insert/update/delete actions in formviews and gridviews to authenticated users only, and allow read access for both authed and anon users. I'm using the asp.net configuration system for handling authentication and roles. This system limits access based on path so I've been creating duplicate pages for authed and anon paths. The solution that

Authentication and Authorization with ServiceStack.MVC

寵の児 提交于 2019-12-06 08:15:44
AuthorizeAttribute is useless while using ServiceStack.Mvc AuthenticateAttribute is for DTO objects. There is no sample for AccountController with ServiceStack, Signout is not working in SocialBootStrapApi. Where is the basic Login,Logout,Authorize with Roles samples with ServiceStack.Mvc? (Not single page application, classic Asp.Net Mvc) ServiceStack doesn't use the ASP.NET's or MVC's Authentication or anything that relies on it e.g. MVC's AccountController, it uses its own Authentication Provider . AuthenticateAttribute and any other ServiceStack Request or Response Filter attributes can in