From aa9ce272dcfa1380b2f05bc3a90ef8ca1b0a7f62 Mon Sep 17 00:00:00 2001 From: Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 22 Mar 2021 22:26:54 +0100 Subject: 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 --- internal/module/oauth/README.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 internal/module/oauth/README.md (limited to 'internal/module/oauth/README.md') diff --git a/internal/module/oauth/README.md b/internal/module/oauth/README.md new file mode 100644 index 000000000..3d8427302 --- /dev/null +++ b/internal/module/oauth/README.md @@ -0,0 +1,5 @@ +# oauth + +This package provides uses the [GoToSocial oauth2](https://github.com/gotosocial/oauth2) module (forked from [go-oauth2](https://github.com/go-oauth2/oauth2)) to provide [oauth2](https://www.oauth.com/) functionality to the GoToSocial client API. + +It also provides a handler/middleware for attaching to the Gin engine for validating authenticated users. -- cgit v1.2.3