Package Exports
- @conjoon/extjs-app-imapuser
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@conjoon/extjs-app-imapuser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@conjoon/extjs-app-imapuser
conjoon application module for providing user authentication against an imap server.
Installation
npm install --save-dev @conjoon/extjs-app-imapuserIf you want to develop with this package, run the build:dev-script afterwards:
npm run build:devTesting environment will then be available via
npm testUsage
When using this package without a backend implementation, make sure your app uses the extjs-app-imapusersim package of the conjoon project.
Available API Implementations
A simplistic RESTful PHP backend that can be used with single sign-ons to existing IMAP Servers can be found at php-cn_imapuser.
Required API
Any developer striving for an own backend implementation should make sure to provide the following services:
cn_imapuser/auth| POST- Parameters:
{username}(required): The username of the IMAP Account for which the user should be authenticated;{password}(required): The password of this user;
- Authenticates a user with the specified
usernameandpassword. If successful,extjs-app-imapuserwill make sure that the current user is a valid user for the lifetime of the application. - Success Status / Response: Status 200
{success : true, data : {...}]The response should return the user's data - Failure Status / Response: Status 401
{success : false}
- Parameters:
Dev
Naming
The following naming conventions apply:
Namespace
conjoon.cn_imapuser.*
Package name
extjs-app-imapuser
Shorthand to be used with providing aliases
cn_imapuser
Example:
Class conjoon.cn_imapuser.view.authentication.AuthWindow has the alias widget.cn_imapuser-authwindow