Comments (3)
I see what you are saying, what kind of API would you expect for this?
from rocket_auth.
I would probably give you a better answer if I were more experienced with Rust, but I will try and muddle through.
I have reviewed your database implementations under /src/db/
- if I could make my own implementation for a database, I would be happy to replicate all of the code you've used for each database type to achieve my goal of custom schema.
It would have the added benefit of allowing others to extend your crate to support new data storage types as per their needs.
I am not sure how this can be accomplished, though. We would need to be able to implement our own open_...
functions for Users
that would use our custom DBConnection
implementations. I think it might be sufficient to make the involved declarations pub
, but there may be a much better best practice than that.
from rocket_auth.
I think it may not be so simple, since the User struct depends very strongly on the schema. I do have planned adding more functionality to the User struct, which is one of the reasons I've tried to keep them private.
But I do agree with you that this is a need that should be addressed, I just don't know how at the moment.
from rocket_auth.
Related Issues (20)
- User FromRequest not found with git rocket and TLS HOT 7
- Library breaks with rocket 0.5.0-rc.2 HOT 1
- Check if String is same as hashed password HOT 3
- Compile error HOT 1
- Allow option to use username instead of email HOT 5
- Update sqlx to v0.6 HOT 3
- ValidationError leaks password if signup fails HOT 3
- Can AdminUser guard return a 403 instead of a 401? HOT 2
- Use "AUTOINCREMENT" for user table primary key
- Compilation failing due to SQLX features HOT 2
- How to get the value chosen in an html form select, and having that value in a rust variable
- Feat: Redis Stack as a Persistant Data Storage.
- Default Argon2 config does not meet OWASP minimum security HOT 1
- New release with Users table update fix?
- Session is not invalidated after time expires using login_for HOT 1
- add `cargo test` to workflow
- Database error during password change (tokio_postgres)
- Users seems to be able to connect only on one device at the same time
- Does not compile with rocket 0.5.0 (not Rc3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rocket_auth.