-
Notifications
You must be signed in to change notification settings - Fork 116
Save&restore authentication and authorization #2869
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
Conversation
… if user is not authenticated
…henticated. Also some duplicate code removed
|
There are a few things here ( mainly spring things )
while this is not a new issue... if we have two spring services each with their own embedded server then one of the will fail to startup due to port conflicts. It is not ideal that the service should not startup cause of an unnecessary services having port conflicts. |
|
Concluded the same: only way to suppress start of embedded server is to remove dependency... |
|
@shroffk, I have spent some time to figure if and how to suppress the embedded ldap server using other strategies besides removing the "unbound" dependency. Here is one (the only?) way to do it without removing the "unboundid" dependency: Comment out/skip application property |
|
Ok,
I don't think either of these are great, we should just hope that future releases of spring make it easier to control the lifecycle of services/beans/autoconfigured pieces |
|
In my view 1 is preferable, though indeed not great. I'm wondering if we should comment out all Maybe our use case is in fact "special". We provide a service where users can choose from a selection of mutually quite different authentication implementations. Again, we could consider creating WebSecurityConfig classes for each of these use cases, that would make it possible to more easily suppress what is not wanted. |
|
I think for the time being we are fine... we have this "unique" situation with the security modules somewhat understood and documented here in PR's and Issues
So instead of configurable beans which inject the authentication manager... we have the multiple Maybe we pause here and keep things as they are... I was reading that spring security 7 is going to have a lot of changes ( including removing some of the deprecated classes which started this fun journey ), so we can come back to the remaining cleanup then.... as of now things are broadly working as we need them to. |
|
Agree, let's stop now. |
|
yes absolutely... even I was stumped for a bit and thought my Phoebus was not correctly configured. |
|
@shroffk, turns out my concerns about credentials caching were unfounded. Caching is kind of implied when logging in through the credentials manager application. Olog client is different as it offers credentials input, and there you can specify a caching policy. |
|
Ready to merge but will wait till after the current release of Phoebus |
|
@shroffk, that's fine, but the release is currently blocked by the VTable issue. Not sure when and how this can be resolved. |
|
@shroffk, can we merge this? |
Docs updated to describe the feature.