You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature: Add service authentication support (microsoft#795)
* Authentication base
* Implement auth on http side
* Authentication
* use unique name
* Add tests
* Add docs
* Merge with main
* Wip
* Export more things
* Export more things
* Allow description
* Allow description
* Missing desc in openapi3
* Missing desc in openapi3
* Fix formatting
* Fix syntax error after merge
Co-authored-by: David Wilson <[email protected]>
/** An element to hold various schemas for the specification. */
36
36
components?: OpenAPI3Components;
37
+
38
+
/** A declaration of which security mechanisms can be used across the API. The list of values includes alternative security requirement objects that can be used. Only one of the security requirement objects need to be satisfied to authorize a request. Individual operations can override this definition. */
| Response<Status> |<Status> is numerical status code. |
39
-
| OkResponse<T> | Response<200> with T as the response body model type. |
40
-
| CreatedResponse | Response<201> |
41
-
| AcceptedResponse | Response<202> |
42
-
| NoContentResponse | Response<204> |
43
-
| MovedResponse | Response<301> with LocationHeader for redirected URL |
44
-
| NotModifiedResponse | Response<304> |
45
-
| UnauthorizedResponse | Response<401> |
46
-
| NotFoundResponse | Response<404> |
47
-
| ConflictResponse | Response<409> |
48
-
| PlainData<T> | Produces a new model with the same properties as T, but with @query, @header, @body, and @path decorators removed from all properties. |
| Response<Status> |<Status> is numerical status code. |
45
+
| OkResponse<T> | Response<200> with T as the response body model type. |
46
+
| CreatedResponse | Response<201> |
47
+
| AcceptedResponse | Response<202> |
48
+
| NoContentResponse | Response<204> |
49
+
| MovedResponse | Response<301> with LocationHeader for redirected URL |
50
+
| NotModifiedResponse | Response<304> |
51
+
| UnauthorizedResponse | Response<401> |
52
+
| NotFoundResponse | Response<404> |
53
+
| ConflictResponse | Response<409> |
54
+
| PlainData<T> | Produces a new model with the same properties as T, but with @query, @header, @body, and @path decorators removed from all properties. |
55
+
| BasicAuth | Configure `basic` authentication with @useAuth|
56
+
| BearerAuth | Configure `bearer` authentication with @useAuth|
57
+
| ApiKeyAuth<TLocation, TName> | Configure `apiKey` authentication with @useAuth|
58
+
| OAuth2Auth<TFlows> | Configure `oauth2` authentication with @useAuth|
0 commit comments