Skip to content

alex-fusionauth/fusionauth-quickstart-golang-web

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Flask Application

This repo holds an example Go application that uses FusionAuth as the identity provider. This application will use an OAuth Authorization Code Grant workflow to log a user in and get them access and refresh tokens.

This application was built by following the Golang Quickstart.

Project Contents

The docker-compose.yml file and the kickstart directory are used to start and configure a local FusionAuth server.

The /complete-application directory contains a fully working version of the application.

Project Dependencies

  • Docker, for running FusionAuth
  • Go 1.16 or later, for running the Changebank Go application

Running FusionAuth

To run FusionAuth, just stand up the docker containers using docker-compose.

docker-compose up

This will start a PostgreSQL database, and Elastic service, and the FusionAuth server.

Running the Example App

To run the application, first go into the project directory

cd complete-application

Get your dependencies and create a go.sum file.

go mod tidy

Then use the go command to start up the application.

go run main.go

Visit the local webserver at http://localhost:8080/ and sign in using the credentials:

About

Quickstart example Go application integrated with FusionAuth

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 54.9%
  • HTML 31.5%
  • CSS 13.6%