Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@amplication/plugin-auth-basic

Package Overview
Dependencies
Maintainers
7
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplication/plugin-auth-basic - npm Package Compare versions

Comparing version 1.2.2 to 1.3.0

dist/constants.d.ts

2

dist/index.d.ts

@@ -1,2 +0,2 @@

import { DsgContext, CreateServerAuthParams, AmplicationPlugin, Events, CreateAdminUIParams } from "@amplication/code-gen-types";
import { AmplicationPlugin, CreateAdminUIParams, CreateServerAuthParams, DsgContext, Events } from "@amplication/code-gen-types";
declare class BasicAuthPlugin implements AmplicationPlugin {

@@ -3,0 +3,0 @@ register(): Events;

@@ -1,5 +0,222 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const path_1 = require("path");
const models_1 = require("@amplication/code-gen-types/src/models");
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({
/***/ 930:
/***/ ((__unused_webpack_module, exports) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.SortOrder = exports.Role = exports.QueryMode = exports.EnumWorkspaceMemberType = exports.EnumSubscriptionStatus = exports.EnumSubscriptionPlan = exports.EnumResourceType = exports.EnumPendingChangeOriginType = exports.EnumPendingChangeAction = exports.EnumMessagePatternConnectionOptions = exports.EnumGitProvider = exports.EnumGitOrganizationType = exports.EnumEntityPermissionType = exports.EnumEntityAction = exports.EnumDataType = exports.EnumBuildStatus = exports.EnumBlockType = exports.EnumAuthProviderType = exports.EnumActionStepStatus = exports.EnumActionLogLevel = void 0;
var EnumActionLogLevel;
(function (EnumActionLogLevel) {
EnumActionLogLevel["Debug"] = "Debug";
EnumActionLogLevel["Error"] = "Error";
EnumActionLogLevel["Info"] = "Info";
EnumActionLogLevel["Warning"] = "Warning";
})(EnumActionLogLevel = exports.EnumActionLogLevel || (exports.EnumActionLogLevel = {}));
var EnumActionStepStatus;
(function (EnumActionStepStatus) {
EnumActionStepStatus["Failed"] = "Failed";
EnumActionStepStatus["Running"] = "Running";
EnumActionStepStatus["Success"] = "Success";
EnumActionStepStatus["Waiting"] = "Waiting";
})(EnumActionStepStatus = exports.EnumActionStepStatus || (exports.EnumActionStepStatus = {}));
var EnumAuthProviderType;
(function (EnumAuthProviderType) {
EnumAuthProviderType["Http"] = "Http";
EnumAuthProviderType["Jwt"] = "Jwt";
})(EnumAuthProviderType = exports.EnumAuthProviderType || (exports.EnumAuthProviderType = {}));
var EnumBlockType;
(function (EnumBlockType) {
EnumBlockType["CanvasPage"] = "CanvasPage";
EnumBlockType["ConnectorFile"] = "ConnectorFile";
EnumBlockType["ConnectorRestApi"] = "ConnectorRestApi";
EnumBlockType["ConnectorRestApiCall"] = "ConnectorRestApiCall";
EnumBlockType["ConnectorSoapApi"] = "ConnectorSoapApi";
EnumBlockType["Document"] = "Document";
EnumBlockType["EntityApi"] = "EntityApi";
EnumBlockType["EntityApiEndpoint"] = "EntityApiEndpoint";
EnumBlockType["EntityPage"] = "EntityPage";
EnumBlockType["Flow"] = "Flow";
EnumBlockType["FlowApi"] = "FlowApi";
EnumBlockType["Layout"] = "Layout";
EnumBlockType["PluginInstallation"] = "PluginInstallation";
EnumBlockType["PluginOrder"] = "PluginOrder";
EnumBlockType["ProjectConfigurationSettings"] = "ProjectConfigurationSettings";
EnumBlockType["ServiceSettings"] = "ServiceSettings";
EnumBlockType["ServiceTopics"] = "ServiceTopics";
EnumBlockType["Topic"] = "Topic";
})(EnumBlockType = exports.EnumBlockType || (exports.EnumBlockType = {}));
var EnumBuildStatus;
(function (EnumBuildStatus) {
EnumBuildStatus["Completed"] = "Completed";
EnumBuildStatus["Failed"] = "Failed";
EnumBuildStatus["Invalid"] = "Invalid";
EnumBuildStatus["Running"] = "Running";
})(EnumBuildStatus = exports.EnumBuildStatus || (exports.EnumBuildStatus = {}));
var EnumDataType;
(function (EnumDataType) {
EnumDataType["Boolean"] = "Boolean";
EnumDataType["CreatedAt"] = "CreatedAt";
EnumDataType["DateTime"] = "DateTime";
EnumDataType["DecimalNumber"] = "DecimalNumber";
EnumDataType["Email"] = "Email";
EnumDataType["GeographicLocation"] = "GeographicLocation";
EnumDataType["Id"] = "Id";
EnumDataType["Json"] = "Json";
EnumDataType["Lookup"] = "Lookup";
EnumDataType["MultiLineText"] = "MultiLineText";
EnumDataType["MultiSelectOptionSet"] = "MultiSelectOptionSet";
EnumDataType["OptionSet"] = "OptionSet";
EnumDataType["Password"] = "Password";
EnumDataType["Roles"] = "Roles";
EnumDataType["SingleLineText"] = "SingleLineText";
EnumDataType["UpdatedAt"] = "UpdatedAt";
EnumDataType["Username"] = "Username";
EnumDataType["WholeNumber"] = "WholeNumber";
})(EnumDataType = exports.EnumDataType || (exports.EnumDataType = {}));
var EnumEntityAction;
(function (EnumEntityAction) {
EnumEntityAction["Create"] = "Create";
EnumEntityAction["Delete"] = "Delete";
EnumEntityAction["Search"] = "Search";
EnumEntityAction["Update"] = "Update";
EnumEntityAction["View"] = "View";
})(EnumEntityAction = exports.EnumEntityAction || (exports.EnumEntityAction = {}));
var EnumEntityPermissionType;
(function (EnumEntityPermissionType) {
EnumEntityPermissionType["AllRoles"] = "AllRoles";
EnumEntityPermissionType["Disabled"] = "Disabled";
EnumEntityPermissionType["Granular"] = "Granular";
EnumEntityPermissionType["Public"] = "Public";
})(EnumEntityPermissionType = exports.EnumEntityPermissionType || (exports.EnumEntityPermissionType = {}));
var EnumGitOrganizationType;
(function (EnumGitOrganizationType) {
EnumGitOrganizationType["Organization"] = "Organization";
EnumGitOrganizationType["User"] = "User";
})(EnumGitOrganizationType = exports.EnumGitOrganizationType || (exports.EnumGitOrganizationType = {}));
var EnumGitProvider;
(function (EnumGitProvider) {
EnumGitProvider["Github"] = "Github";
})(EnumGitProvider = exports.EnumGitProvider || (exports.EnumGitProvider = {}));
var EnumMessagePatternConnectionOptions;
(function (EnumMessagePatternConnectionOptions) {
EnumMessagePatternConnectionOptions["None"] = "None";
EnumMessagePatternConnectionOptions["Receive"] = "Receive";
EnumMessagePatternConnectionOptions["Send"] = "Send";
})(EnumMessagePatternConnectionOptions = exports.EnumMessagePatternConnectionOptions || (exports.EnumMessagePatternConnectionOptions = {}));
var EnumPendingChangeAction;
(function (EnumPendingChangeAction) {
EnumPendingChangeAction["Create"] = "Create";
EnumPendingChangeAction["Delete"] = "Delete";
EnumPendingChangeAction["Update"] = "Update";
})(EnumPendingChangeAction = exports.EnumPendingChangeAction || (exports.EnumPendingChangeAction = {}));
var EnumPendingChangeOriginType;
(function (EnumPendingChangeOriginType) {
EnumPendingChangeOriginType["Block"] = "Block";
EnumPendingChangeOriginType["Entity"] = "Entity";
})(EnumPendingChangeOriginType = exports.EnumPendingChangeOriginType || (exports.EnumPendingChangeOriginType = {}));
var EnumResourceType;
(function (EnumResourceType) {
EnumResourceType["MessageBroker"] = "MessageBroker";
EnumResourceType["ProjectConfiguration"] = "ProjectConfiguration";
EnumResourceType["Service"] = "Service";
})(EnumResourceType = exports.EnumResourceType || (exports.EnumResourceType = {}));
var EnumSubscriptionPlan;
(function (EnumSubscriptionPlan) {
EnumSubscriptionPlan["Business"] = "Business";
EnumSubscriptionPlan["Enterprise"] = "Enterprise";
EnumSubscriptionPlan["Pro"] = "Pro";
})(EnumSubscriptionPlan = exports.EnumSubscriptionPlan || (exports.EnumSubscriptionPlan = {}));
var EnumSubscriptionStatus;
(function (EnumSubscriptionStatus) {
EnumSubscriptionStatus["Active"] = "Active";
EnumSubscriptionStatus["Deleted"] = "Deleted";
EnumSubscriptionStatus["PastDue"] = "PastDue";
EnumSubscriptionStatus["Paused"] = "Paused";
EnumSubscriptionStatus["Trailing"] = "Trailing";
})(EnumSubscriptionStatus = exports.EnumSubscriptionStatus || (exports.EnumSubscriptionStatus = {}));
var EnumWorkspaceMemberType;
(function (EnumWorkspaceMemberType) {
EnumWorkspaceMemberType["Invitation"] = "Invitation";
EnumWorkspaceMemberType["User"] = "User";
})(EnumWorkspaceMemberType = exports.EnumWorkspaceMemberType || (exports.EnumWorkspaceMemberType = {}));
var QueryMode;
(function (QueryMode) {
QueryMode["Default"] = "Default";
QueryMode["Insensitive"] = "Insensitive";
})(QueryMode = exports.QueryMode || (exports.QueryMode = {}));
var Role;
(function (Role) {
Role["Admin"] = "Admin";
Role["OrganizationAdmin"] = "OrganizationAdmin";
Role["ProjectAdmin"] = "ProjectAdmin";
Role["User"] = "User";
})(Role = exports.Role || (exports.Role = {}));
var SortOrder;
(function (SortOrder) {
SortOrder["Asc"] = "Asc";
SortOrder["Desc"] = "Desc";
})(SortOrder = exports.SortOrder || (exports.SortOrder = {}));
//# sourceMappingURL=models.js.map
/***/ }),
/***/ 601:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.templatesPath = exports.staticsPath = exports.ExampleConst = void 0;
const path_1 = __webpack_require__(17);
exports.ExampleConst = "example";
exports.staticsPath = (0, path_1.join)(__dirname, "static");
exports.templatesPath = (0, path_1.join)(__dirname, "templates");
/***/ }),
/***/ 17:
/***/ ((module) => {
module.exports = require("path");
/***/ })
/******/ });
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ var cachedModule = __webpack_module_cache__[moduleId];
/******/ if (cachedModule !== undefined) {
/******/ return cachedModule.exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/************************************************************************/
var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
(() => {
var exports = __webpack_exports__;
Object.defineProperty(exports, "__esModule", ({ value: true }));
const models_1 = __webpack_require__(930);
const constants_1 = __webpack_require__(601);
class BasicAuthPlugin {

@@ -28,8 +245,13 @@ register() {

async afterCreateAuthModules(context, eventParams) {
const staticPath = (0, path_1.resolve)(__dirname, "../static");
const staticsFiles = await context.utils.importStaticModules(staticPath, context.serverDirectories.srcDirectory);
const staticsFiles = await context.utils.importStaticModules(constants_1.staticsPath, context.serverDirectories.srcDirectory);
return staticsFiles;
}
}
exports.default = BasicAuthPlugin;
//# sourceMappingURL=index.js.map
exports["default"] = BasicAuthPlugin;
})();
module.exports = __webpack_exports__;
/******/ })()
;
//# sourceMappingURL=main.js.map
{
"name": "@amplication/plugin-auth-basic",
"version": "1.2.2",
"version": "1.3.0",
"description": "set basic auth for Amplication build",
"main": "dist/index.js",
"scripts": {
"build": "tsc",
"test": "echo \"Error: no test specified\" && exit 1"
"dev": "webpack --watch",
"build": "webpack",
"prebuild": "rimraf dist"
},

@@ -13,11 +14,2 @@ "author": "barshimi",

"devDependencies": {
"@types/lodash": "^4.14.182",
"@types/normalize-path": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"eslint": "^8.21.0",
"prettier": "^2.7.1",
"typescript": "4.6.2"
},
"dependencies": {
"@amplication/code-gen-types": "^1.1.5",

@@ -30,6 +22,17 @@ "@babel/parser": "^7.18.11",

"@nestjs/passport": "^9.0.0",
"@types/lodash": "^4.14.182",
"@types/normalize-path": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"copy-webpack-plugin": "^11.0.0",
"eslint": "^8.21.0",
"jest-mock-extended": "^2.0.7",
"lodash": "^4.17.21",
"passport-jwt": "4.0.0"
"passport-jwt": "4.0.0",
"prettier": "^2.7.1",
"ts-loader": "^9.4.2",
"typescript": "4.6.2",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
}
}

@@ -1,11 +0,10 @@

import { resolve } from "path";
import {
AmplicationPlugin,
CreateAdminUIParams,
CreateServerAuthParams,
DsgContext,
CreateServerAuthParams,
AmplicationPlugin,
Events,
CreateAdminUIParams,
} from "@amplication/code-gen-types";
import { EnumAuthProviderType } from "@amplication/code-gen-types/src/models";
import { staticsPath } from "./constants";
class BasicAuthPlugin implements AmplicationPlugin {

@@ -47,5 +46,4 @@ register(): Events {

) {
const staticPath = resolve(__dirname, "../static");
const staticsFiles = await context.utils.importStaticModules(
staticPath,
staticsPath,
context.serverDirectories.srcDirectory

@@ -52,0 +50,0 @@ );

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc