File size: 739 Bytes
57a889c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { Module } from '@nestjs/common';
import { OauthPublicController } from './oauth-public.controller';
import { OauthApiController } from './oauth-api.controller';
import { OauthService } from './oauth.service';
import { RateLimitService } from '../auth/rate-limit.service';

/**
 * OAuth 2.1 server (MCP). Public token/userinfo/revoke endpoints + the SPA's
 * authenticated consent/client/session management. The SDK-mounted
 * /oauth/authorize, /oauth/register and /oauth/consent stay on Express, so the
 * strangler lists /oauth/token, /oauth/userinfo, /oauth/revoke explicitly.
 */
@Module({
  controllers: [OauthPublicController, OauthApiController],
  providers: [OauthService, RateLimitService],
})
export class OauthModule {}