GithubHelp home page GithubHelp logo

isabella232 / keycloak-request-token Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lholmquist/keycloak-request-token

0.0 0.0 0.0 466 KB

License: Apache License 2.0

Makefile 2.91% Shell 22.70% JavaScript 74.39%

keycloak-request-token's Introduction

keycloak-request-token

Coverage Status Build Status Known Vulnerabilities dependencies Status

NPM

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

Project Info
License: Apache-2.0
Build: make
Documentation: https://www.keycloak.org/keycloak-request-token
Issue tracker: https://github.com/keycloak/keycloak-request-token/issues
Engines: Node.js 4.x, 6.x, 8.x

Installation

npm install keycloak-request-token -S

Usage

'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);
  });

Contributing

Please read the contributing guide

Reporting security vulnerabilities

If you've found a security vulnerability, please look at the instructions on how to properly report it

keycloak-request-token's People

Contributors

helio-frota avatar lholmquist avatar majorbreakfast avatar stianst avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.