Optional
realtime: RealtimeCreates a new tenant login option.
Returns promise object that is resolved with the details of newly created tenant login option.
Example
const tenantLoginOption: ITenantLoginOption = {
grantType: "PASSWORD",
providerName: "Cumulocity",
type: "BASIC",
userManagementSource: "INTERNAL",
visibleOnLoginPage: true
};
(async () => {
const {data, res} = await tenantLoginOptionsService.create(tenantLoginOption);
})();
ITenantLoginOption object.
Removes tenant's login option.
Returns promise object that is resolved with the IResult of null.
Example
const tenantLoginOptionId: string = 'uniqueTenantLoginOptionId';
(async () => {
const {data, res} = await tenantLoginOptionsService.delete(tenantLoginOptionId);
})();
Tenant's login option's id or tenant's login option object.
Gets the details of login option.
Returns promise object that is resolved with the ITenantLoginOption wrapped by IResult.
Example
const tenantLoginOptionId: string = 'uniqueTenantLoginOptionId';
(async () => {
const {data, res} = await tenantLoginOptionsService.detail(tenantLoginOptionId);
})();
Login option's id or login option object.
Gets the list of tenant's login options filtered by parameters.
Returns promise object that is resolved with the ITenantLoginOption wrapped by IResultList.
Example
const filter: object = {
tenantId: '1111111'
};
(async () => {
const {data, res, paging} = await tenantLoginOptionsService.list(filter);
})();
Object containing filters for querying tenant's login options.
Gets the list of all tenant's login options for current tenant.
Returns promise object that is resolved with the ITenantLoginOption wrapped by IResultList.
Example
(async () => {
const {data, res, paging} = await tenantLoginOptionsService.listForCurrentTenant();
})();
Gets the list of all tenant's login options for management tenant.
Returns promise object that is resolved with the ITenantLoginOption wrapped by IResultList.
Example
(async () => {
const {data, res, paging} = await tenantLoginOptionsService.listForManagement();
})();
Update tenant's login option data if id exists in object, otherwise create new entity.
Returns promise object that is resolved with the saved tenant's login option object.
Example
const tenantLoginOption: ITenantLoginOption = {
grantType: "PASSWORD",
id: "2eff9a0b-e376-4ce8-a0f1-0a07cef8a8a1",
providerName: "Cumulocity",
type: "BASIC",
userManagementSource: "INTERNAL",
visibleOnLoginPage: true
};
(async () => {
const {data, res} = await tenantLoginOptionsService.save(tenantLoginOption);
})();
ITenantLoginOption object.
Updates tenant's login option data.
Returns promise object that is resolved with the saved tenant's login option object.
Example
const tenantLoginOption: ITenantLoginOption = {
grantType: "PASSWORD",
id: "2eff9a0b-e376-4ce8-a0f1-0a07cef8a8a1",
providerName: "Cumulocity",
type: "BASIC",
userManagementSource: "INTERNAL",
visibleOnLoginPage: true
};
(async () => {
const {data, res} = await tenantLoginOptionsService.update(tenantLoginOption);
})();
ITenantLoginOption object.
Description
This service allows to get tenant login options.