![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
vendure-plugin-disable-anonymous-access
Advanced tools
Disable anonymous access to shop-api and only allow to defined methods like authenticate
This plugin allows you to disable anonymous access to your Vendure e-commerce store. By requiring users to authenticate before accessing any content, you can enhance security and control access to your store.
To configure the plugin, open your Vendure project's vendure-config.ts
file and add the following code:
import { DisableAnonymousAccessPlugin } from 'vendure-plugin-disable-anonymous-access';
export const config: VendureConfig = {
// ... other config options
plugins: [
// ... other plugins
DisableAnonymousAccessPlugin.int({
allowedMethods:["FirebaseAuth"]
}),
],
};
Once the plugin is installed and configured, anonymous access will be disabled. Users will be required to authenticate before accessing any content on your Vendure store.
We still need to allow some methods like authenticate. This plugin extracts the graphql method name and checks if the method is within the allowed method defined in the options and allow that method to pass by without authentication. In the below, this is the body sent and since FirebaseAuth method is allowed, it bypasses.
body {
operationName: null,
variables: {
uid: 'OWT6nismkIXDrqdZzCK5XXXXXXXXX',
jwt: 'token'
},
query: 'mutation FirebaseAuth($uid: String!, $jwt: String!) {\n' +
' __typename\n' +
' authenticate(input: {firebase: {uid: $uid, jwt: $jwt}}) {\n' +
' __typename\n' +
' }\n' +
'}'
}
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.
FAQs
Disable anonymous access to shop-api and only allow to defined methods like authenticate
The npm package vendure-plugin-disable-anonymous-access receives a total of 0 weekly downloads. As such, vendure-plugin-disable-anonymous-access popularity was classified as not popular.
We found that vendure-plugin-disable-anonymous-access demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.