mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-23 15:26:20 -06:00
move + tweak handlers a bit
This commit is contained in:
parent
d69c631b9c
commit
469bd75999
5 changed files with 221 additions and 150 deletions
|
|
@ -20,8 +20,8 @@ package testrig
|
|||
import (
|
||||
"context"
|
||||
|
||||
apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/oauth"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/oauth/handlers"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/state"
|
||||
)
|
||||
|
||||
|
|
@ -31,6 +31,11 @@ func NewTestOauthServer(state *state.State) oauth.Server {
|
|||
return oauth.New(
|
||||
ctx,
|
||||
state,
|
||||
apiutil.GetClientScopeHandler(ctx, state),
|
||||
handlers.GetValidateURIHandler(ctx),
|
||||
handlers.GetClientScopeHandler(ctx, state),
|
||||
handlers.GetAuthorizeScopeHandler(),
|
||||
handlers.GetInternalErrorHandler(ctx),
|
||||
handlers.GetResponseErrorHandler(ctx),
|
||||
handlers.GetUserAuthorizationHandler(),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue