@api-components/oauth2-scope-selector

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

Usage no npm install needed!

<script type="module">
  import apiComponentsOauth2ScopeSelector from 'https://cdn.skypack.dev/@api-components/oauth2-scope-selector';
</script>

README

Published on NPM

Build Status

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

Deveopment

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

API components

This components is a part of API components ecosystem