Skip to content

fix(backend): server-side logout revocation and rate limit federation… - #840

Merged
OlaGreat merged 1 commit into
OlaGreat:mainfrom
Suzan-max:fix/issues-760-761-763-770
Jul 24, 2026
Merged

fix(backend): server-side logout revocation and rate limit federation…#840
OlaGreat merged 1 commit into
OlaGreat:mainfrom
Suzan-max:fix/issues-760-761-763-770

Conversation

@Suzan-max

Copy link
Copy Markdown
Contributor

Add POST /v1/auth/logout to revoke the current JWT server-side: JWTs now carry a jti claim, revoked jti values are stored in a new RevokedToken table until expiry, requireAuth rejects revoked tokens, and logout clears the auth_token cookie.

Add a federationLimiter (30 req/min per IP) to GET /federation and GET /.well-known/stellar.toml to prevent unauthenticated enumeration and abuse.

Closes #761
Closes #763
Closes #770
Closes #760

… endpoints

Add POST /v1/auth/logout to revoke the current JWT server-side: JWTs now
carry a jti claim, revoked jti values are stored in a new RevokedToken
table until expiry, requireAuth rejects revoked tokens, and logout clears
the auth_token cookie.

Add a federationLimiter (30 req/min per IP) to GET /federation and
GET /.well-known/stellar.toml to prevent unauthenticated enumeration
and abuse.

Closes OlaGreat#761
Closes OlaGreat#763
@drips-wave

drips-wave Bot commented Jul 24, 2026

Copy link
Copy Markdown

@Suzan-max Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@OlaGreat
OlaGreat merged commit 67294e4 into OlaGreat:main Jul 24, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants