boundlessgeo/bcs-wrapper

Name: bcs-wrapper

Owner: Boundless

Description: null

Created: 2016-09-01 21:21:13.0

Updated: 2016-09-27 14:17:12.0

Pushed: 2016-09-27 15:31:24.0

Homepage: null

Size: 12329

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

bcs-wrapper

auth0.properties file should go in the main/resources folder:

auth0.domain=boundlessgeo-dev.auth0.com
auth0.issuer: https://boundlessgeo-dev.auth0.com/
auth0.clientId=#############################
auth0.clientSecret=#########################
auth0.securedRoute=UNUSED
auth0.base64EncodedSecret: true
auth0.authorityStrategy: ROLES
auth0.defaultAuth0ApiSecurityEnabled: false
auth0.signingAlgorithm: HS256

To get the token from Auth0 post the following to https://boundlessgeo-dev.auth0.com/oauth/ro

{
“client_id”: “EJ0wxCSQdg2E0jNhukGqYKDSJjSyY4zj”,
“username”: “#######“,
“password”: “######“,
“connection”: “Username-Password-Authentication”,
“grant_type”: “password”,
“scope”:“openid name email roles”
}

To call the secure wrapper services, put the token in the header like this:
authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiZmFzZGZhc2RAYXNkZi5zcyIsImVtYWlsIjoiZmFzZGZhc2RAYXNkZi5zcyIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJyb2xlcyI6WyJST0xFX1VTRVIiLCJST0xFX0FETUlOIl0sImlzcyI6Imh0dHBzOi8vYm91bmRsZXNzZ2VvLWRldi5hdXRoMC5jb20vIiwic3ViIjoiYXV0aDB8NTc2N2VmNmRiYTlmYjY1ODU1MTRkMGQ5IiwiYXVkIjoiRUowd3hDU1FkZzJFMGpOaHVrR3FZS0RTSmpTeVk0emoiLCJleHAiOjE0NzQ5ODIyNDcsImlhdCI6MTQ3NDk0NjI0N30.YPmrlODXPgakZilh49KFsiEG58uAxRCaGh9ohsWj6Kc

To test the security, use the main branch and call:
http://localhost:3001/secured/ping
vs.
http://localhost:3001/pong


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.