File tree 2 files changed +25
-1
lines changed
npm-packages/docs/docs/auth/advanced
2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,32 @@ Add these to your `convex/auth.config.js` file:
29
29
export default {
30
30
providers: [
31
31
{
32
- domain: " your.issuer.url.com" ,
32
+ domain: " https:// your.issuer.url.com" ,
33
33
applicationID: " your-application-id" ,
34
34
},
35
35
],
36
36
};
37
37
```
38
38
39
+ The ` applicationID ` property must exactly match the ` aud ` field of your JWT and
40
+ the ` domain ` property must exactly match the ` iss ` field of the JWT. Use a tool
41
+ like [ jwt.io] ( https://jwt.io/ ) to view an JWT and confirm these fields match
42
+ exactly.
43
+
44
+ If multiple providers are provided, the first one fulfilling the above criteria
45
+ will be used.
46
+
47
+ If you're not able to obtain tokens with an ` aud ` field, you'll need to instead
48
+ configure a [ Custom JWT] ( /auth/advanced/custom-jwt.mdx ) . If you're not sure if
49
+ your token is an OIDC ID token, check
50
+ [ the spec] ( https://openid.net/specs/openid-connect-core-1_0-final.html#rfc.section.2 )
51
+ for a list of all required fields.
52
+
53
+ OIDC requires the routes ` ${domain}/.well-known/jwks.json ` and
54
+ ` ${domain}/.well-known/openid-configuration ` . ` domain ` may include a path like
55
+ ` https://your.issuer.url.com/api/auth ` . This isn't common for third party auth
56
+ providers but may be useful if you're implementing OIDC on your own server.
57
+
39
58
## Client-side integration
40
59
41
60
### Integrating a new identity provider
Original file line number Diff line number Diff line change @@ -42,6 +42,11 @@ export default {
42
42
[ RFC 7518] ( https://datatracker.ietf.org/doc/html/rfc7518#section-3.1 ) for more
43
43
details.
44
44
45
+ The ` issuer ` property must exactly match the ` iss ` field of the JWT used, and if
46
+ specified the ` applicationID ` property must exactly match the ` aud ` field. If
47
+ your JWT doesn't match, use a tool like [ jwt.io] ( https://jwt.io/ ) to view an JWT
48
+ and confirm these fields match exactly.
49
+
45
50
## Client-side integration
46
51
47
52
See the instructions for
You can’t perform that action at this time.
0 commit comments