Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

@inrupt/solid-client-access-grants

Package Overview
Dependencies
8
Maintainers
11
Versions
364
Issues
File Explorer

Advanced tools

@inrupt/solid-client-access-grants

A library for managing access grants in Solid

    0.6.0latest

Version published
Maintainers
11
Yearly downloads
24,627

Weekly downloads

Changelog

Source

0.6.0 - 2022-04-05

New features

  • getAccessGrantAll supports a new option, includeExpired. By default, only grants that are still valid are returned by the VC provider. If set to true, grants that have expired will also be included in the response.
  • issueAccessRequest now generates an access request VC including the resource owner in the hasConsent field with the isConsentForDataSubject predicate. This will enable resource owners to dereference access requests IRIs to their resources.

Bugfix

  • When type-checking an Access Grant (e.g. using getAccessGrant), only accepted Grants were supported. Support for denied Grant has now been added.
  • When using an Access Grant to get an Access Token, one of the claims from the server response was unaligned with the spec. This inconsistency has been fixed on the server-side with backwards-compatibility, and now on the client side too. This change is transparent to users.
  • approveAccessRequest wasn't using the default session from @inrupt/solid-client-authn-browser to set the ACR access appropriately, resulting in 401 Unauthenticated errors.
  • getAccessRequestFromRedirectUrl was deserializing the received VC expecting an URL-encoded value, instead of a base64-encoded value, which is how it is serialized when redirecting the user to the VC management app.

Readme

Source

Solid Access Grants - solid-client-access-grants

@inrupt/solid-client-access-grants is a JavaScript library for requesting and managing access given to an agent for a resource. These access grants are represented by Verifiable Credentials, signed by an Issuer associated to the Pod server where the resources are hosted.

It is part of a family open source JavaScript libraries designed to support developers building Solid applications.

Server support

This experimental feature is currently only available in ESS.

Browser support

Our JavaScript Client Libraries use relatively modern JavaScript features that will work in all commonly-used browsers, except Internet Explorer. If you need support for Internet Explorer, it is recommended to pass them through a tool like Babel, and to add polyfills for e.g. Map, Set, Promise, Headers, Array.prototype.includes, Object.entries and String.prototype.endsWith.

Node support

Our JavaScript Client Libraries track Node.js LTS releases, and support 12.x, 14.x, and 16.x.

Installation

For the latest stable version of solid-client-access-grants:

npm install @inrupt/solid-client-access-grants

Issues & Help

Solid Community Forum

If you have questions about working with Solid or just want to share what you’re working on, visit the Solid forum. The Solid forum is a good place to meet the rest of the community.

Bugs and Feature Requests

  • For public feedback, bug reports, and feature requests please file an issue via GitHub.
  • For non-public feedback or support inquiries please use the Inrupt Service Desk.

Documentation

Changelog

See the release notes.

License

MIT © Inrupt

Keywords

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc