mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-15 13:13:02 -06: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:
parent
adb596600b
commit
b6fbdc66c1
246 changed files with 2545 additions and 4549 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue