UNPKG

@cocalc/server

Version:

CoCalc server functionality: functions used by either the hub and the next.js server

32 lines 1.27 kB
"use strict"; /* * This file is part of CoCalc: Copyright © 2022 Sagemath, Inc. * License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.API_KEY_COOKIE_NAME = exports.BLACKLISTED_STRATEGIES = exports.DEFAULT_LOGIN_INFO = void 0; // various constants related to SSO authentication const base_path_1 = __importDefault(require("@cocalc/backend/base-path")); // This is the default derivation of user/profile fields. // Overwrite them via the configuration's login_info field. // Don't change it nilly-willy, since e.g. parse_openid_profile transforms // data to a profile, which will be processed by this description. exports.DEFAULT_LOGIN_INFO = { id: "id", first_name: "name.givenName", last_name: "name.familyName", emails: "emails[0].value", }; // see next/pages/auth/ROUTING.md for more informatino exports.BLACKLISTED_STRATEGIES = [ "sign-in", "sign-up", "try", "verify", "password-reset", ]; exports.API_KEY_COOKIE_NAME = base_path_1.default + "get_api_key"; //# sourceMappingURL=consts.js.map