File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,26 @@ title: Change the OAuth2 issuer URL
4
4
sidebar_label : Change Issuer URL
5
5
---
6
6
7
- To change the OAuth2 and OpenID Connect Issuer URL, run the following [ Ory CLI] ( ../guides/cli/01_installation.mdx ) command:
7
+ When your OAuth2 or OpenID Connect client complains that the issuer URL is incorrect, this can have the following reasons:
8
+
9
+ 1 . You have misconfigured your OpenID Connect Client. Make sure you are using the correct issuer URL.
10
+ 2 . You connected a custom domain to your Ory Network project before February 20th 2024. In this case, the issuer URL might be
11
+ incorrect.
12
+ 3 . You have manually overwritten the issuer URL in your Ory Network Project.
13
+ 4 . You are using more than one custom domain connected to a single Ory Network project.
14
+
15
+ You can view the issuer URL of your Ory Network project using the [ Ory CLI] ( ../guides/cli/01_installation.mdx ) :
16
+
17
+ ``` shell
18
+ ory get oauth2-config {project-id} --format json | jq ' .urls.self.issuer'
19
+ ```
20
+
21
+ Use this value to understand if the server is incorrectly configured or if the client is using the wrong issuer URL. To change the
22
+ issuer URL, you can use the [ Ory CLI] ( ../guides/cli/01_installation.mdx ) :
8
23
9
24
``` shell
10
25
ory patch oauth2-config {project-id} \
11
26
--replace ' /urls/self/issuer="https://auth.myexample.org"'
12
27
```
13
28
14
- Ideally, this URL is the CNAME domain you have set up for the Ory Network.
29
+ Ideally, this URL is the primary custom domain you have set up for the Ory Network.
You can’t perform that action at this time.
0 commit comments