-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Oauth2 OIDC - claims - BuiltInUserEntity #26152
Comments
I don't think anything has changed in JHipster's OAuth/OIDC implementations since v7. I'm not sure I understand your question. Can you please rephrase it? |
I confirm the bug. This option is required in ionic blueprint: |
@mshima I couldn't fully understand the bug here, I am willing to contribute to this one. Let me start with what i understand,
Also, on the blueprint side, user related code needs to be conditionally generated based on the 'syncUserWithIdp', which is why ionic blueprint started failing when migrated to v8.4.0. I can default the 'syncUserWithIdpP' similar to nodejs for now until its implemented. Please let me know. |
@dwarakaprasad Lines 75 to 80 in 9c885f1
As stated in the issue description UserService does not exists without Lines 119 to 125 in 9c885f1
UserVM has these attributes: Lines 158 to 161 in 9c885f1
While User has much more info: Lines 1029 to 1088 in 9c885f1
|
@mshima This is my point. I couldn't find in the history if there was a reason not to include Line 1024 in 9c885f1
This is not really a problem for me, we noticed it because we use a blueprint which takes into account the user's avatar when the IDP is Entra ID (via MS Graph endpoint) and this has changed compared to the version v7 of JHipster. |
Entire UserService is implemented for
|
Hi,
In the last Jhipster versions v8, I noticed on monolithic applications with the OAuth2 OIDC option, this is the template AccountResource_skipUserManagement.java.ejs which is used by default (ie. with the
UserVM
: login and authorities)And no AccountResource_oauth2.java.ejs which involves the use of
UserService
and in particular all the claims attributes mapped from the token (ie. withUserDTO
)By searching in the code I saw that the generation of
AccountResource_oauth2.java.ejs
is conditionned bygenerateBuiltInUserEntity
and depend ofsyncUserWithIdp
option:generator-jhipster/generators/bootstrap-application-base/generator.ts
Line 193 in 1e17884
The command-line help states:
--sync-user-with-idp Allow relationships with User for oauth2 applications
For me it is not very clear:
When I choose the Oauth2 OIDC option I think I have complete recovery of IDP claims independently of synchronization in database and/or the possibility of creating relationships between Users and other entities.
Is this the behavior that was intended?
Note: The documentation Command-line options is no longer up to date with the new options 😉
Thanks
The text was updated successfully, but these errors were encountered: