Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.74 KB

README.md

File metadata and controls

36 lines (26 loc) · 1.74 KB

OneSky SSO

SSO allows your users to login through your own authentication system. You need to enable Single Sign On and configure sign-in type in OneSky Web Platform first.


Generating the URL via API

Instruction: http://developer.oneskyapp.com/api/#/sso/get-link


Generate SSO Data yourself

Parameters

  • time (required) — Current Unix timestamp (UTC) in integer form. For checking whether the request has expired.
  • id (required) — The unique ID of the user in your application. Can be of any type. We recommend using email address.
  • name (required) - The name of your user to be displayed in OneSky. Free-style.
  • data (required) - The SSO data to ensure your request is valid.
  • locale (optional) - The locale you want to be accessible by this user.
  • project (optional) (requires locale) - Project IDs you want to be accessible by this user. Comma separated. If it is not specified, we will add this user as a collaborator to all your projects containing the specified locale.

Generating data

data = MD5( CONCATENATE( YOUR_SSO_SALT, time, id, project, locale ) ); // Beware of the order of strings

Example

https://translate.oneskyapp.com?data=SSO_DATA&[email protected]&time=1300000000&name=Peter&locale=fr_FR&project=1,2,3

Sample usage

  1. Create a link in your site.
    <a href="/help-me-translate">Help translate</a>.
    
  2. Use your own user session to generate the SSO link and redirect the user to the generated link.