Difference between revisions of "CLARIN/OAuth2"

From PDP/Grid Wiki
Jump to navigationJump to search
Line 35: Line 35:
 
**** related to [http://tools.ietf.org/html/draft-ietf-oauth-saml2-bearer draft-ietf-oauth-saml2-bearer] (and expired [http://tools.ietf.org/html/draft-campbell-oauth-saml draft-campbell-oauth-saml]); AS would need to check that it was signed to the portal's SAML SP endpoint according to draft :/
 
**** related to [http://tools.ietf.org/html/draft-ietf-oauth-saml2-bearer draft-ietf-oauth-saml2-bearer] (and expired [http://tools.ietf.org/html/draft-campbell-oauth-saml draft-campbell-oauth-saml]); AS would need to check that it was signed to the portal's SAML SP endpoint according to draft :/
 
**** ''':(''' would require signatures of all IdPs at each AS (in addition to clients); can be done using eduGAIN
 
**** ''':(''' would require signatures of all IdPs at each AS (in addition to clients); can be done using eduGAIN
**** ''':(''' requires patching of OAuth2lib (and maybe SimpleSAMLphp too)
+
**** ''':(''' requires patching of OAuth2lib client (and maybe SimpleSAMLphp too) to send signed SAML
 +
**** ''':(''' requires patching of OAuth2lib AS to verify SAML (possibly with help of SimpleSAMLphp)
 
*** Or introduce an [http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-3.1 authorization endpoint] that does SAML SSO login for the client
 
*** Or introduce an [http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-3.1 authorization endpoint] that does SAML SSO login for the client
 
**** ''':)''' returns user attributes token to client
 
**** ''':)''' returns user attributes token to client

Revision as of 13:18, 10 November 2011

Documents

Software

AS=Authentication Server, RS=Resource Server

Use-case

A user accesses a web portal ("client" in OAuth2 terminology) for editing data. He logs in using SAML SSO. Somewhere in the process, the portal needs to access the user's data on service B. Using the existing SAML SSO login, the portal accesses service B without having to ask the user's confirmation again.

The access to service B can be implemented using OAuth 2.0. In this case it is a three-legged OAuth 2 flow, with three different endpoints: authorization endpoint doing user authentication, token endpoint handing out the access token (AS), and the resource endpoint providing the service to the client or user (RS).

There are several ways to do this. Let's see what existing implementations provide.

  • OAuth2lib: client does SAML SSO login. By presenting the returned attributes to the AS, it obtains an access token for the RS.
    • uses Simple Web Tokens (SWT)
    • :) AS trusts RS; signed access token by shared secret
    • :(( AS fully trusts client to supply user attributes
      • Either client could pass signed SAML statement from IdP to AS, which then can verify that.
        • related to draft-ietf-oauth-saml2-bearer (and expired draft-campbell-oauth-saml); AS would need to check that it was signed to the portal's SAML SP endpoint according to draft :/
        • :( would require signatures of all IdPs at each AS (in addition to clients); can be done using eduGAIN
        • :( requires patching of OAuth2lib client (and maybe SimpleSAMLphp too) to send signed SAML
        • :( requires patching of OAuth2lib AS to verify SAML (possibly with help of SimpleSAMLphp)
      • Or introduce an authorization endpoint that does SAML SSO login for the client
        • :) returns user attributes token to client
        • :) signed token so AS can check it was supplied by the authorization endpoint (shared secret)
        • :) client does not need to know about SAML SSO
        • :) allows to use generic OAuth2 clients (no SAML support required)
        • :( requires development of new service endpoint
        • :( requires patching of OAuth2lib to accept SWT from client
  • Apache Amber full suite
    • :( found no SAML-support (yet?)
    • :( trouble building the thing when I tried
  • rack-oauth2-provider converts a SAML assertion to a signed SWT token
    • might be an option for the authorization endpoint mentioned above?
  • oauth2-php server+client
    • not ready-to-go, but looks like it could be an alternative library to build upon
  • python-oauth2 server+client library
    • not ready-to-go, also something to build upon