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

Missing OAuth2 option during generator execution #384

Open
vcupelloni opened this issue Aug 10, 2024 · 1 comment
Open

Missing OAuth2 option during generator execution #384

vcupelloni opened this issue Aug 10, 2024 · 1 comment

Comments

@vcupelloni
Copy link

vcupelloni commented Aug 10, 2024

Overview of the issue

In the authentication type section of the generator, the OAuth2 option is not displayed.
If I manually edit the .yo-rc file at the end of the project configuration and re-run the generator, it appears that the code is updated correctly.

Has the option been hidden for a specific reason?

Reproduce the error

Install JHipster and Micronaut blueprint and run the generator.

Project configuration
.yo-rc.json file
{
  "generator-jhipster": {
    "applicationType": "microservice",
    "authenticationType": "jwt",
    "backendType": "micronaut",
    "baseName": "exampleMicronaut",
    "blueprints": [
      {
        "name": "generator-jhipster-micronaut",
        "version": "3.4.1"
      }
    ],
    "buildTool": "gradle",
    "cacheProvider": "memcached",
    "clientFramework": "no",
    "clientTestFrameworks": null,
    "clientTheme": null,
    "creationTimestamp": 1723288333786,
    "devDatabaseType": "postgresql",
    "enableGradleEnterprise": false,
    "enableHibernateCache": null,
    "enableSwaggerCodegen": false,
    "enableTranslation": false,
    "entities": [],
    "gradleEnterpriseHost": null,
    "jhipsterVersion": "8.5.0",
    "messageBroker": "no",
    "microfrontend": null,
    "microfrontends": [],
    "nativeLanguage": "it",
    "packageName": "com.mycompany.myapp",
    "prodDatabaseType": "postgresql",
    "searchEngine": "no",
    "serverPort": 8081,
    "serverTestFrameworks": [],
    "serviceDiscoveryType": "consul",
    "skipClient": true,
    "syncUserWithIdp": null,
    "testFrameworks": [
      []
    ],
    "withAdminUi": null
  }
}
Environment and Tools

openjdk version "21.0.4" 2024-07-16
OpenJDK Runtime Environment (build 21.0.4+7)
OpenJDK 64-Bit Server VM (build 21.0.4+7, mixed mode, sharing)

git version 2.46.0

node: v18.19.1
npm: 10.2.4

Docker version 27.1.1, build 63125853e3

Screenshots

NO_OAUTH2

  • [ X ] Checking this box is mandatory (this is just to show you read everything)
@vcupelloni
Copy link
Author

vcupelloni commented Aug 28, 2024

Anyone knows if is there any particular problem preventing the use of OAuth2 authentication on a microservice as well as on a monolith?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant