Skip to content
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

feat: DCMAW-10311 generate key pair #87

Merged
merged 11 commits into from
Oct 31, 2024
Merged

Conversation

alex-bradbury-gds
Copy link
Contributor

@alex-bradbury-gds alex-bradbury-gds commented Oct 24, 2024

DCMAW-10311

Description of changes

  • moving current login related code into separate package
  • moving app checker functionality into authentication repo from one-login
  • create ClientAttestationManager interface
  • a Firebase implementation of the AttestationManager is created with 'empty' methods
  • KeystoreManager created to create a way to interact with the Keystore and use keys from it. Currently it generates an EC keypair on initialization if one does not already exist

Evidence against the ACs will be found in the One-Login codebase although even there it will be difficult to really show the keys being created. Hopefully the tests present here are covering the desired behaviour.

app/build.gradle.kts Outdated Show resolved Hide resolved
alex-bradbury-gds and others added 7 commits October 30, 2024 10:54
- a Firebase implementation of the AttestationManager is created with 'empty' methods
- `KeystoreManager` created to create a way to interact with the Keystore and use keys from it. Currently it generates an EC keypair on initialization if one does not already exist
Update AppAuthPresentTest from calling external Activity

Resolves: 10311
Move appcheck usecase package under the integrity package in the test source set to match the package structure in the main source set
Remove extra login package in the test source set

Resolves: 10311
Move the appcheck usecase package from appcheck to directly under the integrity package
Update the test source set to match

Resolves: 10311
Update libs.versions.toml to remove the GDS networking library dependency
Update build.gradle.kts to remove usage of the GDS networking dependency
Add AttestationClient to use in place of GenericHttpClient
Add JWK object to hold the relevant details for the attestation JWK
Swap from GenericHttpClient to AttestationClient
Update tests

Resolves: 10311
Update build.gradle.kts to include a property extra for buildLogicDir

Resolves: 10311
Update build.gradle.kts to remove use of mockito.core (it is included in mockito.kotlin)
Update test classes to use kotlin.test

Resolves: 10311
Rename AttestationApiCal to AttestationCaller
Combine Attestation Client and AttestationCaller into one interface
Update KeystoreManager to include getter for private key
Update tests to match changes

Resolves: 10311
settings.gradle.kts Outdated Show resolved Hide resolved
Update settings.gradle.kts to revert back to what it was

Resolves: 10311
@ThomasIent ThomasIent merged commit 28c597b into main Oct 31, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants