ecomplus / auth Goto Github PK
View Code? Open in Web Editor NEWJS client for E-Com Plus admin authentication
License: GNU Affero General Public License v3.0
JS client for E-Com Plus admin authentication
License: GNU Affero General Public License v3.0
After login we should update ecomUtils._config
setting at least the correct store_id
.
Access token must be private, so user will not be able to pass token when calling ecomClient.store
.
We should provide a method to call Store API with authentication (such as requestApi
from EcomPassport
), imo it can be just a wrapper for ecomClient.store
, but already adding the correct storeId
, authenticationId
and accessToken
, something like:
options => ecomClient.store({
storeId,
authenticationId,
accessToken,
...options
})
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
@commitlint/cli
, @commitlint/config-conventional
).github/workflows/create-release.yml
actions/checkout v4
actions/create-release v1
.github/workflows/publish.yml
actions/checkout v4
actions/setup-node v4
actions/cache v4
package.json
@ecomplus/client ^2.3.1
axios ^1.6.8
blueimp-md5 ^2.19.0
eventemitter3 ^5.0.1
@babel/core ^7.24.3
@babel/preset-env ^7.24.3
@commitlint/cli ^17.8.1
@commitlint/config-conventional ^17.8.1
@ecomplus/utils ^1.4.1
babel-loader ^8.3.0
core-js ^3.36.1
docdash ^2.0.2
husky ^3.1.0
jsdoc ^4.0.2
standard ^17.1.0
standard-version ^9.3.2
webpack ^4.47.0
webpack-cli ^3.3.12
webpack-dev-server ^3.11.3
core-js ^3.36.1
@ecomplus/utils ^1.4.1
Mesma abordagem de ecomplus/shopping-cart#2
BREAKING para v0.5
@ecomplus/client
to consume Store API;ecomplus-passport-client
as example for methods and events;getAuthenticationId
: just pass session.my_id
🍰;fetchAuthentication
: fetch Store API and return respective authentication (current session) body;We need documentation for lib methods with jsdoc
and give some examples 📝
We're exposing session
with access token, it's a public property on instance object and it's a problem 💀
My suggestion is to set session
object as a private member and pass it as argument to method functions, reference:
https://www.crockford.com/javascript/private.html
Also, we must edit getAuth
method (and any other returning access token) to return only my_id
, without token.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.