@rlynicrisis/link 0.0.8 → 0.0.9
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/package.json +1 -1
- package/src/link/client.ts +5 -1
package/package.json
CHANGED
package/src/link/client.ts
CHANGED
|
@@ -291,7 +291,11 @@ export class LinkClient extends EventEmitter {
|
|
|
291
291
|
|
|
292
292
|
try {
|
|
293
293
|
console.log('Refreshing access token via SSO...');
|
|
294
|
-
|
|
294
|
+
let ssoUrl = this.config.ssoUrl;
|
|
295
|
+
if (!ssoUrl.endsWith('/')) {
|
|
296
|
+
ssoUrl += '/';
|
|
297
|
+
}
|
|
298
|
+
const url = new URL('oauth2/token', ssoUrl);
|
|
295
299
|
|
|
296
300
|
// Assume client credentials (clientId/clientSecret) are encoded in basic auth or not needed?
|
|
297
301
|
// User input implies "Authorization: Basic Y2xpZW50SWQ6Y2xpZW50U2VjcmV0" (clientId:clientSecret)
|