@ibgib/space-gib 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -123,10 +123,11 @@ export class SsoLoginHandler extends ServeGibHandlerWithMetaspaceBase<LoginParam
123
123
  return this.error(404, `Parent identity keystone not found in space for address: ${latestParentAddr}`);
124
124
  }
125
125
 
126
- // 4. Resolve the POOL_ID_CUSTODIAN_MANAGE pool from the parent keystone
127
- const custodianPool = parentKeystone.data?.challengePools?.find((p: any) => p.id === POOL_ID_CUSTODIAN_MANAGE);
126
+ // 4. Resolve the custodian pool from the parent keystone using dynamic poolId
127
+ const targetPoolId = `custodian-manage-${providerId}`;
128
+ const custodianPool = parentKeystone.data?.challengePools?.find((p: any) => p.id === targetPoolId);
128
129
  if (!custodianPool) {
129
- return this.error(401, `Unauthorized: Custodian pool '${POOL_ID_CUSTODIAN_MANAGE}' is not registered in the parent identity keystone.`);
130
+ return this.error(401, `Unauthorized: Custodian pool '${targetPoolId}' is not registered in the parent identity keystone.`);
130
131
  }
131
132
 
132
133
  // 5. Assert allowed verbs contain KEYSTONE_VERB_MANAGE