mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
fix(api)!: enforce declared rate limits and correct route auth (#2500)
This commit is contained in:
1 parent
908e1b8bd4
commit
f8a04b8985
13 files changed
+317
-77
No files matched your search
@@ -218,6 +218,7 @@ export function OAuth2Controller(app: HonoApp) {
|
||||
);
|
||||
app.get(
|
||||
'/oauth2/@me',
|
||||
RateLimitMiddleware(RateLimitConfigs.OAUTH_INTROSPECT),
|
||||
requireOAuth2BearerToken(),
|
||||
LoginRequiredAllowSuspicious,
|
||||
DefaultUserOnly,
|
||||
@@ -259,6 +260,7 @@ export function OAuth2Controller(app: HonoApp) {
|
||||
);
|
||||
app.get(
|
||||
'/applications/@me',
|
||||
RateLimitMiddleware(RateLimitConfigs.OAUTH_DEV_CLIENTS_LIST),
|
||||
OpenAPI({
|
||||
operationId: 'get_current_user_applications',
|
||||
summary: 'List current user applications',
|
||||
|
||||
Reference in new issue
Block a user