authentication

Facebook signature validation, .NET code

it is September 2010 and I am trying to update Facebook connect integration on our website. I need to validate auth cookie that was set by Facebook code. I was following PHP sample from http://developers.facebook.com/docs/guides/web please check the C# code: public static Dictionary<string, string> ParseCookie(HttpCookie fbCookie)...

JAAS LoginModule login() and commit() successful, but user not logged in

Hello, I've implemented a LoginModule to perform some custom authentication, and call the authentication using the login() method of the LoginContext class. The login module's login() and commit() methods are called successfully, but instead of being able to use the web app I am being sent back to the login page immediately. request.g...

Disqus Integration with my authentication system

Is it possible to integrate Disqus with my existing authentication solution? I am developing a app using RoR and authologic! ...

Best way of using web services on iOS?

I'd like to build an iOS app which lets you log in to a web service. After that, the app would (when the user chooses) send the login name/pass, together with the requested variable(s), over https. For instance after requesting 'news-update', it would receive the requested info in XML format... something like: <news-update> <title>K...

CodeIgniter customer Controller class says session is undefined

Hi all, I'm using CodeIgniter (v1.7.2) and I've created a custom controller that incorporates authentication called MY_Controller (based on David Winter's blog post). When I load any controllers that use this base class, I get this error; *Message: Undefined property: MY_Controller::$session* Note that I am autoloading 'session' ...

How to implement NTLM Authentication for UIWebView?

I have a use case where a UIWebView may need to connect with a web server secured with NTLM. I also have a use case where I already have the credentials to be passed. So instead of forcing the user to enter them, how do I perform the handshake with the UIWebView? UPDATE: Using this method here works well enough when you are doing sim...

Mercurial authentication caching?

My Mercurial server requires https authentication for pulls. How can I cache my authentication information on the client without exposing a plain-text password on disk? I'm looking for something like http://stackoverflow.com/questions/2799460/using-sudo-with-mercurial-and-ssh-authentication but for HTTPS. ...

ASP.NET MVC Authentification Form

Hi all, I need to deny all access to any controller if they do not login. I do not want to do this for each entry: [Authorize] public ActionResult AnyMethod() { ... } I try something like that but this was denied access to everything (css, js, ...). <authorization> <deny users="?"/> </authorization> In the Web.config I have on...

Asp.net, where to store the username of logged in user?

When a user log into my asp.net site I use the following code: FormsAuthentication.RedirectFromLoginPage(userid, false); As I often need to use the userid I can then later get the userid by: string userid = System.Web.HttpContext.Current.User.Identity.Name; Now I also want to show the logged in username on each page and my question...

How to set the <img> tag with basic authentication

I would like to display the image from a network camera on my web page, but the image is behind a HTTP basic authentication server. In Firefox and Chrome I can do this: <img width="320" height="200" src="http://username:password@server/Path" /> But in Internet Explorer 8, I get an empty image box. If I use JQuery to set the src attr...

What is the best way of searching through email via Zend?

Hi I have implemented three legged auth to gmail using the Zend framework. I am wondering what the best way of finding emails once authenticated is (for example by a mix of title regex, sender, date range) - which is efficient? Thanks! ...

Add per request, token based authentication to asp.net mvc site

I have an existing asp.net mvc website that uses basic forms authentication. The site has a login page that posts back to a login action, which logs the user in via FormsAuthentication.SetAuthCookie(). I am looking to add an api to the site, as an mvc2 area, where users would be authenticated based on a token passed as an http header. ...

401 accessing no-auth required Twitter user timeline

according to the twitter api documentation http://dev.twitter.com/doc/get/statuses/user_timeline accessing the current logged in users timeline does not require auth. But i'm getting a basic auth not supported response and a 401 when I debug in javascript. anybody have experience getting the current users info? http://api.twitter.com...

NTLM authentication using iPhone / iPad

Hi, I am trying to develop an iPad application for enterprise deployment. The application needs to access some of the data whose access is currently controlled by NTLM authentication. I am looking at options to authenticate the user from the native application and access the rest of the system. Anybody pointers will be helpful. ...

jaxws webservice url additional parameter for authorization

Hello, I created WebService using JAXWS. Glassfish generated wsdl, and whole webservice is published under http://localhost:8081/mycompanyApi/api?wsdl How can I add some additional parameter to this url like http://localhost:8081/mycompanyApi/api?wsdl&amp;hash=asdfa. I'd like to do the authorization by 'hash' parameter. ...

Passing user credentials from session to an applet?

I have an authenticated user with an HTTP session. The user should be able to use an applet to connect with this authentication to a server. It will connect to server via a socket connection so looking up the session is not possible. How can the authentication be passed? ...

Spring Security : Bypass login form

Hi, I want to bypass the login form for a Spring webflow (Spring 2.0.5) application under certain scenarios (so the login form is presented for normal users but when the URL is like http://server.com/myspringapp/fakelogin?username=FakeUser&amp;password=FakePassword then the user should not be presented the login form but just authentica...

C# REST webservice authentication problem

In my previous question here i was experiencing difficulties with Authenticating webservices. With the use of the WcfRestContrib library which i found here i was able to solve this issue. I build a small testapplication and the authentication works like a charm. But while i'm implementing this in the webapplication where i want to use t...

Forms authentication not forgetting me

I am using an ASP Login control to authenticate users, however even if the user doesn't check the 'Remember Me' check box the user will not be forgotten, even if they close their browser, shutdown their PC and open it up again. Authentication is: <authentication mode="Forms"> <forms name=".ASPXFORMSAUTH" loginUrl="~/Default.aspx" tim...

Please help with Google AOuth authentification in C#. Fails to exchange authorised request token for an access token.

The code fails to "Upgrade to Access Token" but fully matches the AOuth Playground requests. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; using System.Security.Cryptography; using System.Net; namespace TestGAOuth { class Program { const string OAuthGetReq...