bearer (237)


Python urllib2, basic HTTP authentication, and tr.im

Python urllib2, basic HTTP authentication, and tr.im

I'm playing around, trying to write some code to use the tr.im APIs to shorten a URL. After reading http://docs.python.org/library/urllib2.html, I tried: TRIM_API_URL='http://api.tr.im/api' au…


security - https URL with token parameter:how secure is it?

On our site, we provide to users a simulation based on their private information(given through a form). We would like to allow them to get back on their simulation results later, but without forcing…


HTTP Authentication in Python

Whats is the python urllib equivallent of curl-u username:password status="abcd" http://example.com/update.json I did this: handle=urllib2.Request(url) authheader="Basic %s" % base64.encodestri…


c# - Generating cryptographically secure authentication tokens

Background: This is really a general best-practices question, but some background about the specific situation might be helpful: We are developing a "connected" application for the iPhone. It will co…


System.Web.UI.Page won't let me access CurrentUser or User.Identity from a Controller in ASP.Net-MVC

When I try user=System.Web.UI.Page.CurrentUser or user=System.Web.UI.Page.User.Identity I get an error saying that the method is not defined for System.Web.UI.Page I am trying to access it within…


Set Authorization header using PHP and curl

We're using Commission Junction's REST service, which requires we sent an API key in the Authorization header. We set the header like this: $ch=curl_init(); curl_setopt_array($ch, array(// set ur…


http headers - HTTP 401-what's an appropriate WWW-Authenticate header value?

The application I'm working on at the moment has a session timeout value. If the user hasn't interacted for longer than this value, the next page they try to load, they will be prompted to log in. All…


wcf - What's the purpose of claims-based authorization?

I've been reading about Azure's Access Control Service and claims-based authorization in general for a while now, and for whatever reason, I still don't see the rationale behind moving from role/permi…


java - Preemptive Basic authentication with Apache HttpClient 4

Is there an easier way to setup the http client for preemptive basic authentication than what described here? In previous version(3.x) it used to be a simple method call(eg, httpClient.getParams().s…


Fetching custom Authorization header from incoming PHP request

So I'm trying to parse an incoming request in PHP which has the following header set: Authorization: Custom Username Simple question: how on earth do I get my hands on it? If it was Authorization: B…





token authentication example api authorization header web oauth with get