Posts tagged: authentication

Oauth / Twitter Auth Adapter for Zend Framework

By , Saturday 23rd April 2011 3:57 pm

Work continues (slowly) on my new Twitter-based application. Over the next couple of bank holidays I hope to get the momentum going again on the project (in-spite of the wonderful weather at present). Anyway, my next task was to create an authentication adapter for the Zend Framework. I had a working login implementation, but having a drop in Auth adapter for Zend Framework seemed like an attractive proposal, so I created it….

(I’m not going to go through Oauth or registering your application with twitter, there’s hundreds of guides and its a fairly straightforward process anyhow.)
Continue reading 'Oauth / Twitter Auth Adapter for Zend Framework'»

Apache proxy with digest authentication

By , Sunday 27th March 2011 12:57 pm

This post will quickly show you how to set up proxying with basic authentication using apache.

In my case I wanted to have transmission bit torrent client available over the internet so I could check on the state and adminster torrent downloads (such as the latest fedora release) as required. Transmission itself runs its web client on port 9091 by default. Rather than bother opening up more ports on my firewall and adding the nessecary port forwarding rules I decided I’d just proxy the calls through to transmission via apache using mod_proxy.

Continue reading 'Apache proxy with digest authentication'»

“Sign in with Twitter” using Zend Framework

By , Thursday 17th March 2011 1:07 am

Despite all the twitter hate at the moment, I’ve set out to create a new twitter-based application. Being someone who manages several accounts (both personal and for my charity work) I’ve been needing a tool for sometime that I’m just getting around to writing (more of that in the near future…).

I’ve read up on Zend_Oauth_Consumer and how it can be used to get authorisation for interacting with twitter using oauth. All well and good, I have my access key and I can merrily post away on a user’s behalf. There’s plenty of resources out there to do this so I won’t bore people.

The next step was to allow people to return to the website, log in and modify their account. This is where I reached a slight problem. Using the code examples on websites meant that I’d have twitter asking me for access authorisation again for each login, not good. Scanning through the framework I couldn’t see anything which would allow me to just request authentication. That isn’t to say its not there, but there didn’t seem to be an authentication mechanism that could be invoked without knowing the access token already.

The alternatives were to implement a site-based log in or somehow store the user’s access token on the client (encrypted of course). Neither of these seemed like a good/suitable solution.

Continue reading '“Sign in with Twitter” using Zend Framework'»

Panorama Theme by Themocracy

2 visitors online now
0 guests, 2 bots, 0 members
Max visitors today: 21 at 04:13 am UTC
This month: 33 at 18-03-2017 08:20 pm UTC
This year: 45 at 02-01-2017 10:28 pm UTC
All time: 130 at 28-03-2011 10:40 pm UTC