mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-28 12:13:32 -06:00
start working on oauth2 implementation
This commit is contained in:
parent
77f2a27b23
commit
772f6e5949
6 changed files with 657 additions and 23 deletions
|
|
@ -24,6 +24,7 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/go-fed/activity/pub"
|
||||
"github.com/go-oauth2/oauth2/v4"
|
||||
"github.com/gotosocial/gotosocial/internal/config"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
|
@ -39,6 +40,11 @@ type DB interface {
|
|||
*/
|
||||
pub.Database
|
||||
|
||||
/*
|
||||
OAUTH2 DATABASE FUNCTIONS
|
||||
*/
|
||||
TokenStore() oauth2.TokenStore
|
||||
|
||||
/*
|
||||
ANY ADDITIONAL DESIRED FUNCTIONS
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue