#SummitNow Consuming OAuth Services in Alfresco Share Alfresco Summit 2013 Will Abson

Slides:



Advertisements
Similar presentations
Different Approaches to Single-Sign-On Jeff Kahn, Verbena Consulting.
Advertisements

Enabling Secure Internet Access with ISA Server
FI-WARE Testbed Access Control temporary solution.
OAuth 2.0 By “PJ” (JP on meetup.com) iOS and PHP developer, and occasional lawyer Contact me via:
Contrail and Federated Identity Management
Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation.
Web Application Security SSE USTC Qing Ding. Agenda General security issues Web-tier security requirements and schemes HTTP basic authentication based.
WSO2 Identity Server Road Map
1 Trillion Azure AD authentications since the release of the service 50 M Office 365 users active every month >1 Billion authentications every.
Servlets and a little bit of Web Services Russell Beale.
GRDevDay March 21, 2015 Cloud-based Identity for Applications.
Clients using wide variety of devices/languages/platforms Server applications using wide variety of platforms/languages Browser Native app Server.
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California Building Secure Applications.
OAuth 2.0 in Depth By Rohit Ghatol SynerzipSynerzip Passionate about TechNextTechNext.
Copyright 2007, Information Builders. Slide 1 WebFOCUS Authentication Mark Nesson, Vashti Ragoonath Information Builders Summit 2008 User Conference June.
OAuth-as-a-service using ASP.NET Web API and Windows Azure Access Control Maarten
Session 11: Security with ASP.NET
NAMS Account Activation Training. 2 What is NAMS? The NASA Account Management System is NASA’s centralized process for requesting and maintaining accounts.
Remotely authenticating against the Service Framework.
Access Gateway Operation
Lecture 15 Introduction to Web Services Web Service Applications.
Module 5 Configuring Authentication. Module Overview Lesson 1: Understanding Classic SharePoint Authentication Providers Lesson 2: Understanding Federated.
Windows 8 Application Microsoft Word with Apps For Office Internal O365 SharePoint Site Windows Azure Cloud Services Windows Azure Workflow Server.
CAS Lightning Talk Jasig-Sakai 2012 Tuesday June 12th 2012 Atlanta, GA Andrew Petro - Unicon, Inc.
SOA-39: Securing Your SOA Francois Martel Principal Solution Engineer Mitigating Security Risks of a De-coupled Infrastructure.
SSO Case Study Suchin Rengan Principal Technical Architect Salesforce.com.
Claims-Based Identity Solution Architect Briefing zoli.herczeg.ro Taken from David Chappel’s work at TechEd Berlin 2009.
THE DEVIL IS IN THE (IMPLEMENTATION) DETAILS: AN EMPIRICAL ANALYSIS OF OAUTH SSO SYSTEMS SAN-TSAI SUN & KONSTANTIN BEZNOSOV PRESENTED BY: NAZISH KHAN COMPSCI.
Developing Great Dashlets Will Abson About Me Project Lead, Share Extras Alfresco Developer and previously Solutions Engineer DevCon 2011 –
FriendFinder Location-aware social networking on mobile phones.
FriendFinder Location-aware social networking on mobile phones.
Front end (user interfaces) Facilitating the user‘s interaction with the SandS services and processes I. Mlakar, D. Ceric, A. Lipaj Valladolid, 17/12/2014.
Adxstudio Portals Training
Securing Angular Apps Brian Noyes
Esri UC 2014 | Demo Theater | Using ArcGIS Online App Logins in Node.js James Tedrick.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Security Considerations
API Auth By Kyle Bradley. Role Definitions  User (Resource Owner)  The resource owner is the person who is giving access to some portion of their account.
Securing Web Applications Lesson 4B / Slide 1 of 34 J2EE Web Components Pre-assessment Questions 1. Identify the correct return type returned by the doStartTag()
Virtual techdays INDIA │ November 2010 Integrating Social Networks with ASP.NET Krishna Chaitanya T │ Future Web Research Lab, SETLabs, Infosys WE.
Secure Mobile Development with NetIQ Access Manager
#SummitNow Alfresco for Salesforce 5 November 2013 / 13 November 2013 Will Abson Jared Ottley
Developing Great Dashlets Will Abson About Me Project Lead, Share Extras Alfresco Developer and previously Solutions Engineer DevCon 2011 –
#SummitNow Lessons Learnt From Share Extras Alfresco Summit 2013 Will Abson
Developing Great Dashlets Will Abson About Me Project Lead, Share Extras Alfresco Developer and previously Solutions Engineer DevCon 2011 –
Unlocking the Secrets of Alfresco Authentication Mehdi BELMEKKI, Consultancy Team Alfresco.
Redmond Protocols Plugfest 2016 Ron Starr, Paul Bartos, Hagit Galatzer, Stephen Guty New and Modified Windows Protocol Documents.
#SummitNow Alfresco Authentication and Synchronization Nov 2013 Mark Rogers.
Developers Introduction to the Power BI Platform.
Alain Bethuyne Web Security Architect BNPParibas Fortis
Javascript Console, what's new!?
Ask the Experts – Building Login-Based Sites in AEM
4/18/2018 1:15 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Consuming OAuth Services in Alfresco Share
Azure Identity Premier Fast Start
Federation made simple
Migrating SharePoint Add-ins from Azure ACS to Azure AD
Identity Federations - Overview
Data Virtualization Tutorial… OAuth Example using Google Sheets
Radius, LDAP, Radius used in Authenticating Users
What is REST API ? A REST (Representational State Transfer) Server simply provides access to resources and the REST client accesses and presents the.
IBM Certified WAS 8.5 Administrator
Azure AD Line Of Business Application Integration
SharePoint Online Authentication Patterns
Office 365 Development.
WWW安全 國立暨南國際大學 資訊管理學系 陳彥錚.
Technical Integration Guide
07 | Introduction to Authentication
Check-in Identity and Access Management solution that makes it easy to secure access to services and resources.
Presentation transcript:

