Skip to content

Commit

Permalink
hardcode what username to get the pwd for
Browse files Browse the repository at this point in the history
Even if we only support storing one set of iasset credentials at the moment, if this ever changes in the future this line will ensure we'll be fetching the right one.
  • Loading branch information
PietrH committed Apr 2, 2024
1 parent e801285 commit e86c68a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/get_access_token.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ get_access_token <-
login_response <- login_request %>%
httr2::req_body_form(
username = username,
password = openssl::md5(keyring::key_get("iasset_password")),
password = openssl::md5(keyring::key_get("iasset_password",
username = username)),

Check warning on line 78 in R/get_access_token.R

View check run for this annotation

Codecov / codecov/patch

R/get_access_token.R#L77-L78

Added lines #L77 - L78 were not covered by tests
domain = "riparias",
version = "9.7"
) %>%
Expand Down

0 comments on commit e86c68a

Please sign in to comment.