@salte-auth/okta

A Salte Auth provider for authenticating with Okta!


Keywords
salte-auth, oauth, 2.0, openid, okta, authentication, provider
License
MIT
Install
npm install @salte-auth/okta@3.1.0

Documentation

A Salte Auth provider for authenticating with Okta!

DocsDemo

NPM Version NPM Downloads CI Build Coveralls

semantic-release

Install

$ npm install @salte-auth/okta

Usage

import { SalteAuth } from '@salte-auth/salte-auth';
import { Okta } from '@salte-auth/okta';
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 Okta({
      url: 'https://dev-960892.oktapreview.com',
      clientID: '0oajg1bj8hxM1z7pa0h7'
    })
  ],

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

auth.login('okta');