identity

How can I Identify unique users on my website even IP is changed or browser data has been cleared?

独自空忆成欢 提交于 2019-12-05 07:04:47
I am developing a video streaming website. I want to count unique views on each video. I referred to some sites on internet and even asked some other programmers. They say either use cookies or session or IP address. But these things changes over time. Also if possible can we do this using MAC address of the user's machine? Also I came across a similar question here -> http://bit.ly/Qh1KNR . They say there is something like browser fingerprint that uses MAC address. So can you tell me what method is the best one? You can use Evercookie concept which stores cookie data on different storage

IdentityServer - AD for authentication and the rest in DB

霸气de小男生 提交于 2019-12-05 03:02:46
问题 I have setup a basic IdentityServer that is up and running. I'm using Identity Manager and Identity Admin to keep everything (user, roles, claims, clients, scopes) in a database. Next step is to integrate authentication with AD. My requirements are: User will be authenticated against AD User permissions (claims/roles) will be stored in database (as they are now) Depending on the client application, I have three different scenarios: In some cases, the identity of the current user should be

Label color under the identity inspector in Xcode 4

若如初见. 提交于 2019-12-05 02:59:37
under Identity Inspector as we all know that the label property is used to identify objects easier in interface builder, but what are the colors to the bottom of it used for ? I tried to select a color but nothing changed in interface builder. EDIT: screenshot: If you don't already use color labels to sort your files and folders, then you really should consider it. Using color labels allows you to enhance your file organization by assigning certain colors to certain files. You can assign color labels to files by doing a "Get Info" (highlight the file, then press command + i) on the file/folder

IdentityConfig.cs is missing in my C# web application project

好久不见. 提交于 2019-12-05 02:28:16
问题 I followed the steps from below link so that I could add Email verification to my project: http://www.asp.net/web-forms/overview/security/create-a-secure-aspnet-web-forms-app-with-user-registration,-email-confirmation-and-password-reset#addRes I am wondering where is IdentityConfig.cs and I can't find this file in my project. Instead of IdentityConfig.cs, in which file can I insert my code? 回答1: Oh my god I have the same problem, so I'm going to use my older project for Identityconfig.cs

SecItemAdd creating two identities

瘦欲@ 提交于 2019-12-05 01:46:16
问题 I'm developing an application for IPhone that needs a certificate to call some services, so I'm adding a certificate to my keychain doing this: SecCertificateRef cert = SecCertificateCreateWithData(NULL, (__bridge CFDataRef) certificadoData); NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] init]; [dictionary setObject:(__bridge id)kSecClassCertificate forKey:(__bridge id)kSecClass]; [dictionary setObject:(__bridge id)(cert) forKey:(__bridge id<NSCopying>)(kSecValueRef)];

difference between is_null “== NULL” and “=== NULL” in PHP [duplicate]

假装没事ソ 提交于 2019-12-05 00:55:42
Possible Duplicate: php == vs === operator i have the following code fragment and it doesn't make sense to me why would NULL be evaluated in 3 different ways. Consider the variable $uploaded_filenames_array as UNKNOWN - we don't know whether it's still an array or a NULL. That's what we are trying to check. //----------------------------------------------- if (is_null($uploaded_filenames_array)){ echo "is_null"; } else{ echo "is_NOT_null"; } //----------------------------------------------- if ($uploaded_filenames_array == NULL){ echo "NULL stuff"; } else{ echo "not NULL stuff"; } //----------

SCOPE_IDENTITY is not working in asp.net?

梦想的初衷 提交于 2019-12-05 00:42:24
问题 I am trying to insert a record and get its newly generated id by executing two queries one by one, but don't know why its giving me the following error. Object cannot be cast from DBNull to other types My code is as below: (I don't want to use sql stored procedures) SqlParameter sqlParam; int lastInsertedVideoId = 0; using (SqlConnection Conn = new SqlConnection(ObjUtils._ConnString)) { Conn.Open(); using (SqlCommand sqlCmd = Conn.CreateCommand()) { string sqlInsertValues = "@Name,@Slug";

Working in MVC 5 Identity for email verification

你离开我真会死。 提交于 2019-12-04 22:56:03
private IAuthenticationManager AuthenticationManager { get { return HttpContext.GetOwinContext().Authentication; } } I get the error : 'System.Web.HttpContextBase' does not contain a definition for 'GetOwinContext' and no extension method 'GetOwinContext' accepting a first argument of type 'System.Web.HttpContextBase' could be found (are you missing a using directive or an assembly reference?) What might be wrong? It seems you have missing NuGet package called 'Microsoft.Owin.Host.SystemWeb'. Install package from NuGet or use package manager console to install the package. Install-Package

OutputCache stopping my username from displaying in header

我只是一个虾纸丫 提交于 2019-12-04 19:21:21
On my website I have a header defined in my _Layout.cshtml. In that file, I'm doing this: <li class="dropdown"> @if (Request.IsAuthenticated) { <a href="#" class="dropdown-toggle menuItem" data-toggle="dropdown" style="color: red;">@User.Identity.Name <b class="caret"></b></a> } else { <a href="#" class="dropdown-toggle menuItem" data-toggle="dropdown">Profile <b class="caret"></b></a> } <ul class="dropdown-menu"> @if (!Request.IsAuthenticated) { <li><a href="/Account/Register">Register</a></li> <li><a href="/Account/Login">Login</a></li> <li><a href="/Account/ForgotPassword">Forgot Password<

How to change error message in ASP.NET Identity

心不动则不痛 提交于 2019-12-04 18:07:01
问题 I have one question. I'm trying change error message in Identity ASP .NET and I don't know how do it. I want change error message - "Login is already taken". CreateAsync method return this error message. Please help me. 回答1: The Microsoft.AspNet.Identity.UserManager<TUser> class has a public property called UserValidator of type IIdentityValidator<TUser> . The constructor for UserManager sets that property to an instance of Microsoft.AspNet.Identity.UserValidator<TUser> . The error messages