This package has been deprecated

Author message:

This component is deprecated

@advanced-rest-client/auth-dialogs
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

Published on NPM

Build Status

Published on webcomponents.org

<auth-dialogs>

Authorization dialogs to provide client credentials for Basic and NTLM authorization schemes. Used primarily in Advanced REST Client.

Usage

Installation

npm install --save @advanced-rest-client/auth-dialogs

In a LitElement

import { LitElement, html } from 'lit-element';
import '@advanced-rest-client/auth-dialogs/auth-dialogs.js';

class SampleElement extends LitElement {
  render() {
    return html`
    <auth-dialog-basic @auth-dialog-closed="${this.onAuthData}"></auth-dialog-basic>
    <auth-dialog-ntlm @auth-dialog-closed="${this.onAuthData}"></auth-dialog-ntlm>
    `;
  }

  onAuthData(e) {
    if (!e.detail.cancelled) {
      console.log(e.detail.value);
    }
  }

  connectedCallback() {
    super.connectedCallback();
    const basic = this.shadowRoot.querySelector('auth-dialog-basic');
    basic.opened = true;
  }
}
customElements.define('sample-element', SampleElement);

Development

git clone https://github.com/advanced-rest-client/auth-dialogs
cd auth-dialogs
npm install

Running the demo locally

npm start

Running the tests

npm test

API components

This components is a part of API components ecosystem

Dependencies (4)

Dev Dependencies (16)

Package Sidebar

Install

npm i @advanced-rest-client/auth-dialogs

Weekly Downloads

2

Version

3.0.0

License

Apache-2.0

Unpacked Size

47.8 kB

Total Files

18

Last publish

Collaborators

  • carowright
  • jarrodek
  • twoplustwoone
  • lbauret