Synology SSO Server. Development Guide



Similar documents
Synology NAS Server Mail Station User Guide

Synology NAS Server Windows ADS FAQ

Synology NAS Server. Group Installation Guide Synology NAS Server Group Installation Guide

TestFlight FAQ Apple Inc.

WiFiSurvey Using AirPort Utility for WiFi Scanning Guide

itunes Connect App Analytics Guide v1

Synology DiskStation

Dell One Identity Cloud Access Manager How to Develop OpenID Connect Apps

Networking & Internet

Dell One Identity Cloud Access Manager How to Configure vworkspace Integration

Dell Spotlight on Active Directory Server Health Wizard Configuration Guide

Dell One Identity Cloud Access Manager SonicWALL Integration Overview

WiFiPerf User Guide 1.5

Self Help Guides. Create a New User in a Domain

Spotlight Management Pack for SCOM

Adeptia Suite 6.2. Application Services Guide. Release Date October 16, 2014

Self Help Guides. Setup Exchange with Outlook

Dell One Identity Cloud Access Manager How to Configure for SSO to SAP NetWeaver using SAML 2.0

INTEGRATION GUIDE. DIGIPASS Authentication for Google Apps using IDENTIKEY Federation Server

CA Nimsoft Service Desk

formerly Help Desk Authority HDAccess Administrator Guide

Apple Certificate Library Functional Specification

Dell One Identity Cloud Access Manager How to Configure Microsoft Office 365

Copy Tool For Dynamics CRM 2013

Dell InTrust Preparing for Auditing Cisco PIX Firewall

Integrating IBM Cognos 8 BI with 3rd Party Auhtentication Proxies

Dell Statistica. Statistica Document Management System (SDMS) Requirements

The LivePerson Tag. Technical Data Sheet. Document Version: 1.0. December 2012

Object Level Authentication

Application Note. Gemalto s SA Server and OpenLDAP

Introduction to Version Control in

Dell InTrust Preparing for Auditing CheckPoint Firewall

New Security Features

Apple Applications > Safari

Instant Messaging Nokia N76-1

Samsung KNOX EMM Authentication Services. SDK Quick Start Guide

Event Kit Programming Guide

Login with Amazon. Developer Guide for Websites

Strong Authentication for Microsoft TS Web / RD Web

ios Team Administration Guide (Legacy)

Fairsail REST API: Guide for Developers

ChangeAuditor 6.0 For Windows File Servers. Event Reference Guide

CORPORATE HEADQUARTERS Elitecore Technologies Ltd. 904 Silicon Tower, Off. C.G. Road, Ahmedabad , INDIA

RSA Two Factor Authentication

Quick Connect Express for Active Directory

Getting Started with Apple Pay on the Authorize.Net Platform

CORPORATE HEADQUARTERS Elitecore Technologies Ltd. 904 Silicon Tower, Off. C.G. Road, Ahmedabad , INDIA

Dell One Identity Cloud Access Manager How To Deploy Cloud Access Manager in a Virtual Private Cloud

Azure Multi-Factor Authentication. KEMP LoadMaster and Azure Multi- Factor Authentication. Technical Note

Strong Authentication for Juniper Networks

BES10 Self-Service. Version: User Guide

Security Analytics Engine 1.0. Help Desk User Guide

INTEGRATION GUIDE. DIGIPASS Authentication for Salesforce using IDENTIKEY Federation Server

Configuring IBM Cognos Controller 8 to use Single Sign- On

Application Note. Intelligent Application Gateway with SA server using AD password and OTP

Adeptia Suite LDAP Integration Guide

IBM WebSphere Application Server

RedBlack CyBake Online Customer Service Desk

Dell Statistica Document Management System (SDMS) Installation Instructions

RSA Two Factor Authentication. Feature Description

Installing the BlackBerry Enterprise Server Management Software on an administrator or remote computer

formerly Help Desk Authority Quest Free Network Tools User Manual

Centrify Mobile Authentication Services for Samsung KNOX

ADS Integration Guide

