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 #309

Closed aaronpowell closed 4 months ago

aaronpowell commented 4 months ago

We have two forms of authorization, and that means we have to set a bunch of stuff in attributes.

We can clean this up by creating a type that inherits AuthorizeAttribute and sets what we need.

Depends on #306 being merged.