/oauth_api_jwt

Demo of securing APIs with JWT

Primary LanguageGoMIT LicenseMIT

Introduction

Demonstration of securing APIs in Golang with JWT frameworks

Frameworks utilised

To run the Sample

go build main.go
./main

Using PostMan to get Token

screen shot 2017-12-28 at 12 54 09

Getting the Product List with a signed Bearer Token

screen shot 2017-12-28 at 12 56 35

Auth0 Implementation

Refer to branch: auth0-implementation to get the code, secrets and ids are avaiable on request for the team

Start page

screen shot 2017-12-29 at 11 52 38

Authentication

screen shot 2017-12-29 at 11 52 52

Signed In

screen shot 2017-12-29 at 11 53 10

JWT Inspection

ID Token jwt2

Access Token jwt1

Proxy Inspection

screen shot 2017-12-29 at 13 09 14

Logging Console output for Requests

screen shot 2017-12-29 at 12 03 06

Local browser storage variables

screen shot 2017-12-29 at 12 02 00