<oauth2-scope-selector>
Form element that provides the UI to enter a scope for OAuth 2.0 settings.
<oauth2-scope-selector name="scope" allowed-scopes='["email", "profile"]'></oauth2-scope-selector>
API components
This components is a part of API components ecosystem
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>
In a Polymer 3 element
import {PolymerElement, html} from '@polymer/polymer';
import '@advanced-rest-client/oauth2-scope-selector/oauth2-scope-selector.js';
class SampleElement extends PolymerElement {
static get template() {
return html`
<oauth2-scope-selector></oauth2-scope-selector>
`;
}
}
customElements.define('sample-element', SampleElement);
Installation
git clone https://github.com/advanced-rest-client/oauth2-scope-selector
cd api-url-editor
npm install
npm install -g polymer-cli
Running the demo locally
polymer serve --npm
open http://127.0.0.1:<port>/demo/
Running the tests
polymer test --npm