Coder Social home page Coder Social logo

adding Authentication about sqladmin HOT 12 CLOSED

Chise1 avatar Chise1 commented on June 16, 2024 1
adding Authentication

from sqladmin.

Comments (12)

aminalaee avatar aminalaee commented on June 16, 2024 1

Yes, some integration with an Authentication backend is definitely a must-have. PRs are welcome though.

from sqladmin.

aminalaee avatar aminalaee commented on June 16, 2024

For future references I think integrating with Starlette/FastAPI Authentication backend would be pretty straightforward here.

from sqladmin.

aminalaee avatar aminalaee commented on June 16, 2024

Basic Authentication/Authorization functionality is enabled in #37 so we can close this for now.

from sqladmin.

Args avatar Args commented on June 16, 2024

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.

aminalaee avatar aminalaee commented on June 16, 2024

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.

Args avatar Args commented on June 16, 2024

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.

aminalaee avatar aminalaee commented on June 16, 2024

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.

Args avatar Args commented on June 16, 2024

What should I do if I want to have a username and password to protect it?

from sqladmin.

aminalaee avatar aminalaee commented on June 16, 2024

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.

Args avatar Args commented on June 16, 2024

OK,thanks for your help

from sqladmin.

magedhelmy1 avatar magedhelmy1 commented on June 16, 2024

@aminalaee 1.5 years from the future, any updates on this? many thanks.

from sqladmin.

aminalaee avatar aminalaee commented on June 16, 2024

Maybe https://aminalaee.dev/sqladmin/authentication/ ?

from sqladmin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.