mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 12:16:54 +00:00
fix: Check for client ID mismatch in step-up auth
This commit is contained in:
1 parent
18f2118c42
commit
4d7341c32d
1 file changed
+10
@@ -586,6 +586,16 @@ impl Service {
|
||||
));
|
||||
};
|
||||
|
||||
if session_info.client_id != client_id {
|
||||
// This device was created by a different piece of client
|
||||
// software. Either the client stepping up
|
||||
// changed its registration without logging out
|
||||
// or someone is screwing with things.
|
||||
return Err(OAuthError::invalid_grant(
|
||||
"The supplied device was created by a different client",
|
||||
));
|
||||
}
|
||||
|
||||
session_info.temporary_scopes = requested_scopes.scopes;
|
||||
|
||||
self.services
|
||||
|
||||
Reference in new issue
Block a user