Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3311507
D13558.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
558 B
Referenced Files
None
Subscribers
None
D13558.diff
View Options
diff --git a/services/identity/src/database/token.rs b/services/identity/src/database/token.rs
--- a/services/identity/src/database/token.rs
+++ b/services/identity/src/database/token.rs
@@ -87,6 +87,13 @@
signing_public_key: String,
access_token_to_verify: String,
) -> Result<bool, Error> {
+ if user_id.is_empty()
+ || signing_public_key.is_empty()
+ || access_token_to_verify.is_empty()
+ {
+ return Ok(false);
+ }
+
let is_valid = self
.get_access_token_data(user_id, signing_public_key)
.await?
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 9:14 AM (21 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2543888
Default Alt Text
D13558.diff (558 B)
Attached To
Mode
D13558: [identity] Treat empty auth metadata as invalid CSAT
Attached
Detach File
Event Timeline
Log In to Comment