Forms Authentication is a built-in and extensible system for authenticating users in an ASP.Net application that also maintains that authenticated session via a ticket (often stored as a cookie or query string parameter).
11
votes
0answers
2k views
Migrating existing users from MVC 4 SimpleMembership to MVC 5 ASP.NET Identity
I have an MVC 4 site that currently implements SimpleMembership. In the next iteration of the site I would like to upgrade to MVC 5 and ASP.NET Identity. Both sites have the same machine key in ...
4
votes
0answers
442 views
Passing SessionSecurityToken between client and wcf services
I have a problem with communication between client and wcf service application using federatedauthentication.
On my client application (ASP.NET MVC with Forms authentication) I pass the user data ...
4
votes
0answers
878 views
Mixed Mode Federated authentication and Forms Authentication
I am trying to make a mixed mode authentication to be able to put some users on Federated authentications and others on Forms authentication.
I am working with WIF, I set up my STS and everything is ...
4
votes
0answers
1k views
Prompted for credentials when using a shared data source with Report Builder 2.0 over the Internet with forms authentication
SQL Server 2008 (not R2). I am trying to allow users to build and deploy SSRS reports on a reporting server that the users can only access over the Internet. I have created a custom forms ...
3
votes
0answers
444 views
MVC4 Forms Authentication Custom Identity Cast not working
I have implemented openAuth forms authentication in mvc almost same as on this page http://www.strathweb.com/2012/08/adding-openid-authentication-to-your-asp-net-mvc-4-application/
However I am ...
3
votes
0answers
317 views
.NET FormsAuthentication issue with load balanced servers running IIS 7 and using cookies
I have a pair of load balanced web servers running a .NET 3.5 / MVC 2 application. We are using Forms Authentication with cookies.
When a user is kicked off to the second server, ...
2
votes
0answers
82 views
MVC 5 Authentication
I have a Web API 2 with bearer token authentication, where an external site authenticates in my api and makes requests by sending the token in the request header, but I also have a MVC 5 Web Site, ...
2
votes
0answers
90 views
get user windows with Forms authentication ASP.NET MVC
I'm implementing a ASP.NET MVC Project with Form authentication. This project is deployment and run OK, but now I need get the current windows user but I don't get it. I try this:
...
2
votes
0answers
25 views
Enable Forms authentication on Virtual directory in IIS 6.0
I have an ASP.NET application in IIS 6.0 with the following structure.
MyApplication is setup to run with Forms Authentication. I have a virtual directory called MyFiles that points to a shared ...
2
votes
0answers
85 views
Why did Membership.GetUser().Email return the wrong value?
I have an MVC web application where a form is posted by ajax to a controller method that starts out like this:
[HandleError]
[AcceptVerbs(HttpVerbs.Post)]
[Authorize]
public JsonResult ...
2
votes
0answers
206 views
ASP.NET Cookies duplicated for subdomain
I have two asp.net sites. one is like domain.com and the second is sub.domain.com. The domain.com sets aspxauth cookies on login and removes it (via expiration date in the past) on logout. The cookie ...
2
votes
0answers
66 views
Authenticate a user on two ASP.NET sites using forms authentication and basic authentication with single sign on?
Context:
I have an ASP.NET WebForms Website (not a Web Application) that I'm reimplementing in a new ASP.NET MVC Web Application with a new CMS. These sites will have the same second-level domain, ...
2
votes
0answers
140 views
Single authentication pipeline for webapi, mvc and signalr supporting basic and forms
My current services are using MVC to render forms, WebApi to move my viewModels back and forth and signalR for push notifications etc.
If the users are browsing the website they will be using forms ...
2
votes
0answers
454 views
MVC 4 Persistent Cookie is not created, it redirects me to login page.(When FormsAuthentication.SetAuthCookie(UserName, persistentCookie: TRUE)
Action in the controller
[HttpPost]
public ActionResult Login(Models.User user, string returnUrl)
{
if (ModelState.IsValid)
{
if (user.IsValid(user.UserName, ...
2
votes
0answers
300 views
MVC - Forms Authentication - 401.2
I am trying to setup FormsAuth for my MVC app. When I browse to the login action (which has the AllowAnonymous attribute, I get a 401.2 error. My web.config has:
<authentication mode="Forms">
...
2
votes
0answers
116 views
How do I set the Cache-Control header on ASP.NET Forms Authentication redirect?
I have an ASP.NET application that uses standard forms authentication. Imagine the following scenario
User (NOT authenticated) requests http://myapp.com/Foo (which requires user to be ...
2
votes
0answers
268 views
Form Based Authentication giving Forbidden 403
Hey im making an application where the username and password have to be stored in the glassfish server and then when i run the application the user has to enter already stored user name and password ...
2
votes
0answers
621 views
Implement LDAP in ASP.net (C#) MVC4
I originally got this working on a ASP.net application (non MVC) but now that I have to change over to MVC I do not know how to adapt my old code. For reference, I am using the stock website you get ...
2
votes
0answers
566 views
'Bad credentials' error with a custom authentication provider in Symfony 2
I'm working on a web application with Symfony 2. More specifically, I'm trying to make a Custom Authentication Provider thanks to the instructions of the Symfony Cookbook.
I have to make custom ...
2
votes
0answers
222 views
How can I configure site Authorization for an MVC site with Web Forms components?
I have an MVC site where I need to use the ReportViewer control to integrate with SSRS. This means I need to have a Web Forms page within the site specifically for dealing with reports. Thankfully ...
2
votes
0answers
541 views
Issue with Spaces in UserContainer LDAP string for Forms Based Authentication in SharePoint 2013
Steps:
Web Application was created with Claims Authentication using Windows NTLM Authentication
FBA (Forms Based Authentication) was enabled post app creation
Was able to set up Forms ...
2
votes
0answers
182 views
Communication Active Directory users with asp.net
I installed VM player in my machine and installed windows 2008 standard core inside. Also via command prompt added users and groups for a particular user as below,
creating user
dsadd user ...
2
votes
0answers
964 views
How to share ASP.NET Authorization cookies between DotNetNuke 7 and non DotNetNuke 7 sites?
We are building a ASP.NET MVC 4 website that will display information specific to the DotNetNuke logged in user. In order to accomplish this we are setting up the machine keys in the web.config to be ...
2
votes
0answers
664 views
ASPXAUTH cookie getting lost on jquery Ajax Call
For some reason, after 2 or 3 calls, my cookie is no longer getting passed. Usually, after 3 requests, my cookie disappears from the request. I have no idea why. I am not making any cross domain ...
2
votes
0answers
302 views
Using RestSharp (or any JSON Post) to Asp.Net Membership JsonResult return (MVC)
From a browser, I can call an MVC controller like ../Account/Login with post parameters username and password and the browser plants a cookie such that on subsequent calls I do not need to pass in ...
2
votes
0answers
300 views
sharepoint mysite authentication
I have created mysite and two other sites as 3 different web applications in my sharepoint server like
http://site1.sp.com:45 - site 1
http://site2.sp.com:45 - site 2
http://mysite.sp.com:45 - ...
2
votes
0answers
181 views
Chrome:cookie removed when user leaves page
I have an ASP.NET MVC1 site where the user is logged in. He is logged in because he has a cookie ".ASPXAUTH" with a token value in it.
For payments the Users gets redirected to a payment provider. He ...
2
votes
0answers
352 views
make asp.net formsauth cookie smaller with base64 encoding
I am utilizing built in FormsAuthentication with an asp.net web app right now and I am adding a bit of additional information in the cookie and it is resulting in a "reasonably" large cookie size of ...
2
votes
0answers
369 views
Forms authentication “Remember me” does not remembering me
I'm doing this:
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1, model.UserName,
DateTime.Now, ...
2
votes
0answers
158 views
How and where to update RolePrincipal?
I'm using asp.net FormAuthentication and a custom role manager. I would like to add a custom Identity to the User object so I can store some custom user data in the User object and still have all the ...
2
votes
0answers
372 views
webrequest forms-authentication
What I want to do is log into a website and extract data from it. I know the means to this is through a webrequest and forms-authentication but everything I've found code wise seems to be in small ...
2
votes
0answers
525 views
Share WCF RIA Services between ASP.NET MVC and Silverlight clients
I want to use WCF RIA Services as the middle tier for multiple clients including Silverlight and ASP.NET MVC.
I created a solution with Domain classes in a separate assembly using WCF RIA Services ...
2
votes
0answers
413 views
Will the ActiveDirectoryMembershipProvider traverse a one-way domain trust (in SharePoint)?
We are implementing SharePoint in an environment with multiple separate domain forests that will be used to authenticate users using claims based authentication. The various domains have a one-way ...
2
votes
0answers
1k views
Authenticating with Jetty through GWT button
I'm trying to create a login page using SmartGWT and have been trying to get Form Authentication to work with the Jetty server embedded with the GWT plug-in for Eclipse. I have a page that takes a ...
2
votes
0answers
648 views
Is it possible to validate an ASP.NET Forms Authentication ticket in ISA/UAG (or similar) and do redirects based on the result?
We have an ASP.NET MVC application that uses Forms Authentication to create and validate the authentication ticket (cookie). The log on flow is very special, not just username/password, but it ends ...
2
votes
0answers
606 views
Forms Authentication overrides impersonation in IIS7
I have been searching all over the place for a solution to this.
I have an ASP.NET app which ran fine on IIS6. On IIS 7.5 (Integrated pipeline) I am running into some problems. <identity ...
2
votes
0answers
939 views
Logout Issues with WPF and Client Application Services
I have recently been prototyping an application using WPF and Client Application Services. I am trying to use all three features of the Client Application Services : Forms Authenticiation, Role ...
2
votes
0answers
771 views
ASP.NET MVC2 Authentication form with localization
I have two level authentification, first the user enters their nt/password and it is validated by LDAP and afterward I have a custom role provider that make sure the user has access to said page.
...
2
votes
0answers
302 views
Sharing login credentials on localhost with 2 web applications on IIS7, possible?
I have 2 asp.net web applications running in IIS7:
http://app1.local/
and
http://app2.local/
My host.ini file just maps the above urls to localhost:
::1 app1.local
::1 app2.local
I added the ...
2
votes
0answers
1k views
ActiveDirectoryMembershipProvider - Can't use secure connection protection
I try to use ASP.Net's MembershipProvider to give access only to certain users. This is backed up by an ADAM instance.
I use some test-code which runs just fine:
public static DataTable ...
1
vote
0answers
20 views
MVC - Update details with UserID in HiddenFor - is this secure?
I have a website whereby a user can log in and then update their details.
The forms fields are title, name, address etc. and I have a HiddenFor where I put the UserID.
When the form is posted, it ...
1
vote
0answers
41 views
Changes to cookie domain for outgoing responses ignored for ServiceStack requests
I have a multi-tenant website (e.g. several different sites, each with it's own domain, all in the same project, separated using MVC areas), where the authentication cookie has the domain manually set ...
1
vote
0answers
32 views
Login to a web app using tomcat form shows error
I'm trying to develop an web app using java. I was using apache tomcat 7 and it was working fine. But today I installed tomcat 8. Then I transferred my web app to the new installation of apache. But ...
1
vote
0answers
15 views
Provide dynamic Forms Authentication Domain Value for session renewal
My project needs to support different set of domains, and uses FormsAutheticationTicket to create Forms Auth cookie upon user login, which works. But it has problem renewing Forms Auth cookie due to ...
1
vote
0answers
20 views
Implement Custom FormsAuthenticationModule and replace the default
I cannot find any information on how to implement custom FormsAuthenticationModule.
Specifically, I want to implement a MyFormsAuthentication that mirrors most features of FormsAuthenticationModule, ...
1
vote
0answers
49 views
Display message after user inactivity when Forms Auth ticket expires
I want to display a message to users like below, after 20 mins of inactivity.
"You have been logged out, please login again"
Specifically, for example, a user logs in, after 20 mins inactivity, ...
1
vote
0answers
35 views
Avoid donut caching when user is logged in as admin in Forms Authentication?
I would like to avoid caching if the user is logged in with forms authentication in the admin group.
I have overridden the cache attribute and have applied it at the controller level. However, the ...
1
vote
0answers
63 views
Make Context.User.Identity.Name empty string
How can I make my Context.User.Identity.Name equal to empty string after the user log-out. Because every time I go to Login Page the Context.User.Identity.Name is not empty. Thus, redirecting the user ...
1
vote
0answers
59 views
ASP.NET Form Authentication and Token Authentication in same set of applications - SSO
I need all your inputs for a use case with SSO implementation. Let me explain you my use case. I have couple of applications which written way back in 2004 – 2005 with ASP.NET, C#, SQL etc.. and uses ...
1
vote
0answers
246 views
Java ee 7 wildfly database/form authentication
I try to create simple form based authentication with database(user/roles on Postgresql 9.3) on wildfly 8.2.
my standalone.xml
<security-domain name="other" cache-type="default">
...