sso ⇒ Weavy.plugins.sso

Single sign on authentication. Configure weavy for single sign on then provide your jwt via this plugin to sign in automatically. The weavy.load event waits for sso to complete before it is fired.

Kind: global mixin
See: https://jwt.io/
Properties
NameType
statesso#state
statesstates
Example
var weavy = new Weavy({
    plugins: {
        sso: {
            jwt: "[your JSON web token]"
        }
    }
});

Static members

weavy.defaults : Object

Default plugin options

Kind: static property of sso
Properties
NameTypeDescription
jwtjwt

JSON web token for authentication

Example
Weavy.plugins.sso.defaults = {
    jwt: ANY_JSON_WEB_TOKEN
};

Inner members

sso~states : enum

The authentication states. Available via plugin exports in weavy.plugins.sso.states

Kind: inner enum of sso
Properties
NameTypeDefaultDescription
uninitializedint 0

Authentication has not started

authenticatingint 1

Currently authenticating

authorizedint 2

Authentication process complete and user is authorized

unauthorizedint 3

Authentication process failed and the user is unauthorized