Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

keycloak-request-token

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keycloak-request-token

Simple utility to request a token from a Keycloak Server

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Build Status Coverage Status

keycloak-request-token

A simple module to request an Access Token from a Keycloak Server

API Documentation

http://bucharest-gold.github.io/keycloak-request-token/

Example

'use strict';

const tokenRequester = require('keycloak-request-token');

const baseUrl = 'http://127.0.0.1:8080/auth';
const settings = {
    username: 'admin',
    password: 'admi',
    grant_type: 'password',
    client_id: 'admin-cli'
};

tokenRequester(baseUrl, settings)
  .then((token) => {
    console.log(token);
  }).catch((err) => {
    console.log('err', err);
  });

Development & Testing

To run the tests, you'll need to have a keycloak server running. No worries! This is all taken care of for you. Just run ./build/start-server.sh. If you don't already have a server downloaded, this script will download one for you, start it, initialize the admin user, and then restart.

Then just run the tests.

make test

To stop the server, run ./build/stop-server.sh.

Keywords

FAQs

Package last updated on 11 May 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc