authorization

asmx web service authorization

怎甘沉沦 提交于 2019-12-08 03:10:19
问题 I have asmx web service(c#). I'm using Windows Authentication to access web service. Now i need to provide some of web service methods only for speciefic user, for example Test. I cant find examples of such Authorization. Some examples of code would be appreciated. 回答1: I don't think that web service have such restriction per memeber. Probably you will need to check the user rights inside of the web service members [WebMethod] public void HelloWorld() { if (this.DoesUserHaveRights(HttpContext

Laravel 5 API authorization for mobile applications which uses Facebook for authorization

ぐ巨炮叔叔 提交于 2019-12-08 02:53:46
问题 I'm working on back-end part for mobile application. The back-end will be a RESTful API. The main question for me - it's authorization/authentication users. We will use the Facebook authorization (Facebook SDK for iOS) on the mobile application side. The main question here is: how to implement authorization on back-end side using only data we can get from Facebook? Maybe someone already got some solutions or can provide some examples for this task? I can imagine this process as: User press

Can I validate HTTP request signature tokens and nonces using Model Binding?

有些话、适合烂在心里 提交于 2019-12-08 02:51:28
问题 I am setting up an end-point using ASP.NET MVC to which requests can be made to manipulate and retrieve data (basically, an API). I am using a 2-legged OAuth model to validate that requests be signed using a secret key and signing method as well as a nonce table to prevent hi-jacking. Since Model Binding is so handy in ASP.NET MVC I am going to take advantage of it to consume requests, but I wonder if I can bake the signature verification and nonce/timestamp handling right into the model

How do web applications typically interact with Amazon S3?

落爺英雄遲暮 提交于 2019-12-08 02:13:44
问题 I'm new to S3 and I'm wondering how real-world web applications typically interact with it, in particular how user access permissions are handled. Say, for instance, that I have designed a basic project management web application which, amongst other features, permits users to upload project files into a shared space which other project members can access. So User file upload/read access would be determined by project membership but also by project roles. Using S3, would one simply create a

How to achieve security level 3 in FIWARE?

ε祈祈猫儿з 提交于 2019-12-08 02:09:56
问题 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'

HasFlag not recognizing role assignment

允我心安 提交于 2019-12-08 01:06:31
问题 I'm using an Enum decorated with [Flags] to control autoization within my MVC2 app. Below is my code examples: [Flags] public enum SecurityRoles { None = 0, Executive = 1, BackOffice = 2, AccountManager = 4, Consultant = 8, Administrator = 16 } [TestMethod] public void MultipleSelectionsTest() { var requiredRoles = SecurityRoles.Executive | SecurityRoles.BackOffice; var user1Roles = SecurityRoles.Executive | SecurityRoles.Administrator | SecurityRoles.BackOffice | SecurityRoles.Consultant;

Authorization/Authentication with Google account in GWT

空扰寡人 提交于 2019-12-07 21:32:37
问题 I'm trying to enable my GWT application authenticate users with their Google accounts. What I basically need is just to have an unique value for every user and be sure that these values will always describe correct users. The main requirement is, the number of lines of code I have to write is as small as possible :-) I'm trying to use gwt-oauth2 library, but it looks like the whole idea of OAuth is to provide a token that allows access to different private resources like mail, contacts, etc.,

Having trouble with authentication in asp.net web application

非 Y 不嫁゛ 提交于 2019-12-07 20:09:07
问题 I am trying to authenticate users who are logging into my web application from a log-in page. I was using this tutorial as a guide, which pretty much explained exactly what I'm hoping to do, but when I enter in the username and password, the validation is not working. Allow me to explain. Here are relevant parts of my HTML. Nothing out of the ordinary: <form id="form1" runat="server"> <div class=row> <div class=col-xs-4> <div class="form-group"> <input id="txtUserName" type="text" runat=

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

走远了吗. 提交于 2019-12-07 19:47:47
问题 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

Protect entire website behind a login i.e. “Authorize” all Actions within all controllers

删除回忆录丶 提交于 2019-12-07 17:07:16
问题 title pretty much says it all. I have a website which will only run behind a login so I want to ensure that nothing can be accessed unless you're logged in. This includes ActionResults, JsonResults etc... Currently, I have [Authorize] all over my controllers which is quite tedious and not very DRY :) So can I protect the entire website with 1 magic line of code? (The login page will obviously need to be accessible) Also, please note that I will still need to further protect some of the