Authorization

SimpleSAMLphp Authorization

Documentation on the authorize module of 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.

authorize:Authorize
Authorize certain users based on regular expressions.

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.

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 (...

SP-Centric Attribute Aggregation

Attribute Aggregation is about collection user attributes from multiple sources, not only from the Identity Provider.

  • $Id: attribute-aggregation.txt 172 2009-11-11 07:26:28Z andreas $

Introduction and Terminology

Attribute Aggregation is about collection user attributes from multiple sources, not only from the Identity Provider. IdP-centric attribute aggregation is when the IdP during the login proccess collects additional data from external sources.

In some scenarios IdP-centric aggregation is not flexible enough. Often it is not scalable enough, or by other means not possible, to involve the IdP in all cases when a SP would like to retrieve additional data from a third party. Then we introduce, SP-Centric aggregation. With SP-Centric Attribute Aggregation the attribute retrieval process is completely independent from the login / SSO.

Two roles are involved in attribute retrieval:

  • Attribute Authority, the service that provides attributes.
  • Attribute Consumer, the client that r...

VO, OAuth and trust model

OAuth is simply ensuring that both parties, requester and responder has the same reference to a user, ‘the current user’, and they both independently may authenticate the user (out of scope of oauth). What is the added value of OAuth here is that it allows you to do backchannel requests regarding a specifc user, ‘the current user’, without using a privacy-invasive identifier. And as a happy coincidence, the OAuth protocol is so simple, it can be implemented in a snap.

Trust model is partly out of scope of the OAuth protocol. Although it has some very useful hooks that allows you to do what you want.

First, it has provider key/secrets, which is a way of managing ‘registered’ consumers, that are allowed to communicate and talk to the oauth provider. You can imagine several ways of handling this:

  1. Self-registration of consumers (most common).
  2. Self-registration, but with ack from the provider administrator.
  3. Provider administrator configures the trusted consumers

When you have a list of consumers, you may setup access control per consumer. In this scenario you could also let the VO admin configure which consumer that are allowed to access what data.

In addition, OAuth gives you the ability to add user consent to release of VO information, and you can also give the user options about what data the consumer may retrieve in that particular session. Including user consent is not straight forward using SAML 2.0 AttributesQueries (backchannel).

To summarize, we may define an apprioriate trust model about registration of consumers and release of VO information - and then OAuth will much likely fit with that model.

Beyond WebSSO BoF at TNC2009

Screenshot of slides

Here are a couple of slides I put together in the last minute before the BoF started at TNC2009 in Malaga.


Secure Mail gets Access Control

I created Secure Mail a couple of weeks ago, to be able to verify the sender of some kind of important messages related to Feide. This works great for sending public keys, certificates, metadata updates etc.

But today I had to send a message containing a secret URL, so I also had to ensure confidentialiy. I added a checkbox when you send message, that limits access to the message to only receivers that are able to authenticate with Feide and having a registered mail-address that match the intended receiver of the message.

Here is a screenshot:

screenshot

Authentication Processing Filters in SimpleSAMLphp

In SimpleSAMLphp, there is an API where you can do stuff after authentication is complete. This document explains how to use the existing auth proc filters, and how to add new.

  • Version: $Id: simplesamlphp-authproc.txt 2206 2010-03-08 10:14:12Z andreassolberg $

In SimpleSAMLphp, there is an API where you can do stuff at the IdP after authentication is complete, and just before you are sent back to the SP. The same API is available on the SP, after you have received a successfull Authentication Response from the IdP and before you are sent back to the SP application.

Authentication processing filters postprocesses authentication information received from authentication sources. It is possible to use this for additional authentication checks, requesting the users consent before delivering attributes to the user, modifying the users attributes, and other thing...

simpleSAMLphp Drupal Authentication Module ready

I've now finally completed the drupal simpleSAMLphp authentication module.

I appreciate if people test it, and report issues to me.The module implements Single Sign-On and Single Log-Out, and also have functionality for automatic role population from SAML attributes.I have setup this module on this blog right now. So if you want to test it, then click "federated login" and login with either Feide Test Environment or with Open IdP (guest users). When you have logged in, you may add a comment on this blog entry! Thanks!

screenshot 

Proposal on perfSONAR OAuth Profile

A new proposal on how to integrate perfSONAR with eduGAIN using the OAuth protocol for doing delegation. This version is an early draft.

Here are some background information of the current perfSONAR profile: perfSONAR AAI profile at JRA1 wiki.

Authentication in SIP

Screenshot of slides

A presentation was held at UNINETT in November 2006 about authentication mechanisms in SIP (Session Initiation Protocol), and I just made it available on the web.

I discuss SAML, Feide, eduroam, 802.1x, NAS-SAML, etc and SIP extensions.


Authorization in apache with a SAML 2.0 federation

Sun's Sun Access Manager Policy Agent for Apache is limited sucks because it is "impossible" to deploy on any other Linux than Red Hat Enterprise.

Having an apache module that works with Feide is important for us, so we are looking on alternatives. One idea is to use saml2php (OpenSSO PHP Extension) together with Auth MemCookie. Olav Morken helped us to setup a proof of concept demo site, and write a detailed document on how to setup saml2php with Auth MemCookie.

The document is checked-in to saml2php CVS repository, so you will also get this document when you download saml2php.

A new sessionhandler is also added to saml2php CVS, named authmemcookie, found under: openssophp/spi/sessionhandling/authmemcookie.php.