authgear / authgear-server

Open source alternative to Auth0 / Firebase Auth
https://www.authgear.com
Apache License 2.0
72 stars 29 forks source link

Add sentry tracking with debug info for csrf errors #4353

Closed elise-ng closed 1 week ago

elise-ng commented 1 week ago

Ref DEV-1337

Sentry log from test project:

CleanShot 2024-06-18 at 21 37 36@2x

(sanity check by removing debug cookie manually in browser)

CleanShot 2024-06-18 at 21 39 38@2x

Note the referer field is auto masked by sentry, and seems override is not working (see linear discussion)

CleanShot 2024-06-18 at 21 38 02@2x

elise-ng commented 1 week ago

@louischan-oursky plz check first, i'll see if there is any way to keep the referer info tmr

louischan-oursky commented 1 week ago

I added a commit to fix a lint error.