Skip to content

Commit

Permalink
record auth behavior for attr verification credential
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Jan 17, 2023
1 parent 580b263 commit 0a7acdf
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ protected boolean supportsAuthzCheck() {

@Override
protected AttributeVerificationCredentialsType getCredential(CredentialsType credentials) {
//todo hack
return new AttributeVerificationCredentialsType();
// return credentials.getAttributeVerification();
if (credentials.getAttributeVerification() == null) {
credentials.setAttributeVerification(new AttributeVerificationCredentialsType());
}
return credentials.getAttributeVerification();
}

@Override
Expand Down Expand Up @@ -73,7 +74,7 @@ private boolean attributeValueMatches(FocusType principal, Map.Entry<ItemPath, S
}

@Override
protected CredentialPolicyType getEffectiveCredentialPolicy(
protected AttributeVerificationCredentialsPolicyType getEffectiveCredentialPolicy(
SecurityPolicyType securityPolicy, AttributeVerificationAuthenticationContext authnCtx) {

return null;
Expand Down

0 comments on commit 0a7acdf

Please sign in to comment.