The top level container for Single Sign On
import { SingleSignOn } from '@dragonchain-dev/single-sign-on-component';
<SingleSignOn source="den" history={history} login="http://localhost:3000/login/">
...
</SingleSignOn>
source string
Short name of Application using SSO
One of
academy
console
den
eternal
history object
React browser history object
group string
Restricts access to private routes by group. Applies globally.
Example
provablecontest
login string
Path to single-sign-on login screen
Example
https://account.dragonchain.com/login/
callback function
Optional: Callback function to be executed after a user session is established
Returns:
isAuthenticated boolean
redirect string
Optional: Application redirect path after successful login
Example
https://den.dragonchain.com/l/