Skip to content

Dxcdt 1461/add jhipster rwa support#1452

Open
bkiran6398 wants to merge 9 commits intomainfrom
DXCDT-1461/add_jhipster_rwa_support
Open

Dxcdt 1461/add jhipster rwa support#1452
bkiran6398 wants to merge 9 commits intomainfrom
DXCDT-1461/add_jhipster_rwa_support

Conversation

@bkiran6398
Copy link
Contributor

🔧 Changes

Adds JHipster Regular Web Application (RWA) support to the auth0 quickstarts setup command, enabling users to configure Auth0 for JHipster projects directly from the CLI.

New quickstart type: jhipster-rwa

  • Creates a Regular Web Application with callback URL /login/oauth2/code/oidc
  • Defaults to port 8080 and app name JHipster
  • Generates .env with Spring Security OAuth2 variable names (SPRING_SECURITY_OAUTH2_CLIENT_*, JHIPSTER_SECURITY_OAUTH2_AUDIENCE)
  • Directs users to the JHipster Auth0 documentation for completing setup

📚 References

🔬 Testing

Manual testing:

  1. Ran auth0 quickstarts setup --type jhipster-rwa.
  2. Ran auth0 quickstarts setup --type jhipster-rwa --port 9090 --name "My JHipster App" to verify custom port and name
  3. Verified existing quickstart types (vite, nextjs, fastify) still work as expected

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

bkiran6398 and others added 9 commits February 27, 2026 11:46
- Simplified the setup of environment variables in the setupQuickstartCmd function.
- Replaced multiple calls to WriteString with fmt.Fprintf for better readability and performance.
- Consolidated variable declarations to improve code clarity and reduce redundancy.
- Updated the quickstart setup command to support JHipster Regular Web App.
- Enhanced the help text to include "jhipster-rwa" as a valid quickstart type.
- Added default port 8080 for JHipster applications.
- Modified the application name prompt to default to "JHipster" for JHipster RWA.
- Adjusted environment variable setup for JHipster applications.
- Updated error messages to reflect the new supported quickstart types.
…ation creation to provide detailed next steps

- Included commands for configuring OAUTH2 parameters and managing connections, roles, and actions.
- This change improves user guidance for integrating JHipster with Auth0, ensuring a smoother setup process.
…A application creation to provide detailed next steps"

This reverts commit d5612aa.
… support to align with Jhipster OAuth2 standards.
…tion creation to direct users to the JHipster documentation for completing the setup.
- Changed the help message for the "Name" flag in the quickstarts command.
- The new message specifies default names for specific frameworks:
  - 'My App' for vite, nextjs, and fastify
  - 'JHipster' for jhipster-rwa
- This enhancement provides clearer guidance to users on expected input.
@bkiran6398 bkiran6398 marked this pull request as ready for review February 27, 2026 13:37
@bkiran6398 bkiran6398 requested a review from a team as a code owner February 27, 2026 13:37
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

Successfully merging this pull request may close these issues.

1 participant