@opsee/mcp-server 0.1.8 → 0.2.0
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.
- package/package.json +1 -1
- package/src/auth/oauth-provider.ts +13 -1
package/package.json
CHANGED
|
@@ -39,7 +39,19 @@ export class OpseeClientStore implements OAuthRegisteredClientsStore {
|
|
|
39
39
|
private clients = new Map<string, OAuthClientInformationFull>();
|
|
40
40
|
|
|
41
41
|
getClient(clientId: string): OAuthClientInformationFull | undefined {
|
|
42
|
-
|
|
42
|
+
const known = this.clients.get(clientId);
|
|
43
|
+
if (known) return known;
|
|
44
|
+
|
|
45
|
+
// Accept any client ID — required for stateless multi-replica deployments
|
|
46
|
+
// where registration may have happened on a different pod.
|
|
47
|
+
// The OAuth flow itself (PKCE + auth code) provides the security.
|
|
48
|
+
return {
|
|
49
|
+
client_id: clientId,
|
|
50
|
+
redirect_uris: [],
|
|
51
|
+
token_endpoint_auth_method: "none",
|
|
52
|
+
grant_types: ["authorization_code"],
|
|
53
|
+
response_types: ["code"],
|
|
54
|
+
} as unknown as OAuthClientInformationFull;
|
|
43
55
|
}
|
|
44
56
|
|
|
45
57
|
registerClient(
|