ibm-verify-sdk
TypeScript icon, indicating that this package has built-in type declarations

2.0.9 • Public • Published

IBM Security Verify SDK for JavaScript

Type npm NPM

The purpose of the Javascript client library is to enable a developer to create web based applications that enhance the user experience with IBM Security Verify. IBM Security Verify SDK for JavaScript currently supports the following grant types:

  • Authorization Code Flow
    • The most commonly used flow for clients that can securely maintain a client secret such as web applications and native mobile applications as the Access Token is passed directly to the web server hosting the app, without going through the end user's web browser which can expose a risk.
  • Resource owner password credentials (ROPC)
    • In this flow the user's username and password are excahnged for an access token. This grant type can be enabled, but use it only if no other flows are available.
  • Device Flow
    • The device flow enables devices such as Smart TVs that have limited or no browser capabilities to obtain an access token. The device flow still requires browser interaction during authentication.
  • Implicit Flow
    • Implicit flow is handled purely client-side where the users application might not have a server to store secrets. An example would be a single page application. This flow should only be recommended in this type of scenario

Prerequisites

Important both of the following items are required to enable the use of the IBM Verify SDK.

Getting Started

After configuring your Tenant and your application on IBM Security Verify, you can install the IBM Security Verify SDK for JavaScript:

npm install ibm-verify-sdk

Referencing the sdk in your application:

var {OAuthContext, AuthenticatorContext} = require('ibm-verify-sdk');
var authClient = new OAuthContext(/*config*/);

Configuration Settings

Configuring your application for authentication / authorization transactions using Single Sign On. Initial configuration to kick off your authentication flow with IBM Security Verify Authorization server.

Examples on how to configure your oidc applicaiton can be found on the IBM Security Identity and Access: Developer Portal site. Configuring your application.

OAuthContext

The OAuthContext object represents the interactions between the relying party and the IBM Security Verify authorization server to acquire access tokens which enable the application access to protected resources. Additional information about OAuthContext

License

The MIT License (MIT)

Copyright (c) 2019, 2023 - IBM Corp.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Readme

Keywords

none

Package Sidebar

Install

npm i ibm-verify-sdk

Weekly Downloads

329

Version

2.0.9

License

MIT

Unpacked Size

146 kB

Total Files

55

Last publish

Collaborators

  • trumanski
  • konstantin.trofimov
  • alandpnpm
  • chageman
  • raghuramkokalla
  • ibm-security-verify