Struct octorust::auth::JWTCredentials [−][src]
Expand description
JSON Web Token authentication mechanism.
The GitHub client methods are all &self, but the dynamically generated JWT token changes regularly. The token is also a bit expensive to regenerate, so we do want to have a mutable cache.
We use a token inside a Mutex so we can have interior mutability even though JWTCredentials is not mutable.
Fields
app_id: u64
private_key: Vec<u8>
DER RSA key. Generate with
openssl rsa -in private_rsa_key.pem -outform DER -out private_rsa_key.der
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for JWTCredentials
impl Send for JWTCredentials
impl Sync for JWTCredentials
impl Unpin for JWTCredentials
impl UnwindSafe for JWTCredentials
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more