Skip to content

impronunciable/hackdash-api

develop
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

HackDash API

API for HackDash.org. Join the discussion on Slack

Requirements

  • Docker
  • Docker compose

Installation

$ docker-compose build
$ docker-compose up

How to get a token and call the api

Go to the Auth0 Playground and replace the domain and the client_id for the same used in this api. Make sure you are dumping the token to the console in the callback, it should look like this:

var domain = '{tenant_name}.auth0.com';
​
var clientID = '...client_id...'; 
​
var lock = new Auth0Lock(clientID, domain);
lock.show({
  authParams: { scope: 'openid first_name family_name email picture' },
}, function (err, profile, token) {
  console.log(err, token);
});

To call the API, copy the token and add the authorization header to the request:

Authorization: Bearer ...token...

About

HackDash API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published