@advanced-rest-client/oauth2-scope-selector

A selector for the OAuth scope. It provides an UI to enter a scope for the OAuth 2 settings

Usage no npm install needed!

<script type="module">
  import advancedRestClientOauth2ScopeSelector from 'https://cdn.skypack.dev/@advanced-rest-client/oauth2-scope-selector';
</script>

README

Published on NPM

Tests and publishing

<oauth2-scope-selector>

Form element that provides the UI to enter a scope for OAuth 2.0 settings.

<oauth2-scope-selector name="scope" allowedscopes='["email", "profile"]'></oauth2-scope-selector>

Usage

Installation

npm install --save @advanced-rest-client/oauth2-scope-selector

In an html file

<html>
  <head>
    <script type="module">
      import '@advanced-rest-client/oauth2-scope-selector/oauth2-scope-selector.js';
    </script>
  </head>
  <body>
    <oauth2-scope-selector></oauth2-scope-selector>
  </body>
</html>

Development

git clone https://github.com/advanced-rest-client/oauth2-scope-selector
cd oauth2-scope-selector
npm install

Running the demo locally

npm start

Running the tests

npm test