@axinom/mosaic-user-auth 0.3.1-rc.4 → 0.3.1-rc.7
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/index.es.js +58 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +58 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -56,7 +56,7 @@ function commonjsRequire () {
|
|
|
56
56
|
|
|
57
57
|
var enums = createCommonjsModule(function (module, exports) {
|
|
58
58
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59
|
-
exports.CheckOtpResponseCode = exports.CompleteUserSignUpResponseCode = exports.UserSignUpResponseCode = exports.ROPCPasswordResponseCode = exports.ROPCSignInResponseCode = exports.IdpConfigurationResponseCode = exports.SignOutResponseCode = exports.TokenResponseCode = void 0;
|
|
59
|
+
exports.IdpProtocol = exports.CheckOtpResponseCode = exports.CompleteUserSignUpResponseCode = exports.UserSignUpResponseCode = exports.ROPCPasswordResponseCode = exports.ROPCSignInResponseCode = exports.IdpConfigurationResponseCode = exports.SignOutResponseCode = exports.TokenResponseCode = void 0;
|
|
60
60
|
/**
|
|
61
61
|
* Token response code from User Service Auth API
|
|
62
62
|
*/
|
|
@@ -138,6 +138,62 @@ var CheckOtpResponseCode;
|
|
|
138
138
|
CheckOtpResponseCode["ERROR"] = "ERROR";
|
|
139
139
|
CheckOtpResponseCode["SERVICE_CONFIGURATION_ERROR"] = "SERVICE_CONFIGURATION_ERROR";
|
|
140
140
|
})(CheckOtpResponseCode = exports.CheckOtpResponseCode || (exports.CheckOtpResponseCode = {}));
|
|
141
|
+
var IdpProtocol;
|
|
142
|
+
(function (IdpProtocol) {
|
|
143
|
+
IdpProtocol["OIDC"] = "OIDC";
|
|
144
|
+
IdpProtocol["OAUTH2"] = "OAUTH2";
|
|
145
|
+
IdpProtocol["DELEGATED"] = "DELEGATED";
|
|
146
|
+
})(IdpProtocol = exports.IdpProtocol || (exports.IdpProtocol = {}));
|
|
147
|
+
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
var constants = createCommonjsModule(function (module, exports) {
|
|
151
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
152
|
+
exports.managedIdProviderDefaults = void 0;
|
|
153
|
+
|
|
154
|
+
exports.managedIdProviderDefaults = {
|
|
155
|
+
AX_GOOGLE: {
|
|
156
|
+
discoveryDocumentUrl: 'https://accounts.google.com/.well-known/openid-configuration',
|
|
157
|
+
providerIconUrl: 'https://developers.google.com/identity/images/g-logo.png',
|
|
158
|
+
additionalParams: {
|
|
159
|
+
access_type: 'offline',
|
|
160
|
+
},
|
|
161
|
+
scopes: [
|
|
162
|
+
{ name: 'openid', default: true },
|
|
163
|
+
{ name: 'email', default: true },
|
|
164
|
+
{ name: 'profile', default: true },
|
|
165
|
+
],
|
|
166
|
+
protocol: enums.IdpProtocol.OIDC,
|
|
167
|
+
},
|
|
168
|
+
AX_FACEBOOK: {
|
|
169
|
+
authorizationEndpointUrl: 'https://www.facebook.com/dialog/oauth',
|
|
170
|
+
tokenEndpointUrl: 'https://graph.facebook.com/oauth/access_token',
|
|
171
|
+
userInfoEndpointUrl: 'https://graph.facebook.com/me',
|
|
172
|
+
scopes: [{ name: 'email', default: true }],
|
|
173
|
+
protocol: enums.IdpProtocol.OAUTH2,
|
|
174
|
+
},
|
|
175
|
+
AX_APPLE: {
|
|
176
|
+
discoveryDocumentUrl: 'https://appleid.apple.com/.well-known/openid-configuration',
|
|
177
|
+
additionalParams: {
|
|
178
|
+
response_mode: 'form_post',
|
|
179
|
+
},
|
|
180
|
+
scopes: [
|
|
181
|
+
{ name: 'openid', default: true },
|
|
182
|
+
{ name: 'email', default: true },
|
|
183
|
+
{ name: 'name', default: true },
|
|
184
|
+
],
|
|
185
|
+
protocol: enums.IdpProtocol.OIDC,
|
|
186
|
+
},
|
|
187
|
+
AX_AUTH: {
|
|
188
|
+
scopes: [
|
|
189
|
+
{ name: 'openid', default: true },
|
|
190
|
+
{ name: 'email', default: true },
|
|
191
|
+
{ name: 'profile', default: true },
|
|
192
|
+
{ name: 'offline_access', default: true },
|
|
193
|
+
],
|
|
194
|
+
protocol: enums.IdpProtocol.OIDC,
|
|
195
|
+
},
|
|
196
|
+
};
|
|
141
197
|
|
|
142
198
|
});
|
|
143
199
|
|
|
@@ -158,6 +214,7 @@ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m
|
|
|
158
214
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
159
215
|
};
|
|
160
216
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
217
|
+
__exportStar(constants, exports);
|
|
161
218
|
__exportStar(enums, exports);
|
|
162
219
|
__exportStar(types, exports);
|
|
163
220
|
|