jhipster-lite icon indicating copy to clipboard operation
jhipster-lite copied to clipboard

Vue: account with authentication JWT

Open pascalgrimaud opened this issue 2 years ago • 11 comments

pascalgrimaud avatar Mar 01 '22 19:03 pascalgrimaud

Hi Pascal, Is it possible to work on this feature ?

seraphinandrieux avatar Mar 12 '22 15:03 seraphinandrieux

@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?

pascalgrimaud avatar Mar 12 '22 16:03 pascalgrimaud

So the order:

  • working on sample project
  • push to github project
  • discuss
  • once we agree, then working on the generator part in JH Lite

pascalgrimaud avatar Mar 12 '22 16:03 pascalgrimaud

Starting with this bounty. If it's more work than expected, I'll increase it

pascalgrimaud avatar Mar 12 '22 16:03 pascalgrimaud

Let's doing that :)

seraphinandrieux avatar Mar 12 '22 16:03 seraphinandrieux

@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

seraphinandrieux avatar Mar 12 '22 16:03 seraphinandrieux

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 avatar Mar 12 '22 16:03 pascalgrimaud

@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 avatar Mar 13 '22 10:03 seraphinandrieux

@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

pascalgrimaud avatar Mar 13 '22 15:03 pascalgrimaud

I think we have to do ticket #1018 before

seraphinandrieux avatar Mar 14 '22 10:03 seraphinandrieux

Is anyone working on this one ? if not, can i work on it ?

abdelfetah18 avatar Sep 20 '23 18:09 abdelfetah18