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

auth not generated using jhipster --skip-server --auth oauth2 #28648

Open
3 tasks done
CGarces opened this issue Feb 9, 2025 · 1 comment
Open
3 tasks done

auth not generated using jhipster --skip-server --auth oauth2 #28648

CGarces opened this issue Feb 9, 2025 · 1 comment

Comments

@CGarces
Copy link
Contributor

CGarces commented Feb 9, 2025

Overview of the issue
JHipster info
[email protected] C:\desarrollos\foobar
`-- [email protected]
JHipster configuration, a .yo-rc.json file generated in the root folder
.yo-rc.json file
{
  "generator-jhipster": {
    "baseName": "foobar",
    "clientFramework": "angular",
    "clientTestFrameworks": [],
    "clientTheme": "minty",
    "clientThemeVariant": "primary",
    "creationTimestamp": 1739097343342,
    "enableTranslation": false,
    "entities": [],
    "jhipsterVersion": "8.9.0",
    "microfrontend": null,
    "microfrontends": [],
    "nativeLanguage": "es",
    "skipServer": true,
    "testFrameworks": [],
    "withAdminUi": false
  }
}
Environment and Tools

java version "21.0.1" 2023-10-17 LTS
Java(TM) SE Runtime Environment (build 21.0.1+12-LTS-29)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.1+12-LTS-29, mixed mode, sharing)

git version 2.36.1.windows.1

node: v20.15.1
npm: 10.5.2

Docker version 25.0.3, build 4debf41

JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory
JDL entity definitions

  • jhipster info output is mandatory for bug reports. This will allow us to use automated tests and genarate the broken sample using jhipster from-issue command.
Motivation for or Use Case

Based on the documentation

--auth - Specify the authentication type when skipping server side generation, has no effect otherwise but mandatory when using skip-server

"authenticationType" must be generated when --skip-server and --auth are used in the command line

Reproduce the error

Run

`jhipster --skip-server --auth oauth2

I have tested the issue on Angular an React

On and empty folder.

Related issues
Suggest a Fix

Manual add of "authenticationType": "oauth2" and run again jhipster works as workarround

JHipster Version(s)

JHipster v8.9.0

Browsers and Operating System

Windows 10
The command line is launched with PowerShell.

  • Tickets opened without reproduction steps or that doesn't follows the template recommendation will be closed.
  • Checking this box is mandatory (this is just to show you read everything)
@mshima
Copy link
Member

mshima commented Feb 19, 2025

authenticationType is currently located in server cli options, if --skip-server is used, server cli options are ignored.
We should somehow add a fallback in common generator.

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

No branches or pull requests

2 participants