@salte-auth/cognito

WebJar for @salte-auth/cognito

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

salte-auth__cognito
Last Version

Last Version

1.0.0-rc.1
Release Date

Release Date

Type

Type

jar
Description

Description

@salte-auth/cognito
WebJar for @salte-auth/cognito
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/salte-auth/cognito

Download salte-auth__cognito

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/salte-auth__cognito/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>salte-auth__cognito</artifactId>
    <version>1.0.0-rc.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/salte-auth__cognito/
implementation 'org.webjars.npm:salte-auth__cognito:1.0.0-rc.1'
// https://jarcasting.com/artifacts/org.webjars.npm/salte-auth__cognito/
implementation ("org.webjars.npm:salte-auth__cognito:1.0.0-rc.1")
'org.webjars.npm:salte-auth__cognito:jar:1.0.0-rc.1'
<dependency org="org.webjars.npm" name="salte-auth__cognito" rev="1.0.0-rc.1">
  <artifact name="salte-auth__cognito" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='salte-auth__cognito', version='1.0.0-rc.1')
)
libraryDependencies += "org.webjars.npm" % "salte-auth__cognito" % "1.0.0-rc.1"
[org.webjars.npm/salte-auth__cognito "1.0.0-rc.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : salte-auth__salte-auth jar [3.0.0-rc.4,4)

Project Modules

There are no modules declared in this project.

A Salte Auth provider for authenticating with Amazon's Cognito!

DocsDemo

NPM Version NPM Downloads Travis Coveralls

semantic-release

Install

$ npm install @salte-auth/cognito

Usage

import { SalteAuth } from '@salte-auth/salte-auth';
import { Cognito } from '@salte-auth/cognito';
import { Redirect } from '@salte-auth/redirect';

/* 
 * Feel free to try out Salte Auth with this configuration!
 * 
 * It should work with the following domains:
 * - glitch.com
 * - localhost:8081
 */
const auth = new SalteAuth({
  providers: [
    new Cognito({
      responseType: 'token',
      url: 'https://salte-os.auth.us-east-1.amazoncognito.com',
      clientID: '5v4dilrda9p8cfo74gfvrc9hd4'
    })
  ],

  handlers: [
    new Redirect({
      default: true
    })
  ]
});

auth.login('cognito');
org.webjars.npm

Salte Auth

Authentication for the modern web!

Versions

Version
1.0.0-rc.1