jhipster / jhipster-vuejs

A Vue.js blueprint for JHipster. It will use Vue.js as the frontend library!
https://www.jhipster.tech
Apache License 2.0
301 stars 179 forks source link

Add uaa support #580

Closed gaetandezeiraud closed 4 years ago

gaetandezeiraud commented 4 years ago
pascalgrimaud commented 4 years ago

wahou ! thanks a lot @Brouilles !!

I don't have time to review it right now, as I'm on my day job time :)

But I have few comments, plz can you:

gaetandezeiraud commented 4 years ago

No problem & thanks for your answer. I looked at the test file. I have just to do the same like JWT but with UAA for authenticationType and gateway for applicationType? Or I need to setup a configuration to start an UAA server during test?

Thanks.

pascalgrimaud commented 4 years ago

I have just to do the same like JWT but with UAA for authenticationType and gateway for applicationType?

Exactly. About the CI, how it works:

ruddell commented 4 years ago

I did not test manually but have some notes below.

References to services/uaa should be replaced with <%- apiUaaPath %> which is configured here, users can configure a UAA name other than uaa. That should also let you use the same code for most endpoints, because it is set to an empty string when UAA is not selected.

Logout endpoint needs to be handled (code in main generator), as well as the audits endpoint (code in main generator).

gaetandezeiraud commented 4 years ago

Hi, You have right @ruddell. I have commit the changes. Thanks.

gaetandezeiraud commented 4 years ago

Thanks for your answer @pascalgrimaud ! Like you (I think) it's complicated because I'm homebound because of the Coronavirus in France. So the time to get organized, I don't know when I will be able to set up the tests.

pascalgrimaud commented 4 years ago

Yes, same situation like you...

No worry, I can help if you want. I'll try to find time to put what is missing in this PR so :)

pascalgrimaud commented 4 years ago

First of all, thanks for trying to add the support for UAA. I did a quick review this morning, and it's not ready.

The tests I did:

I had a quick look on your code, and nothing is done for managing UAA files:

That's why tests are important. Something similar to https://github.com/jhipster/generator-jhipster/blob/master/test/app.spec.js#L1837-L1877 will help.

gaetandezeiraud commented 4 years ago

I can't do more. It's working for me with the current release branch and adding this modifications directly in the project. I have don't try with the automatic system than generate the project. I have do it just for help.

I have no time for creating test and debug for specifically for jhipster-vuejs. Sorry. But on my side, with the generation of a project with the deploy release version of jhipster-vuejs and just editing the code with my first commit (without the <%- apiUaaPath %>, I don't try with it) it's working very good.

Have a good day.

pascalgrimaud commented 4 years ago

No worry @Brouilles it's already nice to try to add UAA support, so for that thank you very much. And don't be sorry plz :)

Then, honestly on my side, I don't care about UAA, as I don't use for my projects, so I don't spend time to support something I don't use. And in main generator, the support is not really good.. too flaky tests, and no one want to contribute as it requires too much effort as you can see.

So let's close this PR. Have a good day. And again, don't be sorry ;)