@alien_org/sso-sdk-core 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +4 -4
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -44,7 +44,7 @@ export class AlienSsoSdkClient {
|
|
|
44
44
|
const codeVerifier = this.generateCodeVerifier();
|
|
45
45
|
const codeChallenge = await this.generateCodeChallenge(codeVerifier);
|
|
46
46
|
sessionStorage.setItem(STORAGE_KEY + 'code_verifier', codeVerifier);
|
|
47
|
-
const authorizeUrl = `${this.config.ssoBaseUrl}/authorize`;
|
|
47
|
+
const authorizeUrl = `${this.config.ssoBaseUrl}/sso/authorize`;
|
|
48
48
|
const authorizePayload = {
|
|
49
49
|
code_challenge: codeChallenge,
|
|
50
50
|
};
|
|
@@ -66,7 +66,7 @@ export class AlienSsoSdkClient {
|
|
|
66
66
|
};
|
|
67
67
|
PollRequestSchema.parse(pollPayload);
|
|
68
68
|
while (true) {
|
|
69
|
-
const response = await fetch(joinUrl(this.config.ssoBaseUrl, '/poll'), {
|
|
69
|
+
const response = await fetch(joinUrl(this.config.ssoBaseUrl, '/sso/poll'), {
|
|
70
70
|
method: 'POST',
|
|
71
71
|
headers: {
|
|
72
72
|
'Content-Type': 'application/json',
|
|
@@ -100,7 +100,7 @@ export class AlienSsoSdkClient {
|
|
|
100
100
|
code_verifier: codeVerifier,
|
|
101
101
|
};
|
|
102
102
|
ExchangeCodeRequestSchema.parse(exchangeCodePayload);
|
|
103
|
-
const response = await fetch(joinUrl(this.config.ssoBaseUrl, '/access_token/exchange'), {
|
|
103
|
+
const response = await fetch(joinUrl(this.config.ssoBaseUrl, '/sso/access_token/exchange'), {
|
|
104
104
|
method: 'POST',
|
|
105
105
|
headers: {
|
|
106
106
|
'Content-Type': 'application/json',
|
|
@@ -130,7 +130,7 @@ export class AlienSsoSdkClient {
|
|
|
130
130
|
access_token,
|
|
131
131
|
};
|
|
132
132
|
VerifyTokenRequestSchema.parse(verifyTokenPayload);
|
|
133
|
-
const response = await fetch(joinUrl(this.config.ssoBaseUrl, '/access_token/verify'), {
|
|
133
|
+
const response = await fetch(joinUrl(this.config.ssoBaseUrl, '/sso/access_token/verify'), {
|
|
134
134
|
method: 'POST',
|
|
135
135
|
headers: {
|
|
136
136
|
'Content-Type': 'application/json',
|