Skip to content

Ignore "session not found" if paranoid is switched on#262

Open
jamesjefferies wants to merge 1 commit into
mikker:masterfrom
jamesjefferies:ignore-session-not-found-if-paranoid-switched-on
Open

Ignore "session not found" if paranoid is switched on#262
jamesjefferies wants to merge 1 commit into
mikker:masterfrom
jamesjefferies:ignore-session-not-found-if-paranoid-switched-on

Conversation

@jamesjefferies

Copy link
Copy Markdown

If a bot or script is hitting the user sign in, then the id param can be something unsuitable, i.e. not an id in the database. The app then throws an ActiveRecord::NotFound exception.

This change alters the behaviour so that if paranoid is switched on, then the app ignores the not found and redirects back to the signin page.

However, I would understand if

a) This should be the default behaviour and ignore the paranoid config
b) Current behaviour is desired!

This is related to issue #241

@mikker

mikker commented Dec 10, 2025

Copy link
Copy Markdown
Owner

Thank you for this. Have you investigated what other auth solutions do around this?

@jamesjefferies

Copy link
Copy Markdown
Author

@mikker I can't say I have I'm afraid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants