identityprovider

command
v0.0.0-...-e5e979d Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Unlicense Imports: 3 Imported by: 0

README

Identity Provider

HMAC signed tokens

For testing JWT based authentication and authorisation go run main.go can be used to generate a token with with sample claims:

{
    "name": "Go Invoicer",
    "admin": true,
    "sub": "f8c39a31-9ced-4761-8a33-b9c628a67510"
}

together with HMACKeyFunc ../rest/auth.go that verifies the token.

Identity Provider Service

This MVP uses FusionAuth to provide an external service for user identity handling and token signing.

To launch the service follow these steps:

  1. make identityprovider-up
  2. Go to http://localhost:9011/ and complete the setup-wizard.
  3. Create API key named "Invoice MVP" at http://localhost:9011/admin/api/
  4. Copy the API key id.
  5. Edit the makefile and replace the exported API_KEY with key from step 4.
  6. Bootstrap Identity Provider config by running through the makefile targets in the "Auth Bootstrapping" section.
  7. Finally: run make test to execute unit & integration tests.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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