Comments (3)
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.
@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.
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)
- Unexpected line break after ` blocks
- Need a to retrieve forgotten passwords HOT 1
- Sharing option doesn't work HOT 1
- Add support for inline svg image HOT 2
- multiline ``` text ``` HOT 1
- Mobile app (including taking pictures) HOT 2
- API documentation HOT 2
- Note Preview does not appear when using HTTPS HOT 7
- django.conf.urls.patterns() is deprecated HOT 1
- Remove django-toolbelt from requirements
- Dragging and dropping images only works in Chrome HOT 2
- One-time news (notifications) HOT 1
- Spacing problems with multiple lists
- Export to PDF HOT 2
- Log client-side errors HOT 1
- Drag and drop failing in Firefox HOT 1
- "Remember Me" doesn't work with some password managers HOT 5
- TikZ package support HOT 1
- backing up and moving to private server HOT 1
- Add SSL to MarkdownNotes.com 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 markdown-notes.