Strong Authentication for Microsoft SharePoint

4.0. Offline Folder Wizard. User Guide

DualShield SAML & SSO. Integration Guide. Copyright 2011 Deepnet Security Limited. Copyright 2011, Deepnet Security. All Rights Reserved.

Centrify Mobile Authentication Services

SafeNet Authentication Service

Dell Statistica Statistica Enterprise Installation Instructions

SafeNet Cisco AnyConnect Client. Configuration Guide

ChangeAuditor 5.6. For Windows File Servers Event Reference Guide

CYBEROAM WINDOWS DOMAIN CONTROLLER INTEGRATION GUIDE VERSION:

Quest vworkspace Virtual Desktop Extensions for Linux

Social Application Guide

Apple URL Scheme Reference

Application Note. SA Server and ADAM

SAML Authentication with BlackShield Cloud

Application Note Gemalto Access Client for windows smart card and EFS on Microsoft Windows Vista

EVault Endpoint Protection 7.0 Single Sign-On Configuration

Building Secure Applications. James Tedrick

BlackBerry Business Cloud Services. Version: Release Notes

Cloud Identity Management Tool Quick Start Guide

Decommissioning the original Microsoft Exchange

Axway API Gateway. Version 7.4.1

Understanding Enterprise Cloud Governance

Dell InTrust Preparing for Auditing Microsoft SQL Server

Mail Programming Topics

Titanium Mobile: How-To

Virtual Contact Center. Release Notes. Version Revision 1.0

AGREEMENT BETWEEN USER AND Global Clinical Research Management, Inc.

Release Notes. BlackBerry Web Services. Version 12.1

Test Plan Security Assertion Markup Language Protocol Interface BC-AUTH-SAML 1.0

ADDENDUM ThomasNet Mirrored Site Program

HTTP Client Installation Guide Version 9

CA Spectrum and CA Embedded Entitlements Manager

CA Performance Center

Configuring the OAuth 2.0 Authentication module

BlackBerry Enterprise Server Resource Kit BlackBerry Analysis, Monitoring, and Troubleshooting Tools Version: 5.0 Service Pack: 2.

Transcription:

Synology SSO Server Development Guide THIS DOCUMENT CONTAINS PROPRIETARY TECHNICAL INFORMATION WHICH IS THE PROPERTY OF SYNOLOGY INCORPORATED AND SHALL NOT BE REPRODUCED, COPIED, OR USED AS THE BASIS FOR DESIGN, MANUFACTURING, OR SALE OF APPARATUS WITHOUT WRITTEN PERMISSION OF SYNOLOGY INCORPORATED

and other countries. Synology Inc. 2015 Synology Inc. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, mechanical, electronic, photocopying, recording, or otherwise, without prior written permission of Synology Inc., with the following exceptions: Any person is hereby authorized to store documentation on a single computer for personal use only and to print copies of documentation for personal use provided that the documentation contains Synology s copyright notice. The Synology logo is a trademark of Synology Inc. No licenses, express or implied, are granted with respect to any of the technology described in this document. Synology retains all intellectual property rights associated with the technology described in this document. This document is intended to assist application developers to develop applications only for Synology-labelled computers. Every effort has been made to ensure that the information in this document is accurate. Synology is not responsible for typographical errors. Synology Inc. 3F-3, No. 106, Chang-An W. Rd. Taipei 103, Taiwan Synology and the Synology logo are trademarks of Synology Inc., registered in the United States and other countries. Marvell is registered trademarks of Marvell Semiconductor, Inc. or its subsidiaries in the United States and other countries. Other products and company names mentioned herein are trademarks of their respective holders. Even though Synology has reviewed this document, SYNOLOGY MAKES NO WARRANTY OR REPRESENTATION, EITHER EXPRESS OR IMPLIED, WITH RESPECT TO THIS DOCUMENT, ITS QUALITY, ACCURACY, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. AS A RESULT, THIS DOCUMENT IS PROVIDED AS IS, AND YOU, THE READER, ARE ASSUMING THE ENTIRE RISK AS TO ITS QUALITY AND ACCURACY. IN NO EVENT WILL SYNOLOGY BE LIABLE FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES RESULTING FROM ANY DEFECT OR INACCURACY IN THIS DOCUMENT, even if advised of the possibility of such damages. THE WARRANTY AND REMEDIES SET FORTH ABOVE ARE EXCLUSIVE AND IN LIEU OF ALL OTHERS, ORAL OR WRITTEN, EXPRESS OR IMPLIED. No Synology dealer, agent, or employee is authorized to make any modification, extension, or addition to this warranty. Some states do not allow the exclusion or limitation of implied warranties or liability for incidental or consequential damages, so the above limitation or exclusion may not apply to you. This warranty gives you specific legal rights, and you may also have other rights which vary from state to state. Freescale is registered trademarks of Freescale Semiconductor, Inc. or its subsidiaries in the United States

