Stud.IP  3.1 Revision 48552
 All Data Structures Namespaces Files Functions Variables Groups Pages
HTTP Class Reference
Inheritance diagram for HTTP:
Inheritance graph
Collaboration diagram for HTTP:
Collaboration graph

Static Public Member Functions

static detect ()
- Static Public Member Functions inherited from Base
static addType ($type, $class)
static removeType ($type)
static find ($id)
static findAll ()
static create ($type)
static detectConsumer ($type=null, $request_type=null)

Additional Inherited Members

- Public Member Functions inherited from Base
 __construct ($id=null, $user=null)
 getPermissions ()
 setUser ($user)
 hasUser ()
 getUser ()
- Protected Attributes inherited from Base
 $user = null
- Static Protected Attributes inherited from Base
static $known_types = array()

Detailed Description

Basic HTTP Authentication consumer for the rest api

Author
Jan-Hendrik Willms tleil.nosp@m.ax+s.nosp@m.tudip.nosp@m.@gma.nosp@m.il.co.nosp@m.m GPL 2 or later
Since
Stud.IP 3.0

Member Function Documentation

static detect ( )
static

Detects if a user is authenticated via basic http authentication. The only supported authentication for now is via the url:

http://username:password@host/path?query

Returns
mixed Instance of self if authentication was detected, false otherwise
Exceptions
RouterExceptionif authentication fails
Todo:
Integrate and test HTTP_AUTHORIZATION header authentication

Reimplemented from Base.

Here is the call graph for this function:


The documentation for this class was generated from the following file: