Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

FusionAuth/fusionauth-example-go

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Archived

A new version of this repo is available here: Go Resource Server with FusionAuth.

The Example For using FusionAuth and Golang

Simple demo for using FusionAuth with Golang.

You can view the corresponding blog post: https://fusionauth.io/blog/2020/10/22/securing-a-golang-app-with-oauth/

This application will use an OAuth Authorization Code workflow and the PKCE extension to log users in. PKCE stands for Proof Key for Code Exchange, and is often pronounced “pixie”.

Installation

clone with git first

git clone https://github.com/fusionauth/fusionauth-example-go

Usage

Assuming you've configured FusionAuth with a new application, update main.go with the client ID and client secret.

go get github.com/thanhpk/randstr
go get golang.org/x/oauth2
go get github.com/nirasan/go-oauth-pkce-code-verifier
go run main.go

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Who made this?

Krissanawat Kaewsanmaung - Creator

License

APACHE 2.0

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages