Skip to content

Commit 4523c62

Browse files
authored
feat(kong): Add .well-known/oauth-authorization-server endpoint (#4239)
feat(kong): Add `.well-known/oauth-authorization-server` endpoint routing
1 parent 9821875 commit 4523c62

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

internal/start/templates/kong.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ services:
4545
replace:
4646
headers:
4747
- "Authorization: {{ .BearerToken }}"
48+
- name: well-known-oauth
49+
_comment: "GoTrue: /.well-known/oauth-authorization-server -> http://auth:9999/.well-known/oauth-authorization-server"
50+
url: http://{{ .GotrueId }}:9999/.well-known/oauth-authorization-server
51+
routes:
52+
- name: well-known-oauth
53+
strip_path: true
54+
paths:
55+
- /.well-known/oauth-authorization-server
56+
plugins:
57+
- name: cors
4858
- name: auth-v1
4959
_comment: "GoTrue: /auth/v1/* -> http://auth:9999/*"
5060
url: http://{{ .GotrueId }}:9999/

0 commit comments

Comments
 (0)