diff options
author | 2022-06-11 10:39:39 +0200 | |
---|---|---|
committer | 2022-06-11 10:39:39 +0200 | |
commit | 694a49058951de31cca4ea061e2c08d44e712612 (patch) | |
tree | 8509cb95f41faaf15d4352707617bff17300978d /internal/processing/processor.go | |
parent | [bugfix] Make accounts media_only query also work with pg (#643) (diff) | |
download | gotosocial-694a49058951de31cca4ea061e2c08d44e712612.tar.xz |
[feature] Add `created_at` and `error_description` to `/oauth/token` endpoint (#645)
* start fiddling about with oauth server
* start returning more helpful errors from oauth
* test helpful(ish) token errors
* add missing license header
Diffstat (limited to 'internal/processing/processor.go')
-rw-r--r-- | internal/processing/processor.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/processing/processor.go b/internal/processing/processor.go index a7a1c22e0..3afc25196 100644 --- a/internal/processing/processor.go +++ b/internal/processing/processor.go @@ -152,6 +152,9 @@ type Processor interface { // NotificationsGet NotificationsGet(ctx context.Context, authed *oauth.Auth, limit int, maxID string, sinceID string) (*apimodel.TimelineResponse, gtserror.WithCode) + OAuthHandleTokenRequest(r *http.Request) (map[string]interface{}, gtserror.WithCode) + OAuthHandleAuthorizeRequest(w http.ResponseWriter, r *http.Request) error + // SearchGet performs a search with the given params, resolving/dereferencing remotely as desired SearchGet(ctx context.Context, authed *oauth.Auth, searchQuery *apimodel.SearchQuery) (*apimodel.SearchResult, gtserror.WithCode) |