https://github.com/masterpointio/fusionauth-golang-client-example
An Example of the FusionAuth Golang Client Library
https://github.com/masterpointio/fusionauth-golang-client-example
Last synced: 11 months ago
JSON representation
An Example of the FusionAuth Golang Client Library
- Host: GitHub
- URL: https://github.com/masterpointio/fusionauth-golang-client-example
- Owner: masterpointio
- Created: 2020-05-17T18:11:37.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-11T22:21:48.000Z (about 6 years ago)
- Last Synced: 2025-07-17T15:58:38.525Z (11 months ago)
- Language: Go
- Homepage:
- Size: 6.96 MB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FusionAuth Golang Client Example
This is an example of using [FusionAuth's Golang client library](https://github.com/FusionAuth/go-client).
## Setup Intructions
1. Go through the [FusionAuth 5 minute setup](https://fusionauth.io/docs/v1/tech/5-minute-setup-guide) to get your FusionAuth server running locally.
1. Create a `.env` file at the root of the directory and fill with the following values:
1. `FA_CLIENT_ID`
1. `FA_CLIENT_SECRET`
1. `FA_API_KEY`
1. Create a "Golang client example" application, copy the 'Client ID' and 'Client Secret' values to your `.env` file.
1. Create an FusionAuth API Key and copy the value to your `.env` file.
1. Run `go run .` and navigate to `localhost:8080` in your browser to test out the application.