Skip to content

Commit

Permalink
feat: removes domain as it can contain sensitive information
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierJp committed Nov 8, 2024
1 parent fe0eb1c commit 27cbc40
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/api/auth/agent-connect/callback/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ export const GET = withSession(async function callbackRoute(req) {
* Otherwise raise an exception : HttpForbiddenError or AgentConnectCouldBeAServicePublicException
*/
const verifyAgentHabilitation = async (agent: IAgentInfo) => {
if (agent.hasHabilitation) {
return;
}
// if (agent.hasHabilitation) {
// return;
// }

const { isMCP } = agent;

Expand All @@ -73,6 +73,7 @@ const verifyAgentHabilitation = async (agent: IAgentInfo) => {
page: 0,
isBot: false,
});
throw new Error('');

if (isServicePublic(uniteLegale)) {
return;
Expand All @@ -83,7 +84,6 @@ const verifyAgentHabilitation = async (agent: IAgentInfo) => {
message: 'Siren verification failed',
context: {
siret: agent.siret,
domain: agent.domain,
details: agent.idpId,
},
});
Expand Down

0 comments on commit 27cbc40

Please sign in to comment.