![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@advanced-rest-client/auth-methods
Advanced tools
A set of elements that contains an UI to create different authorization headers like Basic, OAuth etc
This project is deprecated. Please use authorization-method instead.
A set of elements that contains an UI to create different authorization headers like Basic, OAuth etc
This version only works with AMF model version 2 (AMF parser >= 4.0.0).
For compatibility with previous model version use 3.x.x
version of the component.
npm install --save @advanced-rest-client/auth-methods
<html>
<head>
<script type="module">
import '@advanced-rest-client/auth-methods/auth-methods.js';
</script>
</head>
<body>
<auth-method-basic></auth-method-basic>
<auth-method-digest></auth-method-digest>
<auth-method-ntlm></auth-method-ntlm>
<auth-method-oauth1></auth-method-oauth1>
<auth-method-oauth2></auth-method-oauth2>
<auth-method-custom></auth-method-custom>
</body>
</html>
import { LitElement, html } from 'lit-element';
import '@advanced-rest-client/auth-methods/auth-methods.js';
class SampleElement extends PolymerElement {
connectedCallback() {
super.connectedCallback();
this.addEventListener('auth-settings-changed', this._authChanged);
}
render() {
return html`
<auth-method-basic></auth-method-basic>
<auth-method-digest></auth-method-digest>
<auth-method-ntlm></auth-method-ntlm>
<auth-method-oauth1></auth-method-oauth1>
<auth-method-oauth2></auth-method-oauth2>
<auth-method-custom></auth-method-custom>
`;
}
_authChanged(e) {
console.log('current authorization settings', e.detail);
}
}
customElements.define('sample-element', SampleElement);
When the user changes any of the editors it dispatches bubbling auth-settings-changed
custom event.
The events has the following properties set on the detail object:
settings
- Object, depends on the panel. Each panel has it's own configurationtype
- String, name of the configuration - corresponds to authentication methodvalid
- Boolean, whether or not the current values are valid for given type.git clone https://github.com/advanced-rest-client/auth-methods
cd auth-methods
npm install
npm start
npm test
This components is a part of API components ecosystem
Use the scripts below to include dependencies into the web page.
OAuth 1
<script src="node_modules/cryptojslib/components/core.js"></script>
<script src="node_modules/cryptojslib/rollups/sha1.js"></script>
<script src="node_modules/cryptojslib/components/enc-base64-min.js"></script>
<script src="node_modules/cryptojslib/rollups/md5.js"></script>
<script src="node_modules/cryptojslib/rollups/hmac-sha1.js"></script>
<script src="node_modules/jsrsasign/lib/jsrsasign-rsa-min.js"></script>
Digest
<script src="node_modules/cryptojslib/rollups/md5.js"></script>
The required modules are installed with this element.
FAQs
A set of elements that contains an UI to create different authorization headers like Basic, OAuth etc
The npm package @advanced-rest-client/auth-methods receives a total of 4 weekly downloads. As such, @advanced-rest-client/auth-methods popularity was classified as not popular.
We found that @advanced-rest-client/auth-methods demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.