diff options
author | 2023-02-22 16:05:26 +0100 | |
---|---|---|
committer | 2023-02-22 16:05:26 +0100 | |
commit | b6fbdc66c1ce1ec61ebfb6fcc0351ea627a1d288 (patch) | |
tree | c79d1107375597ab8a79045c80dd62dc95a204e7 /internal/processing/oauth.go | |
parent | [bugfix] Remove initial storage cleanup (#1545) (diff) | |
download | gotosocial-b6fbdc66c1ce1ec61ebfb6fcc0351ea627a1d288.tar.xz |
[chore] Deinterface processor and subprocessors (#1501)
* [chore] Deinterface processor and subprocessors
* expose subprocessors via function calls
* missing license header
Diffstat (limited to 'internal/processing/oauth.go')
-rw-r--r-- | internal/processing/oauth.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/processing/oauth.go b/internal/processing/oauth.go index 3df4824b2..144503bbd 100644 --- a/internal/processing/oauth.go +++ b/internal/processing/oauth.go @@ -25,17 +25,17 @@ import ( "github.com/superseriousbusiness/oauth2/v4" ) -func (p *processor) OAuthHandleAuthorizeRequest(w http.ResponseWriter, r *http.Request) gtserror.WithCode { +func (p *Processor) OAuthHandleAuthorizeRequest(w http.ResponseWriter, r *http.Request) gtserror.WithCode { // todo: some kind of metrics stuff here return p.oauthServer.HandleAuthorizeRequest(w, r) } -func (p *processor) OAuthHandleTokenRequest(r *http.Request) (map[string]interface{}, gtserror.WithCode) { +func (p *Processor) OAuthHandleTokenRequest(r *http.Request) (map[string]interface{}, gtserror.WithCode) { // todo: some kind of metrics stuff here return p.oauthServer.HandleTokenRequest(r) } -func (p *processor) OAuthValidateBearerToken(r *http.Request) (oauth2.TokenInfo, error) { +func (p *Processor) OAuthValidateBearerToken(r *http.Request) (oauth2.TokenInfo, error) { // todo: some kind of metrics stuff here return p.oauthServer.ValidationBearerToken(r) } |