Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue: account with authentication JWT #897

Open
pascalgrimaud opened this issue Mar 1, 2022 · 11 comments · May be fixed by #7554
Open

Vue: account with authentication JWT #897

pascalgrimaud opened this issue Mar 1, 2022 · 11 comments · May be fixed by #7554
Labels
area: feature request 💡 $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ client: vue theme: security $200 https://www.jhipster.tech/bug-bounties/

Comments

@pascalgrimaud
Copy link
Member

No description provided.

@seraphinandrieux
Copy link
Contributor

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

@pascalgrimaud
Copy link
Member Author

@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
Copy link
Member Author

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 pascalgrimaud added $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ $200 https://www.jhipster.tech/bug-bounties/ labels Mar 12, 2022
@pascalgrimaud
Copy link
Member Author

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

@seraphinandrieux
Copy link
Contributor

Let's doing that :)

@seraphinandrieux
Copy link
Contributor

@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

@pascalgrimaud
Copy link
Member Author

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

@seraphinandrieux
Copy link
Contributor

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

@pascalgrimaud
Copy link
Member Author

@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

@seraphinandrieux
Copy link
Contributor

I think we have to do ticket #1018 before

@abdelfetah18
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: feature request 💡 $$ bug-bounty $$ https://www.jhipster.tech/bug-bounties/ client: vue theme: security $200 https://www.jhipster.tech/bug-bounties/
Projects
None yet
5 participants
@pascalgrimaud @seraphinandrieux @abdelfetah18 and others