aws / aws/aws-lambda-dotnet

Cognito Authorizer passthrough to Authentication Middleware

Aperta
#1,961 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
feature-request m module/lambda-client-lib p2
Lingua principale
C#
Stelle
1.7k
Fork
503
Merge medio
1g 18h
PR unite (30g)
21

Descrizione

### Describe the feature

It would be great to have some functionality to provide the JWT token that is evaluated on API Gateway by the Cognito UserPool authorizer, to be 'passed' through to the ASP.NET Authentication middleware.

### Use Case

Currently, I can't test locally. I need to deploy to AWS and debug the context object by using console output and grepping logs for the context object and the details contained within, that is provided to the Lambda function by API Gateway.

I think this would be helpful for portability and testing. This would allow the application to continue using the [Authorize] attributes and minimise conditional checks whether its being tested locally or in the cloud.

### Proposed Solution

_No response_

### Other Information

_No response_

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### AWS .NET SDK and/or Package version used

Latest published.

### Targeted .NET Platform

.NET 8

### Operating System and version

Ubuntu 24.04

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Non sono indicati file o test. Inizia tracciando il contesto dell’API Gateway Cognito UserPool authorizer fino all’ASP.NET Authentication middleware, quindi confronta il comportamento locale e quello del deployment. Il lavoro è completato quando il JWT valutato è disponibile per il middleware, così che gli attributi [Authorize] esistenti funzionino senza controlli specifici dell’ambiente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
aws, csharp
Ambito
api, authentication, backend, cloud
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.