OAuth redirect_uri=http://localhost is rejected #2902
Unanswered
onspli
asked this question in
Issue Triage
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
When trying to authenticate with OAuth with

redirect_uripointing to localhost with HTTP protocol, the URI is rejected (is not HTTPS).According to standard, localhost should be accepted without HTTPS.
It looks like this edge case is not handled at all -
stalwart/crates/http/src/auth/oauth/auth.rs
Lines 88 to 100 in 2266634
Expected Behavior
Redirect URI targeting localhost using plain HTTP should be accepted per standard.
Actual Behavior
The login form shows error
Reproduction Steps
Relevant Log Output
No response
Stalwart Version
v0.15.x
Installation Method
Docker
Database Backend
RocksDB
Blob Storage
RocksDB
Search Engine
Internal
Directory Backend
Internal
Additional Context
No response
I acknowledge that:
traceand included relevant log output if applicable.Beta Was this translation helpful? Give feedback.
All reactions