Auth.js 73 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608
  1. "use strict";
  2. var _util = require("util");
  3. var _triggers = require("./triggers");
  4. var _logger = require("./logger");
  5. var _RestQuery = _interopRequireDefault(require("./RestQuery"));
  6. var _RestWrite = _interopRequireDefault(require("./RestWrite"));
  7. function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
  8. function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
  9. function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
  10. function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
  11. function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
  12. function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
  13. const Parse = require('parse/node');
  14. // An Auth object tells you who is requesting something and whether
  15. // the master key was used.
  16. // userObject is a Parse.User and can be null if there's no user.
  17. function Auth({
  18. config,
  19. cacheController = undefined,
  20. isMaster = false,
  21. isMaintenance = false,
  22. isReadOnly = false,
  23. user,
  24. installationId
  25. }) {
  26. this.config = config;
  27. this.cacheController = cacheController || config && config.cacheController;
  28. this.installationId = installationId;
  29. this.isMaster = isMaster;
  30. this.isMaintenance = isMaintenance;
  31. this.user = user;
  32. this.isReadOnly = isReadOnly;
  33. // Assuming a users roles won't change during a single request, we'll
  34. // only load them once.
  35. this.userRoles = [];
  36. this.fetchedRoles = false;
  37. this.rolePromise = null;
  38. }
  39. // Whether this auth could possibly modify the given user id.
  40. // It still could be forbidden via ACLs even if this returns true.
  41. Auth.prototype.isUnauthenticated = function () {
  42. if (this.isMaster) {
  43. return false;
  44. }
  45. if (this.isMaintenance) {
  46. return false;
  47. }
  48. if (this.user) {
  49. return false;
  50. }
  51. return true;
  52. };
  53. // A helper to get a master-level Auth object
  54. function master(config) {
  55. return new Auth({
  56. config,
  57. isMaster: true
  58. });
  59. }
  60. // A helper to get a maintenance-level Auth object
  61. function maintenance(config) {
  62. return new Auth({
  63. config,
  64. isMaintenance: true
  65. });
  66. }
  67. // A helper to get a master-level Auth object
  68. function readOnly(config) {
  69. return new Auth({
  70. config,
  71. isMaster: true,
  72. isReadOnly: true
  73. });
  74. }
  75. // A helper to get a nobody-level Auth object
  76. function nobody(config) {
  77. return new Auth({
  78. config,
  79. isMaster: false
  80. });
  81. }
  82. /**
  83. * Checks whether session should be updated based on last update time & session length.
  84. */
  85. function shouldUpdateSessionExpiry(config, session) {
  86. const resetAfter = config.sessionLength / 2;
  87. const lastUpdated = new Date(session === null || session === void 0 ? void 0 : session.updatedAt);
  88. const skipRange = new Date();
  89. skipRange.setTime(skipRange.getTime() - resetAfter * 1000);
  90. return lastUpdated <= skipRange;
  91. }
  92. const throttle = {};
  93. const renewSessionIfNeeded = async ({
  94. config,
  95. session,
  96. sessionToken
  97. }) => {
  98. if (!(config !== null && config !== void 0 && config.extendSessionOnUse)) {
  99. return;
  100. }
  101. clearTimeout(throttle[sessionToken]);
  102. throttle[sessionToken] = setTimeout(async () => {
  103. try {
  104. if (!session) {
  105. const query = await (0, _RestQuery.default)({
  106. method: _RestQuery.default.Method.get,
  107. config,
  108. auth: master(config),
  109. runBeforeFind: false,
  110. className: '_Session',
  111. restWhere: {
  112. sessionToken
  113. },
  114. restOptions: {
  115. limit: 1
  116. }
  117. });
  118. const {
  119. results
  120. } = await query.execute();
  121. session = results[0];
  122. }
  123. if (!shouldUpdateSessionExpiry(config, session) || !session) {
  124. return;
  125. }
  126. const expiresAt = config.generateSessionExpiresAt();
  127. await new _RestWrite.default(config, master(config), '_Session', {
  128. objectId: session.objectId
  129. }, {
  130. expiresAt: Parse._encode(expiresAt)
  131. }).execute();
  132. } catch (e) {
  133. if ((e === null || e === void 0 ? void 0 : e.code) !== Parse.Error.OBJECT_NOT_FOUND) {
  134. _logger.logger.error('Could not update session expiry: ', e);
  135. }
  136. }
  137. }, 500);
  138. };
  139. // Returns a promise that resolves to an Auth object
  140. const getAuthForSessionToken = async function ({
  141. config,
  142. cacheController,
  143. sessionToken,
  144. installationId
  145. }) {
  146. cacheController = cacheController || config && config.cacheController;
  147. if (cacheController) {
  148. const userJSON = await cacheController.user.get(sessionToken);
  149. if (userJSON) {
  150. const cachedUser = Parse.Object.fromJSON(userJSON);
  151. renewSessionIfNeeded({
  152. config,
  153. sessionToken
  154. });
  155. return Promise.resolve(new Auth({
  156. config,
  157. cacheController,
  158. isMaster: false,
  159. installationId,
  160. user: cachedUser
  161. }));
  162. }
  163. }
  164. let results;
  165. if (config) {
  166. const restOptions = {
  167. limit: 1,
  168. include: 'user'
  169. };
  170. const RestQuery = require('./RestQuery');
  171. const query = await RestQuery({
  172. method: RestQuery.Method.get,
  173. config,
  174. runBeforeFind: false,
  175. auth: master(config),
  176. className: '_Session',
  177. restWhere: {
  178. sessionToken
  179. },
  180. restOptions
  181. });
  182. results = (await query.execute()).results;
  183. } else {
  184. results = (await new Parse.Query(Parse.Session).limit(1).include('user').equalTo('sessionToken', sessionToken).find({
  185. useMasterKey: true
  186. })).map(obj => obj.toJSON());
  187. }
  188. if (results.length !== 1 || !results[0]['user']) {
  189. throw new Parse.Error(Parse.Error.INVALID_SESSION_TOKEN, 'Invalid session token');
  190. }
  191. const session = results[0];
  192. const now = new Date(),
  193. expiresAt = session.expiresAt ? new Date(session.expiresAt.iso) : undefined;
  194. if (expiresAt < now) {
  195. throw new Parse.Error(Parse.Error.INVALID_SESSION_TOKEN, 'Session token is expired.');
  196. }
  197. const obj = session.user;
  198. if (typeof obj['objectId'] === 'string' && obj['objectId'].startsWith('role:')) {
  199. throw new Parse.Error(Parse.Error.INTERNAL_SERVER_ERROR, 'Invalid object ID.');
  200. }
  201. delete obj.password;
  202. obj['className'] = '_User';
  203. obj['sessionToken'] = sessionToken;
  204. if (cacheController) {
  205. cacheController.user.put(sessionToken, obj);
  206. }
  207. renewSessionIfNeeded({
  208. config,
  209. session,
  210. sessionToken
  211. });
  212. const userObject = Parse.Object.fromJSON(obj);
  213. return new Auth({
  214. config,
  215. cacheController,
  216. isMaster: false,
  217. installationId,
  218. user: userObject
  219. });
  220. };
  221. var getAuthForLegacySessionToken = async function ({
  222. config,
  223. sessionToken,
  224. installationId
  225. }) {
  226. var restOptions = {
  227. limit: 1
  228. };
  229. const RestQuery = require('./RestQuery');
  230. var query = await RestQuery({
  231. method: RestQuery.Method.get,
  232. config,
  233. runBeforeFind: false,
  234. auth: master(config),
  235. className: '_User',
  236. restWhere: {
  237. _session_token: sessionToken
  238. },
  239. restOptions
  240. });
  241. return query.execute().then(response => {
  242. var results = response.results;
  243. if (results.length !== 1) {
  244. throw new Parse.Error(Parse.Error.INVALID_SESSION_TOKEN, 'invalid legacy session token');
  245. }
  246. const obj = results[0];
  247. obj.className = '_User';
  248. const userObject = Parse.Object.fromJSON(obj);
  249. return new Auth({
  250. config,
  251. isMaster: false,
  252. installationId,
  253. user: userObject
  254. });
  255. });
  256. };
  257. // Returns a promise that resolves to an array of role names
  258. Auth.prototype.getUserRoles = function () {
  259. if (this.isMaster || this.isMaintenance || !this.user) {
  260. return Promise.resolve([]);
  261. }
  262. if (this.fetchedRoles) {
  263. return Promise.resolve(this.userRoles);
  264. }
  265. if (this.rolePromise) {
  266. return this.rolePromise;
  267. }
  268. this.rolePromise = this._loadRoles();
  269. return this.rolePromise;
  270. };
  271. Auth.prototype.getRolesForUser = async function () {
  272. //Stack all Parse.Role
  273. const results = [];
  274. if (this.config) {
  275. const restWhere = {
  276. users: {
  277. __type: 'Pointer',
  278. className: '_User',
  279. objectId: this.user.id
  280. }
  281. };
  282. const RestQuery = require('./RestQuery');
  283. const query = await RestQuery({
  284. method: RestQuery.Method.find,
  285. runBeforeFind: false,
  286. config: this.config,
  287. auth: master(this.config),
  288. className: '_Role',
  289. restWhere
  290. });
  291. await query.each(result => results.push(result));
  292. } else {
  293. await new Parse.Query(Parse.Role).equalTo('users', this.user).each(result => results.push(result.toJSON()), {
  294. useMasterKey: true
  295. });
  296. }
  297. return results;
  298. };
  299. // Iterates through the role tree and compiles a user's roles
  300. Auth.prototype._loadRoles = async function () {
  301. if (this.cacheController) {
  302. const cachedRoles = await this.cacheController.role.get(this.user.id);
  303. if (cachedRoles != null) {
  304. this.fetchedRoles = true;
  305. this.userRoles = cachedRoles;
  306. return cachedRoles;
  307. }
  308. }
  309. // First get the role ids this user is directly a member of
  310. const results = await this.getRolesForUser();
  311. if (!results.length) {
  312. this.userRoles = [];
  313. this.fetchedRoles = true;
  314. this.rolePromise = null;
  315. this.cacheRoles();
  316. return this.userRoles;
  317. }
  318. const rolesMap = results.reduce((m, r) => {
  319. m.names.push(r.name);
  320. m.ids.push(r.objectId);
  321. return m;
  322. }, {
  323. ids: [],
  324. names: []
  325. });
  326. // run the recursive finding
  327. const roleNames = await this._getAllRolesNamesForRoleIds(rolesMap.ids, rolesMap.names);
  328. this.userRoles = roleNames.map(r => {
  329. return 'role:' + r;
  330. });
  331. this.fetchedRoles = true;
  332. this.rolePromise = null;
  333. this.cacheRoles();
  334. return this.userRoles;
  335. };
  336. Auth.prototype.cacheRoles = function () {
  337. if (!this.cacheController) {
  338. return false;
  339. }
  340. this.cacheController.role.put(this.user.id, Array(...this.userRoles));
  341. return true;
  342. };
  343. Auth.prototype.clearRoleCache = function (sessionToken) {
  344. if (!this.cacheController) {
  345. return false;
  346. }
  347. this.cacheController.role.del(this.user.id);
  348. this.cacheController.user.del(sessionToken);
  349. return true;
  350. };
  351. Auth.prototype.getRolesByIds = async function (ins) {
  352. const results = [];
  353. // Build an OR query across all parentRoles
  354. if (!this.config) {
  355. await new Parse.Query(Parse.Role).containedIn('roles', ins.map(id => {
  356. const role = new Parse.Object(Parse.Role);
  357. role.id = id;
  358. return role;
  359. })).each(result => results.push(result.toJSON()), {
  360. useMasterKey: true
  361. });
  362. } else {
  363. const roles = ins.map(id => {
  364. return {
  365. __type: 'Pointer',
  366. className: '_Role',
  367. objectId: id
  368. };
  369. });
  370. const restWhere = {
  371. roles: {
  372. $in: roles
  373. }
  374. };
  375. const RestQuery = require('./RestQuery');
  376. const query = await RestQuery({
  377. method: RestQuery.Method.find,
  378. config: this.config,
  379. runBeforeFind: false,
  380. auth: master(this.config),
  381. className: '_Role',
  382. restWhere
  383. });
  384. await query.each(result => results.push(result));
  385. }
  386. return results;
  387. };
  388. // Given a list of roleIds, find all the parent roles, returns a promise with all names
  389. Auth.prototype._getAllRolesNamesForRoleIds = function (roleIDs, names = [], queriedRoles = {}) {
  390. const ins = roleIDs.filter(roleID => {
  391. const wasQueried = queriedRoles[roleID] !== true;
  392. queriedRoles[roleID] = true;
  393. return wasQueried;
  394. });
  395. // all roles are accounted for, return the names
  396. if (ins.length == 0) {
  397. return Promise.resolve([...new Set(names)]);
  398. }
  399. return this.getRolesByIds(ins).then(results => {
  400. // Nothing found
  401. if (!results.length) {
  402. return Promise.resolve(names);
  403. }
  404. // Map the results with all Ids and names
  405. const resultMap = results.reduce((memo, role) => {
  406. memo.names.push(role.name);
  407. memo.ids.push(role.objectId);
  408. return memo;
  409. }, {
  410. ids: [],
  411. names: []
  412. });
  413. // store the new found names
  414. names = names.concat(resultMap.names);
  415. // find the next ones, circular roles will be cut
  416. return this._getAllRolesNamesForRoleIds(resultMap.ids, names, queriedRoles);
  417. }).then(names => {
  418. return Promise.resolve([...new Set(names)]);
  419. });
  420. };
  421. const findUsersWithAuthData = (config, authData) => {
  422. const providers = Object.keys(authData);
  423. const query = providers.reduce((memo, provider) => {
  424. if (!authData[provider] || authData && !authData[provider].id) {
  425. return memo;
  426. }
  427. const queryKey = `authData.${provider}.id`;
  428. const query = {};
  429. query[queryKey] = authData[provider].id;
  430. memo.push(query);
  431. return memo;
  432. }, []).filter(q => {
  433. return typeof q !== 'undefined';
  434. });
  435. return query.length > 0 ? config.database.find('_User', {
  436. $or: query
  437. }, {
  438. limit: 2
  439. }) : Promise.resolve([]);
  440. };
  441. const hasMutatedAuthData = (authData, userAuthData) => {
  442. if (!userAuthData) return {
  443. hasMutatedAuthData: true,
  444. mutatedAuthData: authData
  445. };
  446. const mutatedAuthData = {};
  447. Object.keys(authData).forEach(provider => {
  448. // Anonymous provider is not handled this way
  449. if (provider === 'anonymous') return;
  450. const providerData = authData[provider];
  451. const userProviderAuthData = userAuthData[provider];
  452. if (!(0, _util.isDeepStrictEqual)(providerData, userProviderAuthData)) {
  453. mutatedAuthData[provider] = providerData;
  454. }
  455. });
  456. const hasMutatedAuthData = Object.keys(mutatedAuthData).length !== 0;
  457. return {
  458. hasMutatedAuthData,
  459. mutatedAuthData
  460. };
  461. };
  462. const checkIfUserHasProvidedConfiguredProvidersForLogin = (req = {}, authData = {}, userAuthData = {}, config) => {
  463. const savedUserProviders = Object.keys(userAuthData).map(provider => ({
  464. name: provider,
  465. adapter: config.authDataManager.getValidatorForProvider(provider).adapter
  466. }));
  467. const hasProvidedASoloProvider = savedUserProviders.some(provider => provider && provider.adapter && provider.adapter.policy === 'solo' && authData[provider.name]);
  468. // Solo providers can be considered as safe, so we do not have to check if the user needs
  469. // to provide an additional provider to login. An auth adapter with "solo" (like webauthn) means
  470. // no "additional" auth needs to be provided to login (like OTP, MFA)
  471. if (hasProvidedASoloProvider) {
  472. return;
  473. }
  474. const additionProvidersNotFound = [];
  475. const hasProvidedAtLeastOneAdditionalProvider = savedUserProviders.some(provider => {
  476. let policy = provider.adapter.policy;
  477. if (typeof policy === 'function') {
  478. const requestObject = {
  479. ip: req.config.ip,
  480. user: req.auth.user,
  481. master: req.auth.isMaster
  482. };
  483. policy = policy.call(provider.adapter, requestObject, userAuthData[provider.name]);
  484. }
  485. if (policy === 'additional') {
  486. if (authData[provider.name]) {
  487. return true;
  488. } else {
  489. // Push missing provider for error message
  490. additionProvidersNotFound.push(provider.name);
  491. }
  492. }
  493. });
  494. if (hasProvidedAtLeastOneAdditionalProvider || !additionProvidersNotFound.length) {
  495. return;
  496. }
  497. throw new Parse.Error(Parse.Error.OTHER_CAUSE, `Missing additional authData ${additionProvidersNotFound.join(',')}`);
  498. };
  499. // Validate each authData step-by-step and return the provider responses
  500. const handleAuthDataValidation = async (authData, req, foundUser) => {
  501. let user;
  502. if (foundUser) {
  503. user = Parse.User.fromJSON(_objectSpread({
  504. className: '_User'
  505. }, foundUser));
  506. // Find user by session and current objectId; only pass user if it's the current user or master key is provided
  507. } else if (req.auth && req.auth.user && typeof req.getUserId === 'function' && req.getUserId() === req.auth.user.id || req.auth && req.auth.isMaster && typeof req.getUserId === 'function' && req.getUserId()) {
  508. user = new Parse.User();
  509. user.id = req.auth.isMaster ? req.getUserId() : req.auth.user.id;
  510. await user.fetch({
  511. useMasterKey: true
  512. });
  513. }
  514. const {
  515. updatedObject
  516. } = req.buildParseObjects();
  517. const requestObject = (0, _triggers.getRequestObject)(undefined, req.auth, updatedObject, user, req.config);
  518. // Perform validation as step-by-step pipeline for better error consistency
  519. // and also to avoid to trigger a provider (like OTP SMS) if another one fails
  520. const acc = {
  521. authData: {},
  522. authDataResponse: {}
  523. };
  524. const authKeys = Object.keys(authData).sort();
  525. for (const provider of authKeys) {
  526. let method = '';
  527. try {
  528. if (authData[provider] === null) {
  529. acc.authData[provider] = null;
  530. continue;
  531. }
  532. const {
  533. validator
  534. } = req.config.authDataManager.getValidatorForProvider(provider);
  535. const authProvider = (req.config.auth || {})[provider] || {};
  536. if (!validator || authProvider.enabled === false) {
  537. throw new Parse.Error(Parse.Error.UNSUPPORTED_SERVICE, 'This authentication method is unsupported.');
  538. }
  539. let validationResult = await validator(authData[provider], req, user, requestObject);
  540. method = validationResult && validationResult.method;
  541. requestObject.triggerName = method;
  542. if (validationResult && validationResult.validator) {
  543. validationResult = await validationResult.validator();
  544. }
  545. if (!validationResult) {
  546. acc.authData[provider] = authData[provider];
  547. continue;
  548. }
  549. if (!Object.keys(validationResult).length) {
  550. acc.authData[provider] = authData[provider];
  551. continue;
  552. }
  553. if (validationResult.response) {
  554. acc.authDataResponse[provider] = validationResult.response;
  555. }
  556. // Some auth providers after initialization will avoid to replace authData already stored
  557. if (!validationResult.doNotSave) {
  558. acc.authData[provider] = validationResult.save || authData[provider];
  559. }
  560. } catch (err) {
  561. const e = (0, _triggers.resolveError)(err, {
  562. code: Parse.Error.SCRIPT_FAILED,
  563. message: 'Auth failed. Unknown error.'
  564. });
  565. const userString = req.auth && req.auth.user ? req.auth.user.id : req.data.objectId || undefined;
  566. _logger.logger.error(`Failed running auth step ${method} for ${provider} for user ${userString} with Error: ` + JSON.stringify(e), {
  567. authenticationStep: method,
  568. error: e,
  569. user: userString,
  570. provider
  571. });
  572. throw e;
  573. }
  574. }
  575. return acc;
  576. };
  577. module.exports = {
  578. Auth,
  579. master,
  580. maintenance,
  581. nobody,
  582. readOnly,
  583. shouldUpdateSessionExpiry,
  584. getAuthForSessionToken,
  585. getAuthForLegacySessionToken,
  586. findUsersWithAuthData,
  587. hasMutatedAuthData,
  588. checkIfUserHasProvidedConfiguredProvidersForLogin,
  589. handleAuthDataValidation
  590. };
  591. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfdXRpbCIsInJlcXVpcmUiLCJfdHJpZ2dlcnMiLCJfbG9nZ2VyIiwiX1Jlc3RRdWVyeSIsIl9pbnRlcm9wUmVxdWlyZURlZmF1bHQiLCJfUmVzdFdyaXRlIiwiZSIsIl9fZXNNb2R1bGUiLCJkZWZhdWx0Iiwib3duS2V5cyIsInIiLCJ0IiwiT2JqZWN0Iiwia2V5cyIsImdldE93blByb3BlcnR5U3ltYm9scyIsIm8iLCJmaWx0ZXIiLCJnZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IiLCJlbnVtZXJhYmxlIiwicHVzaCIsImFwcGx5IiwiX29iamVjdFNwcmVhZCIsImFyZ3VtZW50cyIsImxlbmd0aCIsImZvckVhY2giLCJfZGVmaW5lUHJvcGVydHkiLCJnZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3JzIiwiZGVmaW5lUHJvcGVydGllcyIsImRlZmluZVByb3BlcnR5IiwiX3RvUHJvcGVydHlLZXkiLCJ2YWx1ZSIsImNvbmZpZ3VyYWJsZSIsIndyaXRhYmxlIiwiaSIsIl90b1ByaW1pdGl2ZSIsIlN5bWJvbCIsInR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