#SummitNow Consuming OAuth Services in Alfresco Share Alfresco Summit 2013 Will Abson

#SummitNow My Role at Alfresco At Alfresco since 2005 Started Share Extras project 2010 Joined Integrations Team 2012

#SummitNow Integrations Matter Source:

#SummitNow Back in the Day Integrations were PAINFUL Long, iterative dev cycles Transport protocols were XML-based (WSDL, SOAP, etc.) or language-specific (e.g. RMI) How to authenticate?

#SummitNow The Situation Today REST + JSON = Happy Developers? Scriptable APIs Powerful client capabilities

#SummitNow What About Identity? Sharing usernames and passwords is BAD Details may be compromised Passwords may be changed Passwords not always secure Using tokens allows users to delegate authorization to external applications Tokens may be revoked by the user and may expire... But will not change Long alphanumeric values normally used

#SummitNow Enter OAuth An open protocol to allow secure authorization in a simple and standard method from web, mobile and desktop applications. - oauth.netoauth.net

#SummitNow OAuth Two variants OAuth 1.0(a) OAuth 2.0 Really completely different standards OAuth 2.0 has been controversial Application requests access to protected resource User authenticates and approves application Access token is returned to client

#SummitNow OAuth 1.0a Flow

#SummitNow OAuth 2.0 Flow

#SummitNow Comparing The Two OAuth 1.0 Grant Token must be obtained up-front User tokens consist of access token and secret token (for signing) Every request must be signed as prescribed by SP Access Tokens normally long-lived but cannot be renewed OAuth 2.0 No Grant Tokens Users provided with access token only, no secret token No Signing of requests, relies on SSL Access Tokens are short- lived but Refresh Tokens can be used to renew them

#SummitNow The Dream Your Code API Dashlets Admin Console Doclib Actions etc. Twitter Salesforce Flickr etc.

#SummitNow Introducing Share OAuth Goal: To make RESTful, OAuth-protected APIs natively and easily accessible through client-side JavaScript in Alfresco Share Just like we can easily access the Alfresco repository For OAuth 1.0 and 2.0 services

#SummitNow Challenges How should developers declare endpoints, client IDs and secrets? Dealing with the “OAuth Dance” Where to persist access tokens? How do we sign requests? How do we keep this secure?

#SummitNow Share Proxy Client-side Proxy Repo API someco.com otherco.com Proxy gets around cross-domain restrictions, handles authentication, etc.

#SummitNow Connectors and Endpoints Endpoints give the location of remote resources Connectors are used to fetch those resources Each endpoint must identify a single connector to use Connectors may use a named Authenticator, which in turn may use a Credentials Store Connector Authenticati ngConnecto r Endpoint Credentials Store

