-
Notifications
You must be signed in to change notification settings - Fork 4
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
Migrate old objects values to the OIDC class #41 #50
Conversation
* 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
* created a new configuration class for OIDC * refactored the listener * refactored the configuration sources+
* replaced DocumentUpdatedEvent with XObjectUpdatedEvent * removed TODO
api/src/main/java/com/xwiki/azureoauth/configuration/AzureConfiguration.java
Outdated
Show resolved
Hide resolved
api/src/main/java/com/xwiki/azureoauth/configuration/AzureOldConfiguration.java
Outdated
Show resolved
Hide resolved
api/src/main/java/com/xwiki/azureoauth/internal/AzureADObjectUpgradeListener.java
Outdated
Show resolved
Hide resolved
api/src/main/java/com/xwiki/azureoauth/configuration/AzureConfiguration.java
Outdated
Show resolved
Hide resolved
api/src/main/java/com/xwiki/azureoauth/internal/AzureADInitializer.java
Outdated
Show resolved
Hide resolved
api/src/main/java/com/xwiki/azureoauth/internal/AzureADInitializer.java
Outdated
Show resolved
Hide resolved
api/src/main/java/com/xwiki/azureoauth/internal/AzureADObjectUpgradeListener.java
Outdated
Show resolved
Hide resolved
api/src/main/java/com/xwiki/azureoauth/internal/AzureADObjectUpgradeListener.java
Outdated
Show resolved
Hide resolved
api/src/main/java/com/xwiki/azureoauth/internal/AzureADInitializer.java
Outdated
Show resolved
Hide resolved
* renamed AzureAD to Entra ID * refactored the initializer
* added unit tests * code refactoring
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Answers + some mentions about AzureAD -> EntraID
api/src/main/java/com/xwiki/azureoauth/internal/AzureADOIDCMigrator.java
Show resolved
Hide resolved
<hidden>true</hidden> | ||
<content/> | ||
<object> | ||
<name>AzureAD.AzureADClientConfiguration</name> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also use EntraID
Even for the space. I know there is already a AzureAD
space, but are any of the pages we have in it, gonna be used in 2.x, after all changes are done? Do we want to keep it for the WebPreferences
, is it necessary? I feel like we will keep this space only for migration purposes and it's ok to have all new pages in a separated space (AzureAD
is about old stuff / 1.x, EntraID
is about 2.x). Let me know if I am missing something
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I also modify the naming convention of the java source folders from com.xwiki.azureoauth
to com.xwiki.entraid
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since all (2) classes from the current package will be removed, yes, you can rename it too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, but I'd leave the renaming for after I actually remove the classes, in #48.
api/src/main/java/com/xwiki/azureoauth/internal/AzureADObjectUpdateListener.java
Outdated
Show resolved
Hide resolved
api/src/main/java/com/xwiki/azureoauth/internal/AzureADInitializer.java
Outdated
Show resolved
Hide resolved
api/src/main/java/com/xwiki/azureoauth/internal/AzureADInitializer.java
Outdated
Show resolved
Hide resolved
api/src/main/java/com/xwiki/azureoauth/internal/AzureADObjectUpgradeListener.java
Outdated
Show resolved
Hide resolved
* renamed new documents and classes to Entra ID name convention * replaced the configuration initialization from only at version 2.0 to whenever the configuration is empty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me know if I missed some questions :)
These are mainly only some renames
api/src/main/java/com/xwiki/azureoauth/internal/AzureADOIDCMigrator.java
Show resolved
Hide resolved
api/src/main/java/com/xwiki/azureoauth/internal/AzureADOIDCMigrator.java
Outdated
Show resolved
Hide resolved
api/src/main/java/com/xwiki/azureoauth/internal/AzureADOIDCMigrator.java
Outdated
Show resolved
Hide resolved
<hidden>true</hidden> | ||
<content/> | ||
<object> | ||
<name>AzureAD.AzureADClientConfiguration</name> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since all (2) classes from the current package will be removed, yes, you can rename it too
api/src/main/java/com/xwiki/azureoauth/internal/AzureADOIDCMigrator.java
Outdated
Show resolved
Hide resolved
api/src/main/java/com/xwiki/azureoauth/internal/configuration/DefaultEntraIDConfiguration.java
Show resolved
Hide resolved
api/src/main/java/com/xwiki/azureoauth/internal/AzureADOIDCMigrator.java
Outdated
Show resolved
Hide resolved
ui/src/main/resources/EntraID/Code/EntraOIDCClientConfiguration.xml
Outdated
Show resolved
Hide resolved
<userNameFormatter>${oidc.idtoken.upn._clean._lowerCase}</userNameFormatter> | ||
</property> | ||
<property> | ||
<userSubjectFormatter>${oidc.idtoken.oid}</userSubjectFormatter> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a note for later, we should mention these in the documentation after 2.0 is released :)
api/src/main/java/com/xwiki/azureoauth/internal/AzureADInitializer.java
Outdated
Show resolved
Hide resolved
* name refactoring * added and modified comments
Don't forget to merge it in a |
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 and a listener that copies the old configuration to the new OIDC configuration.