Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add courtbook security #8

Open
ashlux opened this issue Feb 10, 2017 · 0 comments
Open

Add courtbook security #8

ashlux opened this issue Feb 10, 2017 · 0 comments

Comments

@ashlux
Copy link
Member

ashlux commented Feb 10, 2017

Courtbot UI OAuth with curl:

The endpoints are secured with OAuth2 so you’ll need to get a bearer token first. Example using curl:

# Get the token
curl --request POST \
  --url https://ashlux.auth0.com/oauth/token \
  --header 'content-type: application/json' \
  --data '{"client_id":"${CLIENT_ID}","client_secret":"${CLIENT_SECRET}","audience":"https://ashlux.auth0.com/api/v2/","grant_type":"client_credentials"}'

# Use the token
curl --request GET \
  --url https://agile-tundra-30598.herokuapp.com/rest/v1/... \
  --header 'authorization: Bearer ${BEARER_TOKEN}'  

DM ashlux for secrets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant