![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.
@arcblock/app-agent-storage
Advanced tools
Storage interface for delegated did-auth between application and wallet
Interface for define a storage class that can be used by [@arcblock/did-auth].
Possible fields to exist in a did-agent storage record
authorizeId
: Primary keyownerDid
: Owner DIDagentDid
: Agent DIDappDid
: Application DIDappPk
: Application public keyappName
: Application nameappDescription
: Application descriptionappLogo
: Application logocertificate
: Application authorize certificateBasic APIs that a did-agent storage should support:
create(authorizeId, payload)
: 创建记录update(authorizeId, updates)
: 更新记录read(authorizeId)
:按 authorizeId 查询delete(authorizeId)
:删除记录listByApp(appDid)
: 按应用查询listByOwner(ownerDid)
: 按所有者查询npm install @arcblock/app-agent-storage
// or
yarn add @arcblock/app-agent-storage
const StorageInterface = require('@arcblock/app-agent-storage');
module.exports = class KeystoneStorage extends StorageInterface {
constructor() {
this.model = keystone.list('LoginToken').model;
}
create(token, status = 'created') {
const LoginToken = this.model;
const item = new LoginToken({ token, status });
return item.save();
}
read(token) {
return this.model.findOne({ token });
}
update(token, updates) {
return this.model.findOneAndUpdate({ token }, updates);
}
delete(token) {
return this.model.remove({ token });
}
exist(token, did) {
return this.model.findOne({ token, did });
}
};
Name | Website |
---|---|
wangshijun | https://ocap.arcblock.io |
FAQs
Storage interface for delegated did-auth between application and wallet
The npm package @arcblock/app-agent-storage receives a total of 2 weekly downloads. As such, @arcblock/app-agent-storage popularity was classified as not popular.
We found that @arcblock/app-agent-storage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.