mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-23 09:46:42 +02:00
feat(auth): add OIDC Controller for Matrix SSO endpoints
- Add OidcController to expose Better Auth OIDC Provider endpoints - Add handleOidcRequest method to BetterAuthService - Exclude OIDC routes from global /api/v1 prefix - Register OidcController in AuthModule Endpoints: - GET /.well-known/openid-configuration - GET /api/oidc/authorize - POST /api/oidc/token - GET /api/oidc/userinfo - GET /api/oidc/jwks Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
577b96156c
commit
00d28bc522
4 changed files with 196 additions and 3 deletions
|
|
@ -1,12 +1,13 @@
|
|||
import { Module, forwardRef } from '@nestjs/common';
|
||||
import { AuthController } from './auth.controller';
|
||||
import { BetterAuthPassthroughController } from './better-auth-passthrough.controller';
|
||||
import { OidcController } from './oidc.controller';
|
||||
import { BetterAuthService } from './services/better-auth.service';
|
||||
import { ReferralsModule } from '../referrals/referrals.module';
|
||||
|
||||
@Module({
|
||||
imports: [forwardRef(() => ReferralsModule)],
|
||||
controllers: [AuthController, BetterAuthPassthroughController],
|
||||
controllers: [AuthController, BetterAuthPassthroughController, OidcController],
|
||||
providers: [BetterAuthService],
|
||||
exports: [BetterAuthService],
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue