mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[chore] Deinterface processor and subprocessors (#1501)
* [chore] Deinterface processor and subprocessors * expose subprocessors via function calls * missing license header
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user