Skip to content

Beta branch #7

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

Open
BrandonHowe opened this issue Aug 5, 2024 · 2 comments
Open

Beta branch #7

BrandonHowe opened this issue Aug 5, 2024 · 2 comments

Comments

@BrandonHowe
Copy link

What is the status of the beta branch? Is it in a usable state? What are the differences between the master branch and the beta?

@ckoever
Copy link
Owner

ckoever commented Aug 6, 2024

The beta branch adds support for firebase authentication. See ufirebase.py class auth
This is necessary when only specific "users" should be able to read and/or write to or from a specific realtime database path. See Understand Firebase Realtime Database Security Rules. If you make your realtime database available for public, you should (i highly recommend it) use authentication, so that the realtime database url alone, isn't the only GRAND KEY to access all information stored in the database. Use authentication instead, use the beta branch.

The reason why i the beta branch with auth is not pushed to main is that documentation is missing/wrong so you need to take a look at the source code yourself to use the functions.
examples:
main branch --> beta branch
get(...) --> rtdb.get(...)
seturl(...) --> rtdb.conf.seturl(...)
[...]

new functions in beta branch
rtdb.conf.setsecret(...)
auth.selauth(...)
auth.desauth(...)
auth.sign_in_ep(email, passwd, ...)
auth.send_password_reset_email(...)
auth.verify_password_reset_code(...)
[... and more]

as most of the new code in beta branch is created according to this documentation, you can orient yourself on that.

@ckoever ckoever closed this as completed Aug 6, 2024
@ckoever ckoever reopened this Aug 6, 2024
@ckoever
Copy link
Owner

ckoever commented Aug 6, 2024

Please also note that authentication is not completely implemented, so most features in this documentation are missing.

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