feat: integrate Basilisk locker for storing sensitive data (#34)

Co-authored-by: Manoj Ghorela <manoj.ghorela@manoj.ghorela-MacBookPro>
This commit is contained in:
Manoj Ghorela
2022-12-01 17:08:38 +05:30
committed by GitHub
parent f47c06a517
commit 63652a52ea
20 changed files with 727 additions and 146 deletions

View File

@ -71,9 +71,14 @@ pub(super) fn create_client(
// TODO: Move to env variable
pub(super) fn proxy_bypass_urls(locker: &Locker) -> Vec<String> {
let locker_host = locker.host.to_owned();
let basilisk_host = locker.basilisk_host.to_owned();
vec![
format!("{locker_host}/card/addCard"),
format!("{locker_host}/card/getCard"),
format!("{locker_host}/card/deleteCard"),
format!("{basilisk_host}/tokenize"),
format!("{basilisk_host}/tokenize/get"),
format!("{basilisk_host}/tokenize/delete"),
format!("{basilisk_host}/tokenize/delete/token"),
]
}