Table of Contents Chapter 1: Introduction Chapter 2: Usage Initialization 5 Configuring Options 5 Authentication 5 Logout 5 Callback of SYNOSSO.init 6 3 Copyright Synology Inc. All Rights Reserved.

Introduction 1Chapter Synology DSM SSO Server is based on Oauth2 protocol. We provide the JavaScript SDK for 3rd party development. SSO Server JavaScript SDK script will be installed automatically after SSO Server installation. DSM JavaScript SDK script location http://dsm_ip_or_hostname:5000/webman/sso/synosso-1.0.0.js 4 Copyright Synology Inc. All Rights Reserved.

Usage 2Chapter Initialization SYNOSSO.init({ oauthserver_url: 'http://10.13.20.131:5000', app_id: '153fcb35b01571b49cb0adca3a4bda40', redirect_uri: 'http://10.13.20.130/relay.html', //redirect url have to be the same as the one registered in SSO server, and can be a plain text html file. callback: authcallback }); Configuring Options Required options The following four options are required. oauthserver_url: The URL of DSM which installed SSO Server. app_id: APP ID registered on DSM SSO Server. redirect_uri: Redirect URI registered on DSM SSO Server. callback: User defined callback for handling loginquery/login response. Optional Options These two directory service related options are used for directory service check. If any one of these options is provided, SSO Server will validate if this directory service is the same as the DSM on which SSO Server is operating. domain_name (optional): SSO client windows AD domain name. E.g., domain_name: "MYDOMAIN.COM" ldap_basedn (optional): SSO client LDAP base DN E.g., ldap_basedn: "dc=myldap,dc=com" Authentication SYNOSSO.login(); This method has no arguments and will call the callback which is registered in SYNOSSO.init after a user logs in successfully. After calling SYNOSSO.login, a login window containing a dialog for SSO will pop out. Logout SYNOSSO.logout(function(){ }); //do something after logout. SYNOSSO.logout has a callback which will be called after user logout from SSO Server. Before a user logs out from your application, call SYNOSSO.logout, and this method will log out this user from SSO Server. 5 Copyright Synology Inc. All Rights Reserved.

SYNOSSO.init must be called before SYNOSSO.logout. SYNOSSO.logout only logs out the user from SSO Server and will not affect login status of the user in others applications. Callback of SYNOSSO.init Response If the user already login SSO Server: response:{ } status: 'login', access_token: 'ABCDE' If the user didn t login SSO Server: response:{ } status: 'not_login' If any unexpected error occurred: response:{ } status: 'ERR_STRING' The variable ERR_STRING may be replaced by the error codes listed in the table below: No. Error Code Description 1 server_error SSO server error. 2 parameter_error Parameter error when SYNOSSO.init. 3 invalid_app_id APP_ID error. 4 invalid_redirect_uri Redirect URI error. 5 invalid_directory_service Different directory service between SYNOSSO.init and DSM SSO Server. 6 invalid_token Invalid SSO access token. 7 unknown_error Other unexpected errors. 6 Chapter 2: Usage Copyright Synology Inc. All Rights Reserved.