mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
feat(auth): Add support for partial-auth, by facilitating injection of authentication parameters in headers (#4802)
Co-authored-by: Jagan <jaganelavarasan@gmail.com>
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
|
||||
use std::{fmt, marker::PhantomData};
|
||||
|
||||
use crate::{strategy::Strategy, PeekInterface};
|
||||
use crate::{strategy::Strategy, PeekInterface, StrongSecret};
|
||||
|
||||
///
|
||||
/// Secret thing.
|
||||
@ -81,6 +81,14 @@ where
|
||||
{
|
||||
f(self.inner_secret).into()
|
||||
}
|
||||
|
||||
/// Convert to [`StrongSecret`]
|
||||
pub fn into_strong(self) -> StrongSecret<SecretValue, MaskingStrategy>
|
||||
where
|
||||
SecretValue: zeroize::DefaultIsZeroes,
|
||||
{
|
||||
StrongSecret::new(self.inner_secret)
|
||||
}
|
||||
}
|
||||
|
||||
impl<SecretValue, MaskingStrategy> PeekInterface<SecretValue>
|
||||
|
||||
Reference in New Issue
Block a user