Skip to content

[PM-23608] Add generateTotp overload with CipherListView parameter#5509

Closed
SaintPatrck wants to merge 1 commit intomainfrom
PM-23608/vault-sdk-generate-totp-cipherview
Closed

[PM-23608] Add generateTotp overload with CipherListView parameter#5509
SaintPatrck wants to merge 1 commit intomainfrom
PM-23608/vault-sdk-generate-totp-cipherview

Conversation

@SaintPatrck
Copy link
Contributor

🎟️ Tracking

PM-23608

📔 Objective

The VaultSdkSource and VaultSdkSourceImpl classes are updated to include a new overload for the generateTotp method. This overload accepts a CipherListView parameter instead of a String totp parameter.

This change also updates the corresponding unit tests to specify argument names.

Additionally, a new utility file CipherListViewUtil.kt is introduced to create mock CipherListView objects for testing purposes.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@github-actions
Copy link
Contributor

github-actions bot commented Jul 10, 2025

Logo
Checkmarx One – Scan Summary & Detailsb97477ad-9107-46ea-82ca-7d8102e6e2c3

Great job, no security vulnerabilities found in this Pull Request

@SaintPatrck SaintPatrck force-pushed the PM-23608/vault-sdk-generate-totp-cipherview branch from 3479a35 to 1e5c017 Compare July 10, 2025 18:53
@SaintPatrck SaintPatrck enabled auto-merge July 10, 2025 18:54
suspend fun generateTotp(
userId: String,
cipherListView: CipherListView,
time: Instant,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for that

@SaintPatrck SaintPatrck force-pushed the PM-23608/vault-sdk-generate-totp-cipherview branch from 1e5c017 to b01d938 Compare July 10, 2025 19:38
@SaintPatrck SaintPatrck force-pushed the PM-23608/vault-sdk-generate-totp-cipherview branch from b01d938 to 94af4bf Compare July 10, 2025 21:09
@SaintPatrck SaintPatrck force-pushed the PM-23608/vault-sdk-generate-totp-cipherview branch from 94af4bf to 45fbdbf Compare July 11, 2025 13:40
The `VaultSdkSource` and `VaultSdkSourceImpl` classes are updated to include a new overload for the `generateTotp` method. This overload accepts a `CipherListView` parameter instead of a `String` totp parameter.

This change also updates the corresponding unit tests to specify argument names.

Additionally, a new utility file `CipherListViewUtil.kt` is introduced to create mock `CipherListView` objects for testing purposes.
@SaintPatrck SaintPatrck force-pushed the PM-23608/vault-sdk-generate-totp-cipherview branch from 45fbdbf to 54ad19c Compare July 11, 2025 14:12
auto-merge was automatically disabled July 11, 2025 15:39

Pull request was closed

@SaintPatrck SaintPatrck deleted the PM-23608/vault-sdk-generate-totp-cipherview branch July 14, 2025 13:25
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.

2 participants