Giter Site home page Giter Site logo

Comments (3)

AuHau avatar AuHau commented on September 26, 2024

Hey there,
I want to work on this, so just to sync with @nicbou for the right approach.

I had look on the current state of the backend and if I understand it correctly, than basically whole user management (login, signup, user's settings etc. basically all the /auth/* routes) has to be redo into the Angular app. Therefore I would suggest to make it in the way, that the links for login/signup will direct to the Angular editor app and the there would be overlay over the editor with login/signup form and after login/signup the notes would be loaded to the editor app.

What do you think?

from markdown-notes.

AuHau avatar AuHau commented on September 26, 2024

@nicbou could you please comment on this? I will have soon the API ready for sign up/login/user management and I am wondering if my proposed way of implementing the front-end is OK with you.

Moreover one more thing regarding the API. I was following examples how others approached user management with Tastypie and so I didn't create special route for login (for retrieving the ApiKey), but rather allowed BasicAuthentication (together with ApiKeyAuthentication) for User resource, therefore to log in, you will send request to retrieve User data with HTTP Basic authentication header where the username and password is provided and with the User data also the ApiKey is returned and from that point on only ApiKey will be allowed (for all other resources). Is that approach OK with you?

from markdown-notes.

nicbou avatar nicbou commented on September 26, 2024

That sounds like a good idea. We already have a mechanism for handling 401 errors, so it would simply be a matter of blurring the background and showing a login form. This would also open the door to mobile and desktop applications in the future. Thumbs up from me.

from markdown-notes.

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.