client

command
v0.0.0-...-626aa2f Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: CC0-1.0 Imports: 12 Imported by: 0

README

Example Client

This small Go program implements an extremely bare-bones OAuth2 server using the fosite package. The OAuth2 server should always generate a token for a given authorization request. The /login flow will use the PKCE wrapper to ensure a code verifier and challenge code are created and appropriately sent. The fosite OAuth2 library ensures that they are valid and match.

Running the program will launch a browser, clicking the login link will take you to the authorize page on the OAuth2 instance, and send you back.

You can switch the commented lines to revert to non-PKCE calls in the main.go and see the OAuth2 server reject the requests.

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