Skip to content

Commit 0d73205

Browse files
gaokevin1ndom91balazsorban44
authored
fix(providers): update Descope docs, tweak default config (nextauthjs#11377)
* Updated Descope Docs * Update descope.mdx * Update descope.mdx * Update descope.mdx * Update descope.ts * Update descope.ts --------- Co-authored-by: Nico Domino <[email protected]> Co-authored-by: Balázs Orbán <[email protected]>
1 parent bffb308 commit 0d73205

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

docs/pages/getting-started/providers/descope.mdx

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Code } from "@/components/Code"
77

88
## Resources
99

10-
- [Descope OIDC](https://docs.descope.com/customize/auth/oidc)
10+
- [Descope OIDC](https://docs.descope.com/manage/idpapplications/oidc/)
1111
- [Descope Flows](https://docs.descope.com/customize/flows)
1212

1313
## Setup
@@ -43,15 +43,14 @@ https://example.com/auth/callback/descope
4343
```
4444
AUTH_DESCOPE_ID
4545
AUTH_DESCOPE_SECRET
46-
AUTH_DESCOPE_ISSUER
4746
```
4847

4948
### Configuration
5049

5150
Follow these steps:
5251

5352
1. Log into the [Descope console](https://app.descope.com)
54-
2. Follow the [OIDC instructions](https://docs.descope.com/customize/auth/oidc)
53+
2. Follow the [OIDC instructions](https://docs.descope.com/manage/idpapplications/oidc/)
5554

5655
Add the required environment variables from above to your `.env.local` file.
5756

packages/core/src/providers/descope.ts

+4-10
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,7 @@ export interface DescopeProfile {
5050
* import Descope from "@auth/core/providers/descope"
5151
*
5252
* const request = new Request(origin)
53-
* const response = await Auth(request, {
54-
* providers: [
55-
* Descope({
56-
* clientId: DESCOPE_ID,
57-
* clientSecret: DESCOPE_SECRET,
58-
* }),
59-
* ],
60-
* })
53+
* const response = await Auth(request, { providers: [Descope] })
6154
* ```
6255
*
6356
* ### Configuring Descope
@@ -71,8 +64,8 @@ export interface DescopeProfile {
7164
*
7265
* Get the following from the Descope's console:
7366
* ```
74-
* DESCOPE_ID="<Descope Issuer's last url segment>" # Descope's Issuer can be found in "Authentication Methods > SSO > Identity Provider" (Can also be taken from "Project > Project ID")
75-
* DESCOPE_SECRET="<Descope Access Key>" # Manage > Access Keys
67+
* AUTH_DESCOPE_ID="<Descope Issuer's last url segment>" # Descope's Issuer can be found in "Authentication Methods > SSO > Identity Provider" (Can also be taken from "Project > Project ID")
68+
* AUTH_DESCOPE_SECRET="<Descope Access Key>" # Manage > Access Keys
7669
* ```
7770
*
7871
* ### Resources
@@ -108,6 +101,7 @@ export default function Descope(
108101
bg: "#1C1C23",
109102
text: "#ffffff",
110103
},
104+
checks: ["pkce", "state"],
111105
options: config,
112106
}
113107
}

0 commit comments

Comments
 (0)