jhipster-lite
jhipster-lite copied to clipboard
Vue: account with authentication JWT
Hi Pascal, Is it possible to work on this feature ?
@seraphinandrieux : sure, but before starting the generator part, I would suggest to tackle this ticket with a sample project, then share it here, so we can be sure it's the right way What do you think?
So the order:
- working on sample project
- push to github project
- discuss
- once we agree, then working on the generator part in JH Lite
Starting with this bounty. If it's more work than expected, I'll increase it
Let's doing that :)
@seraphinandrieux : sure, but before starting the generator part, I would suggest to tackle this ticket with a sample project, then share it here, so we can be sure it's the right way What do you think?
agree
Don't hesitate to have a look at https://github.com/jhipster/jhipster-sample-app-vuejs
There are some good code there, we can take, polish and reorganize in HexaArch, specially the auth part with token
@pascalgrimaud , I'm a bit confused about the limit of this ticket : Should I also create a login form and the resource to get JWT token ? or just the front app with form or just automatically get JWT from front before building app ?
@seraphinandrieux : if the ticket is too big, it can be splitted into smaller tickets
The idea is:
- given a Vue project with Security JWT and basic auth
- when I add account with Vue
- then, I should be able to log into the application
For generating a Vue project : init, maven, java base, spring boot, spring boot tomcat, security jwt, basic auth, frontend maven plugin, vue
Then, about the work:
- add axios (like we did in JH Lite, maybe it could be done in a first PR)
- add the logic for managing JWT token
- add the secondary for calling /api/authenticate
- add the primary, related to the login page
As I suggest, the first step would be to work on a sample. Then we could split the generator part in several PRs maybe
If it's not clear, we can discuss about it tomorrow
I think we have to do ticket #1018 before
Is anyone working on this one ? if not, can i work on it ?