Authentication
Authentication with OneID SSO SDK
OneID currently uses a Single Sign On (SSO) technique for authentication. You may use the OneID SDK to authenticate users, check authentication status, retrieve their OneID profile, and log them out. The various methods provided by OneID SDK to carry out these functionalities are below:
Sign in with OneID popup
When you use the handleAuth()
method, a window will pop up which performs the authentication before returning you to the application.
The handleAuth()
method is as follows:
This function returns a user
object and a token
as an object.
user
Object
The user object contains the _id
, email
, oneId
(the user's OneID ID), profile
(the user's OneID profile object), and username
.
token
String
The authenticated string assign to each user for signing requests made to the OneID API
Last updated