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

Replace identity-oauth use with OIDC #48 #53

Merged
merged 51 commits into from
Jan 23, 2025

Conversation

ChiuchiuSorin
Copy link
Contributor

  • created drawer header extension points to add the option to log in with XWiki
  • modified configuration
  • created rest endpoint to access the log in with the oidc skipped option
  • created script service for Azure AD
  • removed old code

* modified parent  platform version to 14.10-1
* uploaded the documents from an instance of XWiki 14.10
* updated README.md
* checked for keywords and regex
* tested functionalities using Identity OAuth (pro)
# Conflicts:
#	pom.xml
* Created a new configuration for OIDC properties
* Set default values specific to Azure for the new configuration
* Created a java configuration for the old configuration for the old Identity OAuth classes
* Created a listener that copies the old configuration to the newly OIDC configuration
# Conflicts:
#	pom.xml


* created a new class to include additioal properties to the OIDC client class and created a new configuration soruce for it
* created AzureADClientConfigurationSheet to use as a custom display inside the administration
* modified the listener to intercept events update and delete to be able to update the OIDC endpoints in case the tenent id is modified
# Conflicts:
#	api/src/main/java/com/xwiki/azureoauth/configuration/AzureConfiguration.java
* created drawer header extension points to add the option to log in with XWiki
* modified configuration
* removed old code
* created rest enpoint to access the log in with the oidc skipped option
* created script service for Azure AD
@ChiuchiuSorin ChiuchiuSorin self-assigned this Nov 15, 2024
@ChiuchiuSorin ChiuchiuSorin linked an issue Nov 15, 2024 that may be closed by this pull request
* created a new configuration class for OIDC
* refactored the listener
* refactored the configuration sources+
# Conflicts:
#	api/src/main/java/com/xwiki/azureoauth/internal/AzureADUpgradingListener.java
#	api/src/main/java/com/xwiki/azureoauth/internal/configuration/DefaultAzureConfiguration.java
#	ui/src/main/resources/AzureAD/AzureADClientConfiguration.xml
#	ui/src/main/resources/AzureAD/AzureADConfigurationClass.xml
# Conflicts:
#	api/src/main/resources/META-INF/components.txt
#	ui/src/main/resources/AzureAD/AzureADConfig.xml
@ChiuchiuSorin ChiuchiuSorin marked this pull request as ready for review November 18, 2024 09:57
* replaced DocumentUpdatedEvent with XObjectUpdatedEvent
* removed TODO
* renamed AzureAD to Entra ID
* refactored the initializer
* added unit tests
* code refactoring
# Conflicts:
#	api/src/main/resources/META-INF/components.txt
@ChiuchiuSorin ChiuchiuSorin changed the base branch from master to 2.x January 15, 2025 09:27
Copy link
Contributor

@oanalavinia oanalavinia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments
The other were discussed in a meeting

api/pom.xml Outdated Show resolved Hide resolved
ui/src/main/resources/AzureAD/WebHome.xml Outdated Show resolved Hide resolved


* added selectable fields to group mapping
* codestyle refactoring
# Conflicts:
#	admin-ui/src/main/resources/AzureADAdmin/Translations.xml
#	api/src/main/resources/META-INF/components.txt
#	ui/src/main/resources/AzureAD/AzureADConfig.xml
#	ui/src/main/resources/EntraID/Code/EntraOIDCClientConfigurationSheet.xml
* removed AzureAdmin module
* moved translations to the UI module
* moved WebHome from AzureAD to EntraID
* codestyle refactoring
* modified Azure names to Entra
* removed duplicate dependencies
* code refactoring
@ChiuchiuSorin
Copy link
Contributor Author

New drawer login options:
image
image

Copy link
Contributor

@oanalavinia oanalavinia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a remark about the UI of the drawer buttons. I see that the already existing XWiki buttons use italic, while the new buttons do not look the same

ui/pom.xml Outdated Show resolved Hide resolved
ui/src/main/resources/EntraID/WebHome.xml Outdated Show resolved Hide resolved
Copy link
Contributor

@oanalavinia oanalavinia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall. Just waiting for Stefana's input on the naming and also for changes / answer related to this comment #53 (review)
Thanks!

ui/src/main/resources/EntraID/WebHome.xml Show resolved Hide resolved
# Conflicts:
#	admin-ui/src/main/resources/AzureADAdmin/Translations.xml
#	ui/src/main/resources/EntraID/Code/EntraOIDCClientConfigurationSheet.xml
* modified extension name and description
* modified extension name and description
@ChiuchiuSorin ChiuchiuSorin merged commit cc2d162 into xwikisas:2.x Jan 23, 2025
@ChiuchiuSorin ChiuchiuSorin deleted the iss48 branch January 23, 2025 14:12
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.

Replace identity-oauth use with OIDC
2 participants