fusionauth-example-go

command module
v0.0.0-...-2619091 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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