Open Archimidis opened 1 year ago
The crate secstr was used for the access_token
field.
Wrote a serde field deserializer for expire_in
that transforms an epoch to std::time::Duration
.
The field token_type
is now an enum and has it's own custom deserializer.
Function parameters of setup
of CI trait are gathered under the CIJob
struct.
Implemented check in ConcourseAPI that checks if an access token exists. Issue #19 is created to further enhance this functionality.
The field
expires_in
should be of typestd::time::Duration
. Is it possible for the String types to use thenewtype
idiom? Is it possible to declare the fieldtoken_type
type as an enum? Can secstr be used for theaccess_token
field? fintohaps suggested this for accepting passwords, but he recall that it might not have zeroed correctly. Cloudhead suggested to usePassphrase
which isZeroizing<String>
.Use Options or Config struct for the setup parameters.
Test safety of unwrap when getting the access token