File tree 2 files changed +6
-13
lines changed
docs/pages/getting-started/providers
packages/core/src/providers
2 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { Code } from "@/components/Code"
7
7
8
8
## Resources
9
9
10
- - [ Descope OIDC] ( https://docs.descope.com/customize/auth /oidc )
10
+ - [ Descope OIDC] ( https://docs.descope.com/manage/idpapplications /oidc/ )
11
11
- [ Descope Flows] ( https://docs.descope.com/customize/flows )
12
12
13
13
## Setup
@@ -43,15 +43,14 @@ https://example.com/auth/callback/descope
43
43
```
44
44
AUTH_DESCOPE_ID
45
45
AUTH_DESCOPE_SECRET
46
- AUTH_DESCOPE_ISSUER
47
46
```
48
47
49
48
### Configuration
50
49
51
50
Follow these steps:
52
51
53
52
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/ )
55
54
56
55
Add the required environment variables from above to your ` .env.local ` file.
57
56
Original file line number Diff line number Diff line change @@ -50,14 +50,7 @@ export interface DescopeProfile {
50
50
* import Descope from "@auth/core/providers/descope"
51
51
*
52
52
* 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] })
61
54
* ```
62
55
*
63
56
* ### Configuring Descope
@@ -71,8 +64,8 @@ export interface DescopeProfile {
71
64
*
72
65
* Get the following from the Descope's console:
73
66
* ```
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
76
69
* ```
77
70
*
78
71
* ### Resources
@@ -108,6 +101,7 @@ export default function Descope(
108
101
bg : "#1C1C23" ,
109
102
text : "#ffffff" ,
110
103
} ,
104
+ checks : [ "pkce" , "state" ] ,
111
105
options : config ,
112
106
}
113
107
}
You can’t perform that action at this time.
0 commit comments