MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / verifyIssuer

Function verifyIssuer

panel/src/app/service/sso_service.ts:42–50  ·  view source on GitHub ↗
(issuer: string, clientId: string, clientSecret: string)

Source from the content-addressed store, hash-verified

40}
41
42export async function verifyIssuer(issuer: string, clientId: string, clientSecret: string): Promise<void> {
43 try {
44 const issuerUrl = new URL(issuer);
45 await oidc.discovery(issuerUrl, clientId, clientSecret);
46 } catch (err: any) {
47 logger.error("[SSO] Issuer verification failed: " + err.message);
48 throw new Error(`SSO Issuer verification failed: unable to reach ${issuer}/.well-known/openid-configuration`);
49 }
50}
51
52// ─── Crypto helpers ───
53

Callers 1

settings_router.tsFile · 0.85

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected