auth0

package module
v0.0.0-...-e1907b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2018 License: MIT Imports: 5 Imported by: 4

README

auth0

Library written in Go for interacting with auth0

Technical Specifications

Platforms Supported

MacOS, Windows, and Linux

Contributing code

Read this article and follow the steps they outline: http://scottchacon.com/2011/08/31/github-flow.html

All PRs should be signed off by a member of the team before merging.

Installing dependencies

We use dep for dependency management. To install dependencies:

Generating Fakes

We use https://github.com/maxbrunsfeld/counterfeiter to generate fakes (aka mocks). To regenarate a fake after an interface change:

  • Install counterfeiter. See their github repo for install instructions.
  • In the root of the project run go generate

Team

  • Tim Sublette
  • Ryan Walls
  • Chad Queen
  • Pete Krull
  • Alex Drinkwater

Original release

April 2017

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenFetcher

type TokenFetcher interface {
	NewToken(audience string) (string, error)
	Token(audience string) (string, error)
}

TokenFetcher implementers can fetch an auth0 token.

func NewTokenFetcher

func NewTokenFetcher(httpClient *http.Client, tokenURL, clientID, clientSecret string) TokenFetcher

NewTokenFetcher creates a tokenFetcher that can get an access token for a client_credentials grant from Auth0.

The 3DSIM prod and gov token endpoint is: https://3dsim.auth0.com/oauth/token The 3DSIM qa token endpoint is: https://3dsim-qa.auth0.com/oauth/token

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL