@@ -22,7 +22,7 @@ import { Server } from "./server.js";
2222import logger from "../logger.js" ;
2323
2424/**
25- * Configuration interface for AutomatedOAuth
25+ * Configuration interface for AutomatedOAuthClient
2626 */
2727export interface AutomatedOAuthConfig {
2828 // Lookup server URL from a CloudFormation stack
@@ -42,7 +42,7 @@ export interface AutomatedOAuthConfig {
4242 * - Client ID: CloudFormation stack output 'AutomatedOAuthClientId' from 'LambdaMcpServer-Auth' stack
4343 * - Client Secret: AWS Secrets Manager secret (ARN from CloudFormation stack output 'OAuthClientSecretArn')
4444 */
45- export class AutomatedOAuth extends Server {
45+ export class AutomatedOAuthClient extends Server {
4646 private oauthProvider ?: AutomatedOAuthClientProvider ;
4747
4848 // Lookup server URL from a CloudFormation stack
@@ -104,7 +104,9 @@ export class AutomatedOAuth extends Server {
104104 logger . debug ( "Starting automated OAuth flow..." ) ;
105105 await this . attemptConnection ( ) ;
106106 } catch ( error ) {
107- logger . error ( `Error initializing automated OAuth server ${ this . name } : ${ error } ` ) ;
107+ logger . error (
108+ `Error initializing automated OAuth server ${ this . name } : ${ error } `
109+ ) ;
108110 throw error ;
109111 }
110112 }
@@ -187,7 +189,7 @@ export class AutomatedOAuth extends Server {
187189 try {
188190 // First get the secret ARN from CloudFormation
189191 logger . debug ( "Retrieving client secret ARN from CloudFormation..." ) ;
190-
192+
191193 const cloudFormationClient = new CloudFormationClient ( {
192194 region : this . authStackRegion ,
193195 } ) ;
@@ -226,7 +228,7 @@ export class AutomatedOAuth extends Server {
226228
227229 // Now get the secret value from Secrets Manager
228230 logger . debug ( "Retrieving client secret from Secrets Manager..." ) ;
229-
231+
230232 const secretsManagerClient = new SecretsManagerClient ( {
231233 region : this . authStackRegion ,
232234 } ) ;
@@ -443,16 +445,22 @@ class AutomatedOAuthClientProvider implements OAuthClientProvider {
443445
444446 redirectToAuthorization ( authorizationUrl : URL ) : void {
445447 // Not used in client credentials flow - no user interaction
446- throw new Error ( "redirectToAuthorization should not be called in automated OAuth flow" ) ;
448+ throw new Error (
449+ "redirectToAuthorization should not be called in automated OAuth flow"
450+ ) ;
447451 }
448452
449453 saveCodeVerifier ( codeVerifier : string ) : void {
450454 // Not used in client credentials flow
451- throw new Error ( "saveCodeVerifier should not be called in automated OAuth flow" ) ;
455+ throw new Error (
456+ "saveCodeVerifier should not be called in automated OAuth flow"
457+ ) ;
452458 }
453459
454460 codeVerifier ( ) : string {
455461 // Not used in client credentials flow
456- throw new Error ( "codeVerifier should not be called in automated OAuth flow" ) ;
462+ throw new Error (
463+ "codeVerifier should not be called in automated OAuth flow"
464+ ) ;
457465 }
458466}
0 commit comments