Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3513017
D13558.id44757.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.id44757.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
Sun, Dec 22, 9:45 PM (18 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2692714
Default Alt Text
D13558.id44757.diff (558 B)
Attached To
Mode
D13558: [identity] Treat empty auth metadata as invalid CSAT
Attached
Detach File
Event Timeline
Log In to Comment