jhipster / generator-jhipster-micronaut

Micronaut blueprint for JHipster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cleanup user service when using oauth

atomfrede opened this issue · comments

Overview of the issue

When selecting oauth option the UserService contains all methods (e.g. password reset etc.) which are not required. We should not generate them (like we do in main generator).

Reproduce the error

Generate an application with this blueprin.

Related issues

None

Suggest a Fix

Align with the template in main generator code

  • Checking this box is mandatory (this is just to show you read everything)

I'm currently working through this as a part of #79

If I can help here let me know. In order to support okta we also need to have a function to sync the idp user with the local user database. Basically thats why login via okta on heroku does not work yet.

@atomfrede I thought I was close, but I wasn't thinking about the generated tests. I think once the generated tests are working on https://github.com/jhipster/generator-jhipster-micronaut/tree/issue-79-entity-related-user we will be in a good place. If you'd like to take a look at that, please feel free. Otherwise, I'll try to tackle it tomorrow.

@atomfrede I went ahead and did a merge of this portion to unblock you. I'll resume #79 from here. There were a lot of moving parts here. Please let me know if you see something I missed

Going to test it. I have the micronaut 2 migration ready. Tested locally jwt + oauth. Need to check why the builds are still failing