Comments (12)
Yes, some integration with an Authentication backend is definitely a must-have. PRs are welcome though.
from sqladmin.
For future references I think integrating with Starlette/FastAPI Authentication backend would be pretty straightforward here.
from sqladmin.
Basic Authentication/Authorization functionality is enabled in #37 so we can close this for now.
from sqladmin.
Have any more plans for the authorization? It is not very convenient to judge by request now.I don't know what to do if I don't want anyone else to access the data
from sqladmin.
Can you please clarify the use-case? I'm not sure if I understand correctly.
There's a PR to allow adding Starlette middlewares to the Admin but I think that will have the same effect.
from sqladmin.
Thank you for your reply.That is, I have now deployed the website, anyone who visits https://mysite.com/admin can operate my database, how can I avoid this from happening?
from sqladmin.
It is explained here, you can integrate any authentication you want to sqlamin:
https://aminalaee.github.io/sqladmin/authentication/
Does this answer your question?
from sqladmin.
What should I do if I want to have a username and password to protect it?
from sqladmin.
You can use the Authentication middleware in Starlette: https://www.starlette.io/authentication/
Right now it's not very straightforward after this PR: #114
from sqladmin.
OK,thanks for your help
from sqladmin.
@aminalaee 1.5 years from the future, any updates on this? many thanks.
from sqladmin.
Maybe https://aminalaee.dev/sqladmin/authentication/ ?
from sqladmin.
Related Issues (20)
- Overriden form text field with FileUpload field. HOT 7
- Not able to edit fields in sql admin when using s3 filetype HOT 3
- Unexpected main page view HOT 6
- Add ModelView.form_query property to create form-filtering feature HOT 2
- override delete model method to perform soft delete HOT 1
- form_overrides doesn't work HOT 2
- SqlAlchemy dataclass support missing HOT 6
- Multiple Admin Instances result in wrong URL's to the views HOT 1
- Ajax query passes incorrect urn when admin mounted on sub fastapi app HOT 3
- Sort symbol is incorrect (wrong direction)
- sqladmin + jinja templates conflict index.html HOT 3
- Raised value error HOT 5
- Define default values via form_args
- TypeError: UUID objects are immutable (fastapi_users) HOT 4
- ValueError on passing unexcepted parameter
- Use HTMX HOT 3
- jinja2.exceptions.TemplateNotFound: list.html HOT 3
- What about Router per View? HOT 2
- with ... as ... statement can make sesssion close,which will lead to DetachedInstanceError HOT 8
- [feature request] Custom login page HOT 1
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 sqladmin.