@advanced-rest-client/authorization-data-saverdeprecated

An element responsible for applying authorization data to the request and requesting auth data from the user

Usage no npm install needed!

<script type="module">
  import advancedRestClientAuthorizationDataSaver from 'https://cdn.skypack.dev/@advanced-rest-client/authorization-data-saver';
</script>

README

Published on NPM

Build Status

Published on webcomponents.org

<authorization-data-saver>

An element responsible for applying authorization data to the request and requesting auth data from the user.

It dispatches resend-auth-request custom event after the user accept dialog with data. The handler should send the request again with updated data.

Usage

Installation

npm install --save @advanced-rest-client/authorization-data-saver

In a LitElement

import { LitElement, html } from 'lit-element';
import '@advanced-rest-client/authorization-data-saver/authorization-data-saver.js';
import '@advanced-rest-client/arc-models/auth-data-model.js';

class SampleElement extends LitElement {
  render() {
    return html`
    <auth-data-model></auth-data-model>
    <authorization-data-saver></authorization-data-saver>
    `;
  }
}
customElements.define('sample-element', SampleElement);

This element requires the auth-data-model peer element to be present in the DOM.

Development

git clone https://github.com/advanced-rest-client/authorization-data-saver
cd authorization-data-saver
npm install

Running the demo locally

npm start

Running the tests

npm test

API components

This components is a part of API components ecosystem