mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing EMM-1129
This commit is contained in:
parent
2b0e1eecab
commit
094423e0b9
@ -123,9 +123,6 @@ public class DynamicClientRegistrationServiceImpl implements DynamicClientRegist
|
|||||||
String grantType = profile.getGrantType();
|
String grantType = profile.getGrantType();
|
||||||
String callbackUrl = profile.getCallbackUrl();
|
String callbackUrl = profile.getCallbackUrl();
|
||||||
boolean isSaaSApp = profile.isSaasApp();
|
boolean isSaaSApp = profile.isSaasApp();
|
||||||
String audience = profile.getAudience();
|
|
||||||
String assertionConsumerURL = profile.getAssertionConsumerURL();
|
|
||||||
String recipientValidationURL = profile.getRecepientValidationURL();
|
|
||||||
|
|
||||||
if (userId == null || userId.isEmpty()) {
|
if (userId == null || userId.isEmpty()) {
|
||||||
return null;
|
return null;
|
||||||
@ -220,13 +217,6 @@ public class DynamicClientRegistrationServiceImpl implements DynamicClientRegist
|
|||||||
|
|
||||||
SAMLSSOServiceProviderDTO samlssoServiceProviderDTO = new SAMLSSOServiceProviderDTO();
|
SAMLSSOServiceProviderDTO samlssoServiceProviderDTO = new SAMLSSOServiceProviderDTO();
|
||||||
samlssoServiceProviderDTO.setIssuer(MDM);
|
samlssoServiceProviderDTO.setIssuer(MDM);
|
||||||
samlssoServiceProviderDTO.setAssertionConsumerUrls(new String[] {assertionConsumerURL});
|
|
||||||
samlssoServiceProviderDTO.setDoSignResponse(true);
|
|
||||||
samlssoServiceProviderDTO.setRequestedAudiences(new String[] { audience });
|
|
||||||
samlssoServiceProviderDTO.setDefaultAssertionConsumerUrl(assertionConsumerURL);
|
|
||||||
samlssoServiceProviderDTO.setRequestedRecipients(new String[] {recipientValidationURL});
|
|
||||||
samlssoServiceProviderDTO.setDoSignAssertions(true);
|
|
||||||
|
|
||||||
|
|
||||||
SAMLSSOConfigAdmin configAdmin = new SAMLSSOConfigAdmin(getConfigSystemRegistry());
|
SAMLSSOConfigAdmin configAdmin = new SAMLSSOConfigAdmin(getConfigSystemRegistry());
|
||||||
configAdmin.addRelyingPartyServiceProvider(samlssoServiceProviderDTO);
|
configAdmin.addRelyingPartyServiceProvider(samlssoServiceProviderDTO);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user