hotfix-conditional-valid-resource-owner-check (#14814)
This commit is contained in:
1 parent
900e90cd2c
commit
a51024e915
1 file changed
+7
-1
@@ -174,7 +174,6 @@ export class OAuthManager {
|
||||
*/
|
||||
isTokenExpired?: IsTokenExpired;
|
||||
}) {
|
||||
ensureValidResourceOwner(resourceOwner);
|
||||
this.resourceOwner = resourceOwner;
|
||||
this.currentTokenObject = currentTokenObject;
|
||||
this.appSlug = appSlug;
|
||||
@@ -191,6 +190,13 @@ export class OAuthManager {
|
||||
credentialSyncVariables.CREDENTIAL_SYNC_SECRET_HEADER_NAME &&
|
||||
credentialSyncVariables.CREDENTIAL_SYNC_SECRET
|
||||
);
|
||||
|
||||
if (this.useCredentialSync) {
|
||||
// Though it should be validated without credential sync as well but it seems like we have some credentials without userId in production
|
||||
// So, we are not validating it for now
|
||||
ensureValidResourceOwner(resourceOwner);
|
||||
}
|
||||
|
||||
this.autoCheckTokenExpiryOnRequest = autoCheckTokenExpiryOnRequest;
|
||||
this.updateTokenObject = updateTokenObject;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user