450 likes | 543 Views
AAI with simpleSAMLphp. Marina Vermezovi ć Academic Network of Serbia -AMRES EIFL, 15.12.2011. Content. AAI and Federated Identity simpleSAMLphp Federation structures AMRES AAI deployment. Let’s make a start point. If you want to: You need to: How do you do this:.
E N D
AAI with simpleSAMLphp Marina Vermezović Academic Network of Serbia -AMRES EIFL, 15.12.2011.
Content • AAI and Federated Identity • simpleSAMLphp • Federation structures • AMRES AAI deployment Akademska mreža Srbije www.amres.ac.rs
Let’s make a start point • If you want to: • You need to: • How do you do this: Akademska mreža Srbije www.amres.ac.rs
Let’s make a start point • If you want to: • offer web services – e-books, e-magazines • You need to: • How do you do this: Akademska mreža Srbije www.amres.ac.rs
Let’s make a start point • If you want to: • offer web services – e-books, e-magazines • You need to: • Control access to those web services • Make services user personalized • How do you do this: Akademska mreža Srbije www.amres.ac.rs
Let’s make a start point • If you want to: • offer web services – e-books, e-magazines • You need to: • Control access to those web services • Make services user personalized • How do you do this: • Authentication - who is your user? • Authorization - what she can do? • AAI - Authentication and authorization infrastructure makes access to protected services easier Akademska mreža Srbije www.amres.ac.rs
Without AAI FacultyA Service Providers wireless videoconference e-learning Student portal Library B Service Providers wireless e-books Akademska mreža Srbije www.amres.ac.rs
Without AAI FacultyA Service Providers wireless Auth videoconference e-learning Student portal Library B Service Providers wireless e-books Akademska mreža Srbije www.amres.ac.rs
Without AAI FacultyA Service Providers wireless Auth Autz videoconference e-learning Student portal Library B Service Providers wireless e-books Akademska mreža Srbije www.amres.ac.rs
Without AAI FacultyA Service Providers wireless Auth Autz videoconference Auth Autz e-learning Student portal Library B Service Providers wireless e-books Akademska mreža Srbije www.amres.ac.rs
Without AAI FacultyA Service Providers wireless Auth Autz videoconference Auth Autz e-learning Auth Autz Student portal Auth Autz Library B Service Providers wireless Auth Autz e-books Auth Autz Akademska mreža Srbije www.amres.ac.rs
With AAI FacultyA Service Providers wireless videoconference e-learning Student portal Library Service Providers wireless e-books Akademska mreža Srbije www.amres.ac.rs
With AAI FacultyA Service Providers wireless videoconference Identity provider e-learning Identity Management Student portal Library Service Providers wireless e-books Akademska mreža Srbije www.amres.ac.rs
With AAI FacultyA Service Providers wireless videoconference Identity provider Auth e-learning Identity Management Student portal Library Service Providers wireless e-books Akademska mreža Srbije www.amres.ac.rs
With AAI FacultyA Service Providers wireless videoconference Identity provider Auth e-learning Identity Management Student portal Library Service Providers wireless e-books Akademska mreža Srbije www.amres.ac.rs
With AAI Autz Autz Autz Autz Autz Autz Autz Autz Autz Autz Autz Autz FacultyA Service Providers wireless videoconference Identity provider Auth e-learning Identity Management Student portal Library Service Providers wireless e-books Akademska mreža Srbije www.amres.ac.rs
AAI Architecture and Roles Federation operator Identity Provider Service Provider Akademska mreža Srbije www.amres.ac.rs
AAI Architecture and Roles Federation operator Identity Provider Service Provider • Identity Management • Authentication • Release of user Attributes • Preserving user privacy Akademska mreža Srbije www.amres.ac.rs
AAI Architecture and Roles Federation operator Identity Provider Service Provider • Identity Management • Authentication • Release of user Attributes • Preserving user privacy • Controls Access to resource • Authorization • Personalized user service Akademska mreža Srbije www.amres.ac.rs
AAI Architecture and Roles • Defines technologies used • Admits IdPs and SPs to federation –provides metadata • Can provide some of federation services centrally: • Discovery Service • Metadata management • SSO, SLO, consent, Attribute Handling Federation operator Identity Provider Service Provider • Identity Management • Authentication • Release of user Attributes • Preserving user privacy • Controls Access to resource • Authorization • Personalized user service Akademska mreža Srbije www.amres.ac.rs
AAI Architecture and Roles • Defines technologies used • Admits IdPs and SPs to federation –provides metadata • Can provide some of federation services centrally: • Discovery Service • Metadata management • SSO, SLO, consent, Attribute Handling CIRCLE OF TRUST Federation operator Identity Provider Service Provider • Identity Management • Authentication • Release of user Attributes • Preserving user privacy • Controls Access to resource • Authorization • Personalized user service Akademska mreža Srbije www.amres.ac.rs
Decide for technology and software • De-facto standard in Academic identity federations: SAML • Software: • Shibboleth • Created by Internet2 (U.S.) • IdP: Java, needs Tomcat • SP: C++, Apache module • SimpleSAMLphp • Created by UNINETT (Norway) • Both IdP and SP, written in PHP Akademska mreža Srbije www.amres.ac.rs
SimpleSAMLphp • What are key-point simpleSAMLphp functionalities ? • Let’s see what simpleSAMLphp can do from an example of user accessing web service.. Akademska mreža Srbije www.amres.ac.rs
SP point of view.. – protect Access • Allows access to resource only to legitimate users Akademska mreža Srbije www.amres.ac.rs
SP point of view.. – IdP Discovery • Before redirecting user to its IdP, SP needs to discover what is a user’s IdP • With simpleSAMLphp you can: • Implement centralized discovery service by Federation Operator Akademska mreža Srbije www.amres.ac.rs
SP point of view.. – IdP Discovery • Before redirecting user to its IdP, SP needs to discover what is a user’s IdP • With simpleSAMLphp you can: • Implement centralized discovery service by Federation Operator • Implement built-in discovery service on SP side; works by displaying IdP entries from metadata Akademska mreža Srbije www.amres.ac.rs
Idp point of view.. - Authentication • User is redirected to IdP site, where she is asked to enter u/p • Thus process of authentication is started Akademska mreža Srbije www.amres.ac.rs
Idp point of view.. - Authentication • When IdP gets u/p, IdP must authenticate user against some database • Authentication methods that come with simpleSAMLphp distribution: • LDAP • SQL • RADIUS • List of username/password • Open ID, Facebook, Tweeter, MySpace, LinkedIn,.. • … • If you don’t find your authentication source on the list, you can make custom authentication module Akademska mreža Srbije www.amres.ac.rs
Idp point of view.. - Identity Management • Regardless in which database user Identities are stored, it is important that data about user is correct • IdM : set of proceduresandruleswhichdefine: • Who has the right to own digital identity • When is digital identity assigned to a person • How is digital identity maintained • How is the digital identity used • How is the digital identity terminated • Must comply with national personal data protection law • EU Data Protection Directive Akademska mreža Srbije www.amres.ac.rs
Idp point of view.. - Attribute Release • After user is authenticated, IdP can release some attributes about user to SP • But some principles are important ! • General rules: • release only attributes which SP really needs • release attributes upon pre-agreed syntax (schemas) • With simpleSAMLphp, IdP can : • Filter out a subset of available attributes that are sent to a SP • Modify name or values of attributes • Add new attributes • Generate new attributes that are composed of others Akademska mreža Srbije www.amres.ac.rs
Idp point of view.. - Consent • Before Attribute Release, IdP can ask user about consent for releasing user ‘s data • This is very important from the perspective of national and international laws about protection of users data • EU Data Protection Directive: • Consent—data should not be disclosed without the data subject’s consent; Akademska mreža Srbije www.amres.ac.rs
Idp point of view.. - Consent • Consent module is available in simpleSAMLphp Akademska mreža Srbije www.amres.ac.rs
SP point of view .. - Attribute processing • Attributes help SP to: • Make authorization decisions • Students/employees have different permissions Akademska mreža Srbije www.amres.ac.rs
SP point of view .. - Attribute processing • Attributes help SP to: • Make authorization decisions • Students/employees have different permissions • Make personalized services to users • SP needs persistent user Id so he can save users preferences Akademska mreža Srbije www.amres.ac.rs
SP point of view .. - Attribute processing • Attributes help SP to: • Make authorization decisions • Students/employees have different permissions • Make personalized services to users • SP needs persistent user Id so he can save users preferences • User gets some additional service • SP needs users e-mail address to send e-mail notifications Akademska mreža Srbije www.amres.ac.rs
Decide for Federation architecture • 3 possibilities: • Full mesh • Centralized • Hub and spoke • Choosing one is very important because it heavily depends on state institutions are in.. Akademska mreža Srbije www.amres.ac.rs
Federation operator Full mesh Federation metadata Discovery service Institution A Identity Provider Auth Atr. Filt. Consent Institution B Service Provider Discovery Service SSO,SLO Autz Identity Management
Federation operator Full mesh Federation metadata Discovery service Institution A Identity Provider Auth Atr. Filt. Consent Institution B Service Provider Discovery Service SSO,SLO Autz Identity Management Institution D Institution C Service Provider Identity Provider Discovery Service Auth Atr. Filt. Autz Consent SSO,SLO Identity Management Akademska mreža Srbije www.amres.ac.rs
Hub and spoke Institution A Identity Provider Auth Institution B Service Provider Discovery Service Federation operator Identity Management Autz Federation metadata Discovery service Atr. Filt. Consent SSO,SLO
Hub and spoke Institution A Identity Provider Auth Institution B Service Provider Discovery Service Federation operator Identity Management Autz Federation metadata Discovery service Institution D Service Provider Institution C Atr. Filt. Discovery Service Identity Provider Auth Consent Autz SSO,SLO Identity Management
Centralized Federation operator Institution B Service Provider Federation metadata Discovery service Discovery Service Institution A Autz Identity Management Identity Provider Auth Atr. Filt. Consent SSO,SLO Akademska mreža Srbije www.amres.ac.rs
Centralized Federation operator Institution B Service Provider Federation metadata Discovery service Discovery Service Institution A Autz Identity Management Identity Provider Auth Atr. Filt. Institution D Consent Service Provider Discovery Service Institution C SSO,SLO Identity Management Autz Akademska mreža Srbije www.amres.ac.rs
AMRES AAI • What was our start point: • Institution administrators have less knowledge • Institutions have different databases => no centralized federation • No institution has its own SSO • We decided for: • simpleSAMLphp • Full-mesh with making it as much as possible lightweight: metadata management tool, attribute release recommendations, ... Akademska mreža Srbije www.amres.ac.rs
AMRES AAI • We have set-up test environment • Next steps: • Make hands-on workshop with few chosen institutions which will continue in PILOT AAI • Get experiences in PILOT, evaluate chosen solution, make some changes if needed • Start PRODUCTION, continue with workshops • Get /deploy new user services which would attract institutions Akademska mreža Srbije www.amres.ac.rs
Thank you for your attention • Questions? or write to marina.vermezovic@rcub.bg.ac.rs Akademska mreža Srbije www.amres.ac.rs