From 93e41ad4ed9a42d7dc13a7c4caba1c921b9463d9 Mon Sep 17 00:00:00 2001 From: kheiner Date: Thu, 12 Feb 2026 15:59:43 -0800 Subject: [PATCH 1/2] Add code samples to oauthProvider.yaml Added details explaining that oath is not available in Directus SDK and GraphQL. Fixes #42 This should also enable the REST endpoint to display. --- openapi/paths/auth/oauth/_provider/oauthProvider.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openapi/paths/auth/oauth/_provider/oauthProvider.yaml b/openapi/paths/auth/oauth/_provider/oauthProvider.yaml index 824227d..1242e85 100644 --- a/openapi/paths/auth/oauth/_provider/oauthProvider.yaml +++ b/openapi/paths/auth/oauth/_provider/oauthProvider.yaml @@ -35,3 +35,10 @@ responses: security: [] tags: - Authentication +x-codeSamples: + - label: Directus SDK + lang: JavaScript + source: Not available in Directus SDK/GraphQL + - label: GraphQL + lang: GraphQL + source: Not available in Directus SDK/GraphQL From 1dd83715d39d6bfc69340a1aae912f8f63e932fd Mon Sep 17 00:00:00 2001 From: kheiner Date: Fri, 13 Feb 2026 11:03:17 -0800 Subject: [PATCH 2/2] Rename OAuth endpoint to login in index.yaml --- openapi/index.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi/index.yaml b/openapi/index.yaml index 50d1b15..429bad7 100644 --- a/openapi/index.yaml +++ b/openapi/index.yaml @@ -23,7 +23,7 @@ paths: $ref: paths/auth/logout/index.yaml "/auth/oauth": $ref: paths/auth/oauth/index.yaml - "/auth/oauth/{provider}": + "/auth/login/{provider}": $ref: paths/auth/oauth/_provider/index.yaml "/auth/password/request": $ref: paths/auth/password/request/index.yaml