Skip to content
Snippets Groups Projects
Commit ea091cea authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Formatting of documentation

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1867 44740490-163a-0410-bde0-09ae8108e29a
parent eb78ede6
No related branches found
No related tags found
No related merge requests found
......@@ -7,15 +7,11 @@ authorize Module
http://daringfireball.net/projects/markdown/syntax
-->
* Version: `$Id$`
* Author: Ernesto Revilla <erny@yaco.es>, Yaco Sistemas
* Package simpleSAMLphp
* Version: `$Id$`
* Author: Ernesto Revilla <erny@yaco.es>, Yaco Sistemas
* Package: simpleSAMLphp
This module provides an user authorization filter based on regular
expressions for those applications that do not cleanly separate
authentication from authorization and set some default permissions
for authenticated users.
This module provides an user authorization filter based on regular expressions for those applications that do not cleanly separate authentication from authorization and set some default permissions for authenticated users.
`authorize:Authorize`
......@@ -25,22 +21,20 @@ for authenticated users.
`authorize:Authorize`
---------------------
For each attribute you can specify a regular expression
string or array of strings. If one of those attributes matches (OR operator)
one of the regular expression, the user is authorized successfully.
For each attribute you can specify a regular expression string or array of strings. If one of those attributes matches (OR operator) one of the regular expression, the user is authorized successfully.
You must use the preg_match format, i.e. you have to enclose it with
a delimiter that does not appear inside the regex
(e.g. slash (/), at sign (@), number sign (#) or underscore (_)).
You must use the preg_match format, i.e. you have to enclose it with a delimiter that does not appear inside the regex (e.g. slash (/), at sign (@), number sign (#) or underscore (`_`)).
The users not authorized will be shown a 403 Forbidden page.
Problems:
* Once you get the forbidden page, you can't logout at the IdP directly,
(as far as I know), you have to close the browser.
To use this filter configure it in `config/config.php`:
'authproc.sp' => array(
60 => array(
'class' => 'authorize:Authorize',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment