mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-09-24 04:26:14 +00:00
Compare commits
1 Commits
394ecfb08c
...
2c0677cbf4
Author | SHA1 | Date | |
---|---|---|---|
![]() |
2c0677cbf4 |
@ -75,8 +75,11 @@ public class CustomUserDetailsService implements UserDetailsService {
|
|||||||
*/
|
*/
|
||||||
private AuthenticationType determinePreferredSSOType() {
|
private AuthenticationType determinePreferredSSOType() {
|
||||||
// Check what SSO types are enabled and prefer in order: OAUTH2 > SAML2 > fallback to OAUTH2
|
// Check what SSO types are enabled and prefer in order: OAUTH2 > SAML2 > fallback to OAUTH2
|
||||||
boolean oauth2Enabled = securityProperties.getOauth2() != null && securityProperties.getOauth2().getEnabled();
|
boolean oauth2Enabled =
|
||||||
boolean saml2Enabled = securityProperties.getSaml2() != null && securityProperties.getSaml2().getEnabled();
|
securityProperties.getOauth2() != null
|
||||||
|
&& securityProperties.getOauth2().getEnabled();
|
||||||
|
boolean saml2Enabled =
|
||||||
|
securityProperties.getSaml2() != null && securityProperties.getSaml2().getEnabled();
|
||||||
|
|
||||||
if (oauth2Enabled) {
|
if (oauth2Enabled) {
|
||||||
return AuthenticationType.OAUTH2;
|
return AuthenticationType.OAUTH2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user