
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@salte-io/salte-auth
Advanced tools
This package has been deprecated in favor of @salte-auth/salte-auth.
If a version isn't specified that means we test on the latest and greatest, however most versions of that browser should work.
Here's a list of well known ES6 Promise implementations developed by the community!
Any other ES6 Promise implementation will work as well!
You can install this package either with npm
or with bower
.
$ npm install @salte-io/salte-auth
Then add a <script>
to your index.html:
<script src="/node_modules/@salte-io/dist/salte-auth.js"></script>
Or require('@salte-io/salte-auth')
from your code.
$ bower install salte-io/salte-auth
Then add a <script>
to your index.html:
<script src="/bower_components/salte-auth/dist/salte-auth.js"></script>
We also support HTML Imports:
<link rel="import" href="/bower_components/salte-auth/salte-auth.html">
import { SalteAuth } from '@salte-io/salte-auth';
// Configure SalteAuth with Auth0's url and client id.
const auth = new SalteAuth({
providerUrl: 'https://salte-alpha.auth0.com',
responseType: 'id_token',
redirectUrl: location.origin,
clientId: 'mM6h2LHJikwdbkvdoiyE8kHhL7gcV8Wb',
scope: 'openid',
routes: [
'http://localhost:8080/account'
],
endpoints: [
'https://jsonplaceholder.typicode.com/posts/1'
],
provider: 'auth0'
});
// Display an iframe to the user that allows them to login
auth.loginWithIframe();
<!DOCTYPE html>
<html>
<head>
<script src="/node_modules/@salte-io/salte-auth/dist/salte-auth.js"></script>
<script>
const auth = new salte.SalteAuth({
providerUrl: 'https://salte-alpha.auth0.com',
responseType: 'id_token',
redirectUrl: location.origin,
clientId: 'mM6h2LHJikwdbkvdoiyE8kHhL7gcV8Wb',
scope: 'openid',
routes: [
'http://localhost:8080/account'
],
endpoints: [
'https://jsonplaceholder.typicode.com/posts/1'
],
provider: 'auth0',
});
auth.loginWithIframe();
</script>
</head>
<body>
...
</body>
</html>
These are issues that we know about, but don't have a clear fix for!
There are currently no known issues, thanks for checking!
Debug logging can be enabled by setting a localStorage
variable of debug
to @salte-io/salte-auth*
.
Click here to view the documentation!
Use private or undocumented methods at your own risk, as they will not require a major version bump when breaking changes are made!
FAQs
OAuth 2.0 for the masses!
We found that @salte-io/salte-auth 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
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.