Saml code in Liferay was built long time ago, with legacy framework and technology, while other parts of Liferay have evolved, saml is stuck.
As a result, it has been increasing difficult to work with Saml, especially for people who read the code for the first time.
Not to mention, there are confusing naming and coding groups that make Liferay Saml Implementation even harder to understand.
We will come up a series of refactors/structure change to bring saml up to date, easier to read and maintain.
Initial document of this task: