whodis-sdk
Version:
A simple sdk for easy, secure authentication with the whodis platform. Setup secure authentication for your app in seconds.
35 lines • 1.37 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WhodisIdentityOrigin = exports.WhodisContactMethodType = void 0;
/**
* a communication channel that can be used for authentication
*/
var WhodisContactMethodType;
(function (WhodisContactMethodType) {
WhodisContactMethodType["PHONE"] = "PHONE";
WhodisContactMethodType["EMAIL"] = "EMAIL";
})(WhodisContactMethodType || (exports.WhodisContactMethodType = WhodisContactMethodType = {}));
/**
* an origin which can report identities
*/
var WhodisIdentityOrigin;
(function (WhodisIdentityOrigin) {
/**
* the openid-connect protocol can report identities to us
*
* specifically
* - upon successfully completing authentication through oidc, the authorized subject's primary key is provided
*/
WhodisIdentityOrigin["OIDC"] = "OIDC";
/**
* the api of whodis can be used by directory-admins to report identities to us
*
* specifically
* - authorized callers may use the whodis api to add identities of the user known by their app
*
* for example
* - you may add the id your app has assigned the user internally, for lookup here
*/
WhodisIdentityOrigin["API"] = "API";
})(WhodisIdentityOrigin || (exports.WhodisIdentityOrigin = WhodisIdentityOrigin = {}));
//# sourceMappingURL=WhodisContactMethod.js.map