Giter VIP home page Giter VIP logo

cobrowse-jwt-generator's Introduction

Cobrowse JWT Generator

Official Doc

Documentation

Video

Tutorial video by Cobrowse.io

Clone the repo

$ git clone https://github.com/hrz8/cobrowse-jwt-generator.git
$ cd cobrowse-jwt-generator
$ yarn
# OR
$ npm install

Generate Private Key

$ openssl genrsa -des3 -out private.pem 2048
$ ๐Ÿ”‘ [type new passphrase for your private RSA key] <enter>
$ ๐Ÿ”‘ [TWICE]

Generate Public Key

$ openssl rsa -in private.pem -outform PEM -pubout -out public.pem
$ ๐Ÿ”‘ [insert your passphrase] <enter>
$ cat public.pem

*NOTE: Copy the whole Public Key given in the terminal (Public key shoould be something like this below - this is dummy)

-----BEGIN PUBLIC KEY-----
UM16CdNNcdU+N0u9IiEpvPWig5ztMcunQoFtbogeKRoHS0R+1bm3h7T28qEcu1A0
eEPORasf8tmK5RY3dVVmfKdBlCMYXNpGG1S1NcGhlGAgNR4h1LUTnz+aNffvPcly
vdtjGAvgEiCDuTM7phYCukj8U0ZnZrfFcYPbU/jqr8dRGS7xWyitUMyw6s7z+SLz
5HRmE3toOSWaznZC6/bhIOXJuvBGSeolap2CPDGUG3Edsl6UEsGRhXTZLXLqAPH3
4EboxKIYpK/nReLpG6zGFQ0jj0qAlrRtKhcibXz3RoPqnHrYWyTsQJXvFbJDzwS8
ENSLscZRzrojskOIx0pBqwGytnOVHXt+D3UniMa0MsdjnxPTke7ka+hmnAAeKlWt
nOVhpP3x
-----END PUBLIC KEY-----

Put Public Key on Cobrowse Dashboard

Generate JWT Token

$ node index.js [passphrase] [license_key] [email] [your name]

This will give you JWT Token, something like this

eyJhbGciOiJSUzI1NiIsIR5cCI6IkpXVC.eyJpYXQiOjE2MjEyNTYwOTI5NTksImV4cCI6NDEwMjMzMzIwMDAwMCwiYXVkIjoiaHR0cHM6Ly9jb2Jyb3dzZS5pbyIsImlzcyI6jFCV0dWTEdsOXlDWFlBIiwic3ViIjoiaGlyemludXJmYWtocmlhbkBnbWFpbC5jb20iLCJkaXNwbGF5TmFtZSI6IkhpcnppIE51cmZha2hyaWFu.u1n1gsSbua96OEgU3cHC8vYGfHeMnsR1vtE1f1OOdB2jw4V4slcKT5a9cvhV0LVSkbfFs8ZHSJjVE_kvzJ-BjNJvniOYtirLNGiPFtB6ePsRJ-_UVy_D8dmOxeTXTckUpyb2kwZaZTA-kBsD5g8_4zDHeRBhIkWLnrP49hlHy8F_BcbuQmle59nHiw1KroRO4Q6G95yjMtBSHIAEclpXlfru6t4G0r5jBeNDmlLrLrqh2tIy6cfwShFWWSPwlwTtO8ijVazSoiXjFoP0sVyMLHC7mhjO8KcuyjeWZrv1V3INL5yChxx9M1vmnvjSl4tM-r6bfAnjnXmgZdbcxG

TADA!!!

  • Now with this token you can embed the cobrowse in your <iframe> with this query params
?token=eyJh...dCI6

cobrowse-jwt-generator's People

Contributors

hrz8 avatar

Watchers

 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.