identity

SCIM (System for Cross-domain Identity Management) core supported attributes

别来无恙 提交于 2019-12-11 16:59:22
问题 We are implementing SCIM Resource Provider for Users, Groups and a couple of custom resources. SCIM Core Schema RFC 7643 defines User resource so, that only userName and core attributes ( id , schemas ) are required . Plus it defines optional attributes like name, profileUrl, etc. Some optional attributes do not make sense in our context (e.g. ims ) or are not supported or very expensive to be supported. From the other hand, other optional attributes like name should be "required" and should

SQL Server 2005 identity incrementing by itself

落爺英雄遲暮 提交于 2019-12-11 14:18:45
问题 I have a table with an identity column that have incremented by 1 for all its records then suddenly last week it started incrementing in a weird way. For example: Identity - Date 31891 2010-02-27 09:47:41 39258 2010-02-27 13:13:03 41994 2010-02-27 13:43:56 45119 2010-02-27 14:44:43 45120 2010-02-27 14:51:33 45121 2010-02-27 15:01:12 63943 2010-02-27 19:38:24 63944 2010-02-27 20:14:11 73344 2010-02-27 22:06:35 78298 2010-02-27 22:54:43 124007 2010-02-28 07:02:51 130482 2010-02-28 07:35:34

How to limit user to only one access token in ASP.NET Identity

蹲街弑〆低调 提交于 2019-12-11 14:03:52
问题 I'm Using Token-Based Authentication in my webApi application. for each login OAuth generates an access token for user. if a user tries to do login more than once. it may own some more valid token. is there a limitation on this process. Here is my Startup class: public void Configuration(IAppBuilder app) { HttpConfiguration config = new HttpConfiguration(); ConfigureOAuth(app); WebApiConfig.Register(config); app.UseCors(Microsoft.Owin.Cors.CorsOptions.AllowAll); app.UseWebApi(config); //Rest

Connecting to Amazon Aurora with AWS IAM DB authentication

巧了我就是萌 提交于 2019-12-11 12:58:50
问题 I know that with Amazon Aurora MySQL, we can authenticate to the DB instance or DB cluster using AWS IAM database authentication. I followed the instructions here and It is working as instructed. However, this solution still needs the AWS credentials to be stored on the EC2 instance. I thought the whole purpose of this is to use the IAM roles to manage temporary credentials for applications running on an EC2 instance, so that we do not have to distribute long-term credentials (such as a user

@GeneratedValue(strategy = GenerationType.IDENTITY) does not work with @EmbeddedId

ぃ、小莉子 提交于 2019-12-11 12:45:21
问题 I am new to Hibernate and need some help here. Previously I had only 1 primary key and I used the @GeneratedValue(strategy = GenerationType.IDENTITY) to create a sequence in my database. Now, I have changed to composite primary keys using @EmbeddedId and below my new Employee.java . For some reason, the increment sequencing no longer works. It just stays at 0 for all my new entries. Some clarification of this would be most appreciated. And how can I go about automatically incrementing the

IdentityServer, Claims and Roles

一曲冷凌霜 提交于 2019-12-11 11:32:51
问题 I'm playing with Identity Server v4 (but I thinks is the same with v3) and .NET Core. Right now I've strange issue that I don't understand. From my MVC application I use the [Authorize(Roles="Geek")] to protect my controllers/actions. Looking the current User from the HttpContext all the Roles are available as Claims and not as Roles (in fact User.IsInRole("Geek") return false). Moreover I can't use the Claims with the authorize attribute because all role are stored into the claims collection

Webforms ASP.NET Identity system reset password

风格不统一 提交于 2019-12-11 10:04:01
问题 How can I get the password of a user in the new ASP.NET Identity system using webforms? Or how can I reset without knowing the current one (user forgot password)? 回答1: I tied this way to reset password and send it to the user if (userId != string.Empty) { string _newPass = RandomPass(); if (manager.HasPassword(userId)) { IdentityResult ir1 = manager.RemovePassword(userId); if (ir1.Succeeded) { IdentityResult ir2 = manager.AddPassword(userId, _newPass); if (ir1.Succeeded && ir2.Succeeded) { /

chrome.identity.getProfileUserInfo() returns empty id [duplicate]

杀马特。学长 韩版系。学妹 提交于 2019-12-11 07:32:35
问题 This question already has answers here : Chrome extension identity.email empty (2 answers) Closed 8 months ago . I don't know if this is a development only issue, because I've not published my extension. getProfileUserInfo() returns {email:"",id:""}. It doesn't matter if I'm logged into chrome or not. Here is my permissions from my manifest: "permissions": [ "activeTab", "storage", "identity", //determines authorization status //"notifications", "tabs", "offscreenTabs", "http://*/", "https://

nhibernate alternate id's using generated properties

懵懂的女人 提交于 2019-12-11 07:29:11
问题 ** This question has been edited to make it simpler and more focused ** Employee has an EmployeeNumberValue property which I would like to have auto-incremented by the db. To the business domain, this is a unique id assigned to employees and used to identify them on employee cards, etc. To the database however, it is an alternate id and not the primary key. NHib has a documented ability called Generated Properties. Per the docs, "generated properties are properties which have their values