JSPM

@conjoon/extjs-app-imapuser

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q40376F
  • License MIT

Sencha ExtJS NPM package for authentication against IMAP servers.

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-imapuser

If you want to develop with this package, run the build:dev-script afterwards:

npm run build:dev

Testing environment will then be available via

npm test

Usage

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 username and password. If successful, extjs-app-imapuser will 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}

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