authorization

MongoDB “root” user

耗尽温柔 提交于 2019-12-02 14:11:45
Is there a super UNIX like "root" user for MongoDB? I've been looking at http://docs.mongodb.org/manual/reference/user-privileges/ and have tried many combinations, but they all seem to lack in an area or another. Surely there is a role that is above all the ones listed there. WiredPrairie While out of the box, MongoDb has no authentication, you can create the equivalent of a root/superuser by using the "any" roles to a specific user to the admin database. Something like this: use admin db.addUser( { user: "<username>", pwd: "<password>", roles: [ "userAdminAnyDatabase", "dbAdminAnyDatabase",

Authentication, Authorization, User and Role Management and general Security in .NET

一世执手 提交于 2019-12-02 14:04:57
I need to know how to go about implementing general security for a C# application. What options do I have in this regard? I would prefer to use an existing framework if it meets my needs - I don't want to re-invent the wheel. My requirements are as follows: the usual username/password authentication managing of users - assign permissions to users managing of roles - assign users to roles, assign permissions to roles authorization of users based on their username and role I am looking for a free / open-source framework/library that has been time-tesed and used by the .Net community. My

SoapHttpClientProtocol.ReadResponse - The request failed with HTTP status 401: Unauthorized

耗尽温柔 提交于 2019-12-02 14:03:28
问题 I have an ASP.NET (v2.0) web application that uses a reference to a SQL Server Reporting Services 208 R2 instance (using the ReportService2010.asmx service endpoint). The web application is hosted on ServerA and the Reporting Services instance is hosted on ServerB. ServerA is running Windows Server 2003 (IIS6) and ServerB is running Windows Server 2008 R2. The web application is configured to use Windows Authentication and impersonation is switched on. When I run the web application locally

Looking for a license key algorithm [closed]

喜欢而已 提交于 2019-12-02 13:58:04
There are a lot of questions relating to license keys asked on Stack Overflow. But they don't answer this question. Can anyone provide a simple license key algorithm that is technology independent and doesn't required a diploma in mathematics to understand? The license key algorithm is similar to public key encryption. I just need something simple that can be implemented in any platform .NET/Java and uses simple data like characters. Answers written as Pseudo code are perfect. So if a person presents a string, a complementary string can be generated that is the authorisation code. Below is a

OAuth v2 communication between authentication and resource server

爱⌒轻易说出口 提交于 2019-12-02 13:54:17
I'm having some troubles understanding how OAUTH-v2 works. The OAuth version 2 spec reads: Accessing Protected Resources The client accesses protected resources by presenting the access token to the resource server. The resource server MUST validate the access token and ensure it has not expired and that its scope covers the requested resource. The methods used by the resource server to validate the access token (as well as any error responses) are beyond the scope of this specification , but generally involve an interaction or coordination between the resource server and the authorization

Authorization approaches and design patterns for Node.js applications [closed]

我的梦境 提交于 2019-12-02 13:50:11
I am building a multiple page admin interface for an internal enterprise software platform. Think lots of glue logic tying together various APIs, db queries, and shell scripts. We will be using node.js, the express framework (including jade templates), and LDAP for authentication. I am struggling to find information regarding design patterns and best practices for authorization in node applications. Preferably, I would like to use the role-based model since my users are familiar with that approach and its care and feeding. I am new to node.js so please don't assume I've already seen a module

.NET HttpWebRequest oAuth 401 Unauthorized

末鹿安然 提交于 2019-12-02 13:29:05
I need to consume a web resource from a VB.NET app. I have successfully retrieved the access token and am ready to use it to make calls to the protected resource. However, everytime I call the protected resource I receive a 401 Unauthorized response because the Authorization field has not been added to the header. Here is my code. WebRequest = DirectCast(Net.WebRequest.Create(ApiUri), HttpWebRequest) WebRequest.Method = "POST" WebRequest.ContentType = "application/json" WebRequest.ContentLength = Bytes.Length Dim RequestStream As IO.Stream = WebRequest.GetRequestStream RequestStream.Write

Uploading to google cloud storage with Node.js

浪子不回头ぞ 提交于 2019-12-02 12:21:43
问题 Struggling with Node.js and Google cloud. I am trying to upload a file to a bucket in Google Cloud Storage. Basically I am using the code in this answer: https://stackoverflow.com/a/45253054/324691, but I can't get it to work. Here is my code: const Storage = require('@google-cloud/storage'); const storage = new Storage(); var form = new formidable.IncomingForm(); // form.maxFieldsSize = 20 * 1024 * 1024; // default form.maxFieldsSize = 20 * 1024; // form.maxFileSize = 200 * 1024 * 1024; // 4

Cannot get authorization dialog to show with Google Apps Script

心不动则不痛 提交于 2019-12-02 11:16:13
问题 I've got a Google Apps Script that I have been working on to manage an event's resources - it's working fine I'm hitting an API and updating the sheet with my Python code. I then added functionality to notify users via email that a video is ready to be approved. I've already seen the authorisation dialog and allowed the script to use my Gmail account etc. But when running my script with the installable trigger added it's showing this: The script doesn't have permission to perform that action.

Using XACML to express policy which is a logical expression

假如想象 提交于 2019-12-02 09:27:03
问题 I am very new to XACML. And I am using XACML to express policy. But I can't find any good examples except a few from the OASIS XACML Technical Committee. Ok, here is my question: I want to express policy using XACML. Users can access to the resources only if they satisfy the policy. The policy is an logical expression. For example: (not A1) and (A2 OR A3) and (2 of (A4, A5,A6)) 2 of (A4,A5,A6) refers that it is true only if 2 or more of A4,A5,A6 is true. "AllOf" and "AnyOf" can be used to