-
Notifications
You must be signed in to change notification settings - Fork 136
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
Refactor Realm and related code #24630
Conversation
* Split out the over complicated Realm class is a few pieces that are easier to understand * Specifically, create an interface for getting user data (used by the authentication code) and an interface for managing user data (used by admin console) * Split between the all static methods and the stateful instance methods * Remove classes not longer in use and/or deprecated * Move all realm related exceptions to their own package Note: There is more to be done still, especially the individual realm implementations can be refactored wrt enhanced for loops, pairing with their LoginModule peer, etc. Signed-off-by: Arjan Tijms <arjan.tijms@omnifish.ee>
.../security/core/src/main/java/com/sun/enterprise/security/auth/realm/RealmsManagerHolder.java
Outdated
Show resolved
Hide resolved
...er/security/core-ee/src/main/java/com/sun/enterprise/security/auth/realm/jdbc/JDBCRealm.java
Show resolved
Hide resolved
...er/security/core-ee/src/main/java/com/sun/enterprise/security/auth/realm/jdbc/JDBCRealm.java
Outdated
Show resolved
Hide resolved
nucleus/security/core/src/main/java/com/sun/enterprise/security/auth/realm/file/FileRealm.java
Outdated
Show resolved
Hide resolved
nucleus/security/core/src/main/java/com/sun/enterprise/security/auth/realm/file/FileRealm.java
Outdated
Show resolved
Hide resolved
nucleus/security/core/src/main/java/com/sun/enterprise/security/auth/realm/ldap/LDAPRealm.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Arjan Tijms <arjan.tijms@omnifish.ee>
Signed-off-by: Arjan Tijms <arjan.tijms@omnifish.ee>
nucleus/security/core/src/main/java/com/sun/enterprise/security/auth/realm/ldap/LDAPRealm.java
Outdated
Show resolved
Hide resolved
...er/security/core-ee/src/main/java/com/sun/enterprise/security/auth/realm/jdbc/JDBCRealm.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Arjan Tijms <arjan.tijms@omnifish.ee>
Signed-off-by: Arjan Tijms <arjan.tijms@omnifish.ee>
Just one note - shouldn't we release 7.1.0 at the end of the month? This seems like a breaking change, I am not sure, I did not write a realm and login module for a while, but some classes changed packages (exceptions, ie). |
It does depend on what people would use from GlassFish internals. I personally think that if internal code changes (with the exception of the classes listed in the xml files) it would not constitute a breaking change in the traditional sense. Of course the problem is that GlassFish for building LoginModules/Realms doesn't distinguish between external and internal code. Types that people can use for custom LoginModules/Realms should have gone into one of the many GlassFish API modules, but obviously this has never been done. |
This is rather an API of GlassFish ... years ago I added the security-ee in my dependencies, with |
Note:
There is more to be done still, especially the individual realm implementations can be refactored wrt enhanced for loops, pairing with their LoginModule peer, etc.