gotosocial/internal/module/oauth
Tobi Smethurst aa9ce272dc
Oauth/token (#7)
* add host and protocol options

* some fiddling

* tidying up and comments

* tick off /oauth/token

* tidying a bit

* tidying

* go mod tidy

* allow attaching middleware to server

* add middleware

* more user friendly

* add comments

* comments

* store account + app

* tidying

* lots of restructuring

* lint + tidy
2021-03-22 22:26:54 +01:00
..
clientstore.go Oauth/token (#7) 2021-03-22 22:26:54 +01:00
clientstore_test.go Oauth/token (#7) 2021-03-22 22:26:54 +01:00
oauth.go Oauth/token (#7) 2021-03-22 22:26:54 +01:00
oauth_test.go Oauth/token (#7) 2021-03-22 22:26:54 +01:00
README.md Oauth/token (#7) 2021-03-22 22:26:54 +01:00
tokenstore.go Oauth/token (#7) 2021-03-22 22:26:54 +01:00

oauth

This package provides uses the GoToSocial oauth2 module (forked from go-oauth2) to provide oauth2 functionality to the GoToSocial client API.

It also provides a handler/middleware for attaching to the Gin engine for validating authenticated users.