Skip to content

Commit 4bec046

Browse files
committed
chore(sailpoint): cleanup example code
1 parent 0f2cec5 commit 4bec046

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,17 @@ import { env } from "$env/dynamic/prviate"
117117
export const { handle, signIn, signOut } = SvelteKitAuth({
118118
providers: [
119119
{
120-
id: "identitySecureCloud",
121-
name: "Identity Secure Cloud",
120+
id: "sailpoint",
121+
name: "SailPoint",
122122
type: "oauth",
123-
clientId: env.ISC_CLIENT_ID!,
124-
clientSecret: env.ISC_CLIENT_SECRET!,
123+
clientId: env.AUTH_SAILPOINT_ID!,
124+
clientSecret: env.AUTH_SAILPOINT_SECRET!,
125125
authorization: {
126-
url: `${env.ISC_BASE_URL!}/oauth/authorize`,
126+
url: `${env.AUTH_SAILPOINT_BASE_URL!}/oauth/authorize`,
127127
params: { scope: "sp:scopes:all" },
128128
},
129-
token: `${env.ISC_BASE_API_URL!}/oauth/token`,
130-
userinfo: `${env.ISC_BASE_API_URL!}/oauth/userinfo`,
129+
token: `${env.AUTH_SAILPOINT_BASE_API_URL!}/oauth/token`,
130+
userinfo: `${env.AUTH_SAILPOINT_BASE_API_URL!}/oauth/userinfo`,
131131
profile(profile) {
132132
return {
133133
id: profile.id,
@@ -153,17 +153,17 @@ app.use(
153153
ExpressAuth({
154154
providers: [
155155
{
156-
id: "identitySecureCloud",
157-
name: "Identity Secure Cloud",
156+
id: "sailpoint",
157+
name: "SailPoint",
158158
type: "oauth",
159-
clientId: process.env.ISC_CLIENT_ID!,
160-
clientSecret: process.env.ISC_CLIENT_SECRET!,
159+
clientId: process.env.AUTH_SAILPOINT_ID!,
160+
clientSecret: process.env.AUTH_SAILPOINT_SECRET!,
161161
authorization: {
162-
url: `${process.env.ISC_BASE_URL!}/oauth/authorize`,
162+
url: `${process.env.AUTH_SAILPOINT_BASE_URL!}/oauth/authorize`,
163163
params: { scope: "sp:scopes:all" },
164164
},
165-
token: `${process.env.ISC_BASE_API_URL!}/oauth/token`,
166-
userinfo: `${process.env.ISC_BASE_API_URL!}/oauth/userinfo`,
165+
token: `${process.env.AUTH_SAILPOINT_BASE_API_URL!}/oauth/token`,
166+
userinfo: `${process.env.AUTH_SAILPOINT_BASE_API_URL!}/oauth/userinfo`,
167167
profile(profile) {
168168
return {
169169
id: profile.id,

0 commit comments

Comments
 (0)