@Test public void testActionNotAllowedDifferentAuthenticatingAuthorityButOwnerDifferentIdp() throws Exception { this.pdpPolicy.setAuthenticatingAuthority(notOwnedIdp); setupSecurityContext(false, entityMetadata(identityProviderIds[0]), entityMetadata(notOwnedIdp)); this.subject.actionAllowed(pdpPolicy, PolicyAccess.WRITE, serviceProviderIds[0], singletonList(identityProviderIds[0])); }
public void actionAllowed(PdpPolicy pdpPolicy, PolicyAccess policyAccess, String serviceProviderId, List<String> identityProviderIds) { doActionAllowed(pdpPolicy, policyAccess, serviceProviderId, identityProviderIds, true); }
PolicyIdpAccessEnforcer implements JsonMapper { public void actionAllowed(PdpPolicy pdpPolicy, PolicyAccess policyAccess, String serviceProviderId, List<String> identityProviderIds) { doActionAllowed(pdpPolicy, policyAccess, serviceProviderId, identityProviderIds, true); } }
PolicyIdpAccessEnforcer implements JsonMapper { public void actionAllowed(PdpPolicy pdpPolicy, PolicyAccess policyAccess, String serviceProviderId, List<String> identityProviderIds) { doActionAllowed(pdpPolicy, policyAccess, serviceProviderId, identityProviderIds, true); }  }
PolicyIdpAccessEnforcer implements JsonMapper { public void actionAllowed(PdpPolicy pdpPolicy, PolicyAccess policyAccess, String serviceProviderId, List<String> identityProviderIds) { doActionAllowed(pdpPolicy, policyAccess, serviceProviderId, identityProviderIds, true); }  void actionAllowed(PdpPolicy pdpPolicy, PolicyAccess policyAccess, String serviceProviderId, List<String> identityProviderIds); boolean actionAllowedIndicator(PdpPolicy pdpPolicy, PolicyAccess policyAccess, String serviceProviderId, List<String> identityProviderIds); Iterable<PdpPolicyViolation> filterViolations(Iterable<PdpPolicyViolation> violations); List<PdpPolicyDefinition> filterPdpPolicies(List<PdpPolicyDefinition> policies); List<EntityMetaData> filterIdentityProviders(List<EntityMetaData> identityProviders); static FederatedUser federatedUser(); String username(); String authenticatingAuthority(); String userDisplayName(); boolean isPolicyIdpAccessEnforcementRequired(); }
PolicyIdpAccessEnforcer implements JsonMapper { public void actionAllowed(PdpPolicy pdpPolicy, PolicyAccess policyAccess, String serviceProviderId, List<String> identityProviderIds) { doActionAllowed(pdpPolicy, policyAccess, serviceProviderId, identityProviderIds, true); }  void actionAllowed(PdpPolicy pdpPolicy, PolicyAccess policyAccess, String serviceProviderId, List<String> identityProviderIds); boolean actionAllowedIndicator(PdpPolicy pdpPolicy, PolicyAccess policyAccess, String serviceProviderId, List<String> identityProviderIds); Iterable<PdpPolicyViolation> filterViolations(Iterable<PdpPolicyViolation> violations); List<PdpPolicyDefinition> filterPdpPolicies(List<PdpPolicyDefinition> policies); List<EntityMetaData> filterIdentityProviders(List<EntityMetaData> identityProviders); static FederatedUser federatedUser(); String username(); String authenticatingAuthority(); String userDisplayName(); boolean isPolicyIdpAccessEnforcementRequired();  }