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

(discussion) Auth #13

Closed
carletex opened this issue Feb 15, 2024 · 2 comments
Closed

(discussion) Auth #13

carletex opened this issue Feb 15, 2024 · 2 comments

Comments

@carletex
Copy link
Contributor

I see two option to implement Auth / access in BG grants:

1. Same as APP BG

  • You need to sign every write operation (EIP 712 would be great)
  • For reading everything is open... unless you make people sign a message for reading too.
  • Need to implement all the messages for each operation

2. SIWE + JWT

  • SIWE once => get a JWT => send any request with the token payload
  • Works for read/write

I might choose 2 so we try how it goes... and compare to the app bg implementation. But not sure, super open on this.

@damianmarti
Copy link
Member

Will the user need to do a lot of write actions?

If the writes are a few, option 1 is enough.

Anyway, it will be useful to have the SIWE + JWT implemented, this flow can be used on other projects too.

@carletex
Copy link
Contributor Author

Thanks @damianmarti !

Yeah, after tinkering with #17 and #18 it feels that option 1 is good enough for now!

Closing this!

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

No branches or pull requests

2 participants