diff --git a/built/authorization_service_configuration.js b/built/authorization_service_configuration.js index 8d9879e..66de1c8 100644 --- a/built/authorization_service_configuration.js +++ b/built/authorization_service_configuration.js @@ -48,7 +48,8 @@ var AuthorizationServiceConfiguration = /** @class */ (function () { }; }; AuthorizationServiceConfiguration.fetchFromIssuer = function (openIdIssuerUrl, requestor) { - var fullUrl = openIdIssuerUrl + "/" + WELL_KNOWN_PATH + "/" + OPENID_CONFIGURATION; + var newUrl = openIdIssuerUrl.split('?'); + var fullUrl = newUrl[0] + "/" + WELL_KNOWN_PATH + "/" + OPENID_CONFIGURATION + (newUrl[1] ? '?' + newUrl[1] : ''); var requestorToUse = requestor || new xhr_1.JQueryRequestor(); return requestorToUse .xhr({ url: fullUrl, dataType: 'json', method: 'GET' }) @@ -57,4 +58,4 @@ var AuthorizationServiceConfiguration = /** @class */ (function () { return AuthorizationServiceConfiguration; }()); exports.AuthorizationServiceConfiguration = AuthorizationServiceConfiguration; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aG9yaXphdGlvbl9zZXJ2aWNlX2NvbmZpZ3VyYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvYXV0aG9yaXphdGlvbl9zZXJ2aWNlX2NvbmZpZ3VyYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7Ozs7Ozs7R0FZRzs7O0FBRUgsNkJBQWlEO0FBY2pEOzs7R0FHRztBQUNILElBQU0sZUFBZSxHQUFHLGFBQWEsQ0FBQztBQUV0Qzs7O0dBR0c7QUFDSCxJQUFNLG9CQUFvQixHQUFHLHNCQUFzQixDQUFDO0FBRXBEOzs7O0dBSUc7QUFDSDtJQU9FLDJDQUFZLE9BQThDO1FBQ3hELElBQUksQ0FBQyxxQkFBcUIsR0FBRyxPQUFPLENBQUMsc0JBQXNCLENBQUM7UUFDNUQsSUFBSSxDQUFDLGFBQWEsR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d1cmF0aW9uKGpzb24pKTtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 29f043f..34a0741 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@openid/appauth", - "version": "1.3.0", + "version": "1.3.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -1968,9 +1968,9 @@ } }, "lodash": { - "version": "4.17.20", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", - "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", "dev": true }, "lodash.memoize": { @@ -3162,9 +3162,9 @@ "dev": true }, "ws": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.4.tgz", - "integrity": "sha512-Qm8k8ojNQIMx7S+Zp8u/uHOx7Qazv3Yv4q68MiWWWOJhiwG5W3x7iqmRtJo8xxrciZUY4vRxUTJCKuRnF28ZZw==", + "version": "7.4.6", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz", + "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==", "dev": true }, "xtend": { diff --git a/package.json b/package.json index 7f1d4eb..e1fbed2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@openid/appauth", - "version": "1.3.1", + "version": "1.3.2", "description": "A general purpose OAuth client.", "author": "The OpenID Foundation", "license": "Apache-2.0", diff --git a/src/authorization_service_configuration.ts b/src/authorization_service_configuration.ts index a8c2dbf..22c4203 100644 --- a/src/authorization_service_configuration.ts +++ b/src/authorization_service_configuration.ts @@ -70,7 +70,9 @@ export class AuthorizationServiceConfiguration { static fetchFromIssuer(openIdIssuerUrl: string, requestor?: Requestor): Promise { - const fullUrl = `${openIdIssuerUrl}/${WELL_KNOWN_PATH}/${OPENID_CONFIGURATION}`; + const newUrl = openIdIssuerUrl.split('?'); + const fullUrl = `${newUrl[0]}/${WELL_KNOWN_PATH}/${OPENID_CONFIGURATION}${ + newUrl[1] ? '?' + newUrl[1] : ''}`; const requestorToUse = requestor || new JQueryRequestor();