-
Notifications
You must be signed in to change notification settings - Fork 545
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
Add client attestation mgt to Framework #5126
Conversation
4c7e9ce
to
937246f
Compare
0ef5920
to
9a3edb4
Compare
...a/org/wso2/carbon/identity/client/attestation/mgt/services/ClientAttestationServiceImpl.java
Outdated
Show resolved
Hide resolved
...a/org/wso2/carbon/identity/client/attestation/mgt/services/ClientAttestationServiceImpl.java
Outdated
Show resolved
Hide resolved
...ain/java/org/wso2/carbon/identity/client/attestation/mgt/model/ClientAttestationContext.java
Outdated
Show resolved
Hide resolved
.../org/wso2/carbon/identity/client/attestation/mgt/validators/AndroidAttestationValidator.java
Show resolved
Hide resolved
.../org/wso2/carbon/identity/client/attestation/mgt/validators/AndroidAttestationValidator.java
Show resolved
Hide resolved
components/client-attestation-mgt/org.wso2.carbon.identity.client.attestation.mgt/pom.xml
Outdated
Show resolved
Hide resolved
components/client-attestation-mgt/org.wso2.carbon.identity.client.attestation.mgt/pom.xml
Outdated
Show resolved
Hide resolved
...rg/wso2/carbon/identity/client/attestation/mgt/exceptions/ClientAttestationMgtException.java
Outdated
Show resolved
Hide resolved
...ain/java/org/wso2/carbon/identity/client/attestation/mgt/model/AppleAttestationMetaData.java
Outdated
Show resolved
Hide resolved
...ain/java/org/wso2/carbon/identity/client/attestation/mgt/model/ClientAttestationContext.java
Outdated
Show resolved
Hide resolved
.../org/wso2/carbon/identity/client/attestation/mgt/validators/AndroidAttestationValidator.java
Outdated
Show resolved
Hide resolved
.../org/wso2/carbon/identity/client/attestation/mgt/validators/AndroidAttestationValidator.java
Outdated
Show resolved
Hide resolved
...a/org/wso2/carbon/identity/client/attestation/mgt/validators/ClientAttestationValidator.java
Outdated
Show resolved
Hide resolved
...ttestation-mgt/org.wso2.carbon.identity.client.attestation.mgt/src/test/resources/testng.xml
Outdated
Show resolved
Hide resolved
703df1e
to
904d3ed
Compare
PR builder started |
PR builder completed |
/** | ||
* This method indicates which client Attestation validation type, it can handle. | ||
* | ||
* @return OS name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment on return should be updated.
LOG.error("Error while parsing attestation allowed window timeout config: " + allowedWindow, e); | ||
clientAttestationContext.setAttested(false); | ||
clientAttestationContext.setValidationFailureMessage("Error while parsing attestation allowed window " + | ||
"timeout config. Probably a misconfiguration, hence rejecting the request."); | ||
return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets fallback to a hardcoded default(along with error log) or throw the exception out and break the flow.
* OSGi declarative services component which handled registration and un-registration of | ||
* ClientAttestationMgtServiceComponent. | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove empty line
PR builder started |
PR builder completed |
PR builder started |
PR builder completed |
433a483
to
51cbff7
Compare
PR builder started |
PR builder completed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/6787701078
Proposed changes in this pull request
Issue: wso2/product-is#16836
Implementation
Add ClientAttestationMetaData to Service provider. This class represents the metadata related to client attestation.
These meta data stored in Service provider properties apart from the service now credential to access Google Play Integrity API.
The credential stored in Secret management Component as ANDROID_ATTESTATION_CREDENTIALS.
The
ClientAttestationServiceImpl
class implements theClientAttestationService
interface and is responsible for validating client attestation. It ensures the authenticity and context of the client when API-based authentication is requested.The class provides the following functionalities:
The
AndroidAttestationValidator
class is responsible for validating client attestation for Android clients. It ensures the authenticity and integrity of the client's attestation data, which is typically provided in the form of an integrity token.The class provides the following functionalities: