Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(jans-cedarling): add WASM bindings for Cedarling #10013

Open
5 tasks
rmarinn opened this issue Nov 1, 2024 · 0 comments
Open
5 tasks

feat(jans-cedarling): add WASM bindings for Cedarling #10013

rmarinn opened this issue Nov 1, 2024 · 0 comments
Assignees
Labels
comp-jans-cedarling Touching folder /jans-cedarling enhancement kind-feature Issue or PR is a new feature request
Milestone

Comments

@rmarinn
Copy link
Contributor

rmarinn commented Nov 1, 2024

Feature Request: WASM Bindings for Cedarling

Is your feature request related to a problem? Please describe.

This feature request focuses on implementing WebAssembly (WASM) bindings for the Cedarling project, allowing it to run in a web environment.

Describe the solution you'd like

The following steps are necessary to be able to compile Cedarling to WASM:

  • Replace the uuid7 crate with uuid configured with the js feature enabled for better WASM compatibility.
  • Refactor to use reqwest::Client in place of reqwest::blocking::Client to avoid blocking I/O calls.
  • Make Cedarling::authz asynchronous to support non-blocking initialization.
  • Implement lazy loading for JWKS fetching to allow non-async initialization and improve startup efficiency in WASM environments.
  • Include usage examples to demonstrate Cedarling’s WASM API in a browser environment.
@rmarinn rmarinn added comp-jans-cedarling Touching folder /jans-cedarling enhancement labels Nov 1, 2024
@rmarinn rmarinn self-assigned this Nov 1, 2024
@mo-auto mo-auto added the kind-feature Issue or PR is a new feature request label Nov 1, 2024
@moabu moabu added this to the 1.1.6 milestone Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-cedarling Touching folder /jans-cedarling enhancement kind-feature Issue or PR is a new feature request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants