add middleware

This commit is contained in:
tsmethurst 2021-03-21 00:49:20 +01:00
parent f5b62e62d6
commit 43eb9b8c21

View File

@ -1,3 +1,5 @@
# oauth # 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/) server functionality to the GoToSocial APIs. 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/) server functionality to the GoToSocial APIs.
It also provides a handler/middleware for attaching to the Gin engine for validating authenticated users.