Add shared HMAC+domain auth for remote SMS wallet API.

Products can authenticate with one shared secret and tenant domain instead of per-version tokens; Bearer token remains as fallback.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-05 17:11:55 +03:30
co-authored by Cursor
parent 14d9c5d143
commit 57654e295c
4 changed files with 212 additions and 6 deletions
+2 -2
View File
@@ -1,14 +1,14 @@
import { Module } from '@nestjs/common';
import { NotificationsModule } from '../notifications/notifications.module';
import { RemoteSmsAuthGuard } from '../auth/remote-sms-auth.guard';
import { RemoteSmsController } from './remote-sms.controller';
import { SmsController } from './sms.controller';
import { SmsService } from './sms.service';
import { RemoteTokenGuard } from '../auth/remote-token.guard';
@Module({
imports: [NotificationsModule],
controllers: [SmsController, RemoteSmsController],
providers: [SmsService, RemoteTokenGuard],
providers: [SmsService, RemoteSmsAuthGuard],
exports: [SmsService],
})
export class SmsModule {}