ABasicApplication
Subclass for any Application that authenticates with a static credential.
import ABasicApplication from '@orchesty/nodejs-sdk/dist/lib/Authorization/Type/Basic/ABasicApplication';
Inheritance #
AApplication -> ABasicApplication
Methods you implement #
Inherited from AApplication: getName, getPublicName, getDescription, getFormStack, getRequestDto.
ABasicApplication itself adds no new abstract methods. The abstraction's role is to mark the auth flavour for the platform and to declare the concrete IBasicApplication interface.
Conventions #
- Read credentials from
install.getSettings()[CoreFormsEnum.AUTHORIZATION_FORM]. - Declare auth fields in a form keyed by
CoreFormsEnum.AUTHORIZATION_FORMso the Admin UI surfaces them in the right tab.
Example #
See Development: Basic Application for a complete HubspotApplication.
See also #
- AOAuth2Application
- CoreFormsEnum
- PHP equivalent:
BasicApplicationAbstract