Coder Social home page Coder Social logo

robrogers3 / jwt-generate Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 0.0 37 KB

Scripts to mint JSON web tokens in PHP, Java, Python, and Ruby, Node JS

License: MIT License

Java 54.40% PHP 10.22% Python 11.79% Ruby 12.98% JavaScript 10.61%
jwt jwt-tokens jsonwebtoken

jwt-generate's Introduction

JSON Web Token Generation Scripts

This repositoriy includes sample programs showing how to mint (create) JSON Web Tokens (JWTs) in:

About the Scripts

After you clone this repository, select the sub directory that references your language of choice.

Each sub directory has language specific installation and usage instructions in the related README file.

About JSON Web Tokens

JWTS are an industry standard, and the basic authentication approach used by Yodlee APIs. JWTs are a convenient alternative to SAML authentication used by large financial institutions.

Where to find more info on JWTs

The website jwt.io has much useful information. It has a debugger, allowing you to paste in a token and your key. It will decode it, or issue an error, allowing you to confirm that your code works. The site also has many open source libraries for token processing.

JWTs come in two varieties: app tokens, and user tokens. App tokens have the "issuer id" value from your developer dashboard. This identifies you, the app developer (essentially, this is an application key).

The User token has all the same info as an app token, and also one extra field, the subject. The subject represents the specific end user you are working with. In the developer portal, subjects are identified by 20-character unique strings that you (the developer) assign to keep track of your users. You can see a list of 5 predefined test users in your developer account dashboard. They have this general appearance: "sbMem5c758c82bb1d12". Outside the developer portal, your app can use any scheme you find convenient to create and assign unique ids to your end users. They can be from 3 to 150 characters in length.

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.