#SummitNow File spring-webscripts-config.xml

#SummitNow Introducing Share OAuth Goal: To make RESTful, OAuth-protected APIs natively and easily accessible through client-side JavaScript in Alfresco Share Just like we can easily access the Alfresco repository For OAuth 1.0 and 2.0 services

#SummitNow Initial Impl - OAuth 1.0 Connector MyDashlet Extras.OAuthHelper Return Web Script Custom Model Token Web Scripts Service Provider HttpOAuthCo nnector

#SummitNow Repository Tier Custom Model Defines a single aspect with a d:content property Aspect is added to the cm:person object, containing serialized JSON data Data contains OAuth token, secret and other optional values Token Web Scripts Get and set OAuth data on the person object MyDashlet Extras.OAuthHelper Return Web Script Custom Model Token Web Scripts HttpOAuthC onnector

#SummitNow Web Tier Return Web Script Provider redirects the user back here with a verification code Responsible for calling out to provider to exchange verification code for token Stores access token and secret using token web scripts Redirects user to their original page MyDashlet Extras.OAuthHelper Return Web Script Custom Model Token Web Scripts HttpOAuthC onnector

#SummitNow Web Tier HttpOAuthConnector Receives requests bound for the service provider, which have been sent via the Share endpoint proxy Access token and secret must be added by the browser via a custom header Secret is used to sign the request but is NOT sent to provider Response is streamed back to the client MyDashlet Extras.OAuthHelper Return Web Script Custom Model Token Web Scripts HttpOAuthC onnector

#SummitNow Connect Flow Return Web Script reads the verifier token, exchanges for access token, stores access token using Token Web Scripts and redirects user to the original page User authorizes application and Provider redirects to Return Web Script Redirect user to Provider Authorization screen for approval Request grant code from Provider

#SummitNow Dashlet Request Flow If API request successful, display the data If unauthorized, display Connect action If token found, make API request via custom Connector If no token found, display Connect action Fetch token from Token Web Scripts

#SummitNow Initial Impl - OAuth 1.0 Connector MyDashlet Extras.OAuthHelper Return Web Script Custom Model Token Web Scripts Service Provider HttpOAuthCo nnector

#SummitNow New Impl - OAuth 2.0 Connector MyDashlet Return Web Script Credentials Store Web Scripts Service Provider Credentia ls Store HttpOAuth 2Connector

#SummitNow Repository Tier OAuth Credentials Store Web Scripts Use the dedicated credentials service (new in Alfresco 4.1) to store tokens on behalf of the user No custom model needed, values are stored encrypted MyDashlet Return Web Script Credential s Store Web Scripts Credent ials Store HttpOAu th2Conn ector

#SummitNow Web Tier Credentials Store Responsible for loading tokens from the repository (using Credentials Store Web Scripts), storing in the user’s session context and saving new values Return Web Script Uses the Credentials Store to save the access token data (no need to manually call repo web scripts) MyDashlet Return Web Script Credential s Store Web Scripts Credent ials Store HttpOAu th2Conn ector

#SummitNow Implementing Integrations Using Share OAuth, we can plug in new integrations using web-tier code/config only Endpoint/connector configuration Web script and/or extensibility module files Client-side code to make the outbound Ajax request and display data

#SummitNow Web Tier Configuration

#SummitNow Client-side

#SummitNow Dashlet Connect Flow Return Web Script reads the verifier token, exchanges for access token, stores access token using Token Web Scripts and redirects user to the original page User authorizes application and Provider redirects to Return Web Script Redirect user to Provider Authorization screen for approval

#SummitNow Dashlet Request Flow If API request successful, display the data If unauthorized, display Connect action Make API request via custom Connector

#SummitNow Example Implementations GitHub Dashlet Chatter Dashlet JavaScript Console

#SummitNow More Implementations Twitter Dashlets Flickr Dashlets LinkedIn Dashlet Yammer Dashlet

#SummitNow Future OAuth 1.0 Support via Credentials Store Requires Grant Token support via a custom web script Deprecate client-side Extras.OAuthHelper class Simplify Twitter, LinkedIn, Flickr and Yammer dashlets

#SummitNow More Information

#SummitNow