Skip to content

Wasm multi auth support#53

Merged
lovestaco merged 10 commits intomainfrom
wasm-multi-auth-support
Feb 26, 2025
Merged

Wasm multi auth support#53
lovestaco merged 10 commits intomainfrom
wasm-multi-auth-support

Conversation

@lovestaco
Copy link
Contributor

@lovestaco lovestaco commented Feb 26, 2025

What type of MR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Doc Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • ⏩ Revert

Description

Previously, the WebAssembly (WASM) module retrieved only the liveapi-bearer-auth and sent it with the proxy request. This PR enhances authentication handling by:

  • Retrieving all authentication methods configured for the project.
  • Identifying the authentication method marked with selected: true.
  • Using the selected authentication method when making proxy requests.

Important files to start review from

Mobile & Desktop Screenshots/Recordings

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

Added to documentation?

If documentation update is there then run make mkdocs once PR is in acceptable state.

  • 📓 make mkdocs
  • 📜 README.md
  • 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

[optional] What gif best describes this MR or how it makes you feel?

![alt text](URL of the GIF file)

for _, header := range res {
if len(header) >= len("Authorization:") && header[:len("Authorization:")] == "Authorization:" {
authHeaderExists = true
LaBearerAuthToken := js.Global().Get("liveapiManifest").String()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to something similar to manisfestData if its whole manifest

@lovestaco lovestaco merged commit 796abaa into main Feb 26, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants