microsoft / azure-openai-service-proxy

The Azure AI proxy service facilitates easy access to Azure AI resources for workshops and hackathons. It offers a Playground-like interface and supports Azure AI SDKs. Access is granted through a time-limited API key and endpoint.
https://microsoft.github.io/azure-openai-service-proxy/
MIT License
63 stars 37 forks source link

Create custom `[Authorize]` attributes #318

Closed aaronpowell closed 4 months ago

aaronpowell commented 4 months ago

This pull request creates custom [Authorize] attributes, ApiKeyAuthorizeAttribute and JwtAuthorizeAttribute, that inherit from AuthorizeAttribute and set the necessary authentication schemes. This improves code clarity and simplifies the authorization process.

Fixes #309