
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@permify/vue-permify
Advanced tools
Permify Vue library provides a plugin, vue-router middleware and components for controlling access checks throughout your entire Vue application with using Permify API.
Permify Vue library provides a plugin, vue-router middleware, and components for controlling access checks throughout your entire Vue application via Permify API.
Use npm to install:
npm install @permify/vue-permify
isAuthorized(policy, action)isAuthorized is a helper function that returns a Promise which resolves with true if the user is authorized for action with the given parameters, if not it resolves with false.
You should call it inside a conditional logic structure; maybe in conditionaly rendering UI or a simple if check for fetching protected information.
policyName (mandatory)
Custom Permify Policy name.
Action (mandatory)
Custom Policy Action.
resourceId (optional)
Id of the Resource, mandatory if any resource used or accessed when creating Rule/Rules.
resourceType (optional)
Type or name of the Resource, mandatory if any resource used or accessed when creating Rule/Rules.
Using isAuthorized function:
<template>
<div v-if="isAuthorized">
/* protected component, UI Layer etc. */
</div>
</template>
<script>
export default {
data() {
return {
isAuthorized: false,
};
},
async created() {
//post-edit passed as policyName parameter
if (await this.$permify.isAuthorized('posts', 'edit', '91', 'post')) {
// request protected info from server
}
}
};
</script>
routeGuardrouteGuard is a vue-router middleware function that you can use to control the access management of your pages.
policyName (mandatory)
Custom Permify Policy name.
action (mandatory)
Custom Policy action.
resourceId (optional)
Id of the Resource, mandatory if any resource used or accessed when creating Rule/Rules.
resourceType (optional)
Type or name of the Resource, mandatory if any resource used or accessed when creating Rule/Rules.
redirectTo (mandatory)
redirect url if user has not authorized to view the page (mandatory)
<template>
/* create contact UI */
</template>
<script>
import { routeGuard } from "@permify/vue-permify";
export default {
beforeRouteEnter: routeGuard({
policyName="'contacts'"
action="'create'"
redirectTo: "/unauthorized",
})
}
</script>
https://docs.permify.co/docs/intro
info@permify.co
hello@permify.co
Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
FAQs
Permify Vue library provides a plugin, vue-router middleware and components for controlling access checks throughout your entire Vue application with using Permify API.
We found that @permify/vue-permify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.