@absolutejs/auth 0.49.1 → 0.49.3
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/cli/migrate.js +8 -2
- package/dist/cli/migrate.js.map +3 -3
- package/dist/htmx/index.js +8 -2
- package/dist/htmx/index.js.map +3 -3
- package/dist/index.js +14 -2
- package/dist/index.js.map +4 -4
- package/dist/providers/index.js +8 -2
- package/dist/providers/index.js.map +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -878,11 +878,17 @@ var providers = defineProviders({
|
|
|
878
878
|
profileRequest: {
|
|
879
879
|
authIn: "header",
|
|
880
880
|
encoding: "application/json",
|
|
881
|
+
headers: {
|
|
882
|
+
Version: "2021-07-28"
|
|
883
|
+
},
|
|
881
884
|
method: "GET",
|
|
882
885
|
url: "https://services.leadconnectorhq.com/users/me"
|
|
883
886
|
},
|
|
884
887
|
scopeRequired: true,
|
|
885
|
-
subject: ["
|
|
888
|
+
subject: ["locationId"],
|
|
889
|
+
subjectBySource: {
|
|
890
|
+
tokenResponse: ["locationId"]
|
|
891
|
+
},
|
|
886
892
|
subjectType: "string",
|
|
887
893
|
tokenRequest: {
|
|
888
894
|
authIn: "body",
|
|
@@ -3338,6 +3344,12 @@ var resolveOAuthAuthorization = async ({
|
|
|
3338
3344
|
providerConfiguration: providers[authProvider],
|
|
3339
3345
|
source: "idToken"
|
|
3340
3346
|
});
|
|
3347
|
+
} else if (providers[authProvider].subjectBySource?.tokenResponse) {
|
|
3348
|
+
userIdentity = normalizeProviderIdentity({
|
|
3349
|
+
identity: tokenResponse,
|
|
3350
|
+
providerConfiguration: providers[authProvider],
|
|
3351
|
+
source: "tokenResponse"
|
|
3352
|
+
});
|
|
3341
3353
|
} else if (authProvider === "withings") {
|
|
3342
3354
|
userIdentity = { userid: tokenResponse.body.userid };
|
|
3343
3355
|
accessToken = tokenResponse.body.access_token;
|
|
@@ -27891,5 +27903,5 @@ export {
|
|
|
27891
27903
|
AuthIdentityConflictError
|
|
27892
27904
|
};
|
|
27893
27905
|
|
|
27894
|
-
//# debugId=
|
|
27906
|
+
//# debugId=178CE4DFADBEB75764756E2164756E21
|
|
27895
27907
|
//# sourceMappingURL=index.js.map
|