You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let app_auth = ifletAuthState::App(ref app_auth) = self.auth_state{
app_auth.clone()
}else{
panic!("Github App authorization is required to target an installation");
};
Octocrab{
client:self.client.clone(),
auth_state:AuthState::Installation{
app: app_auth,
installation: id,
token:CachedToken::default(),
},
}
}
How would you like to see this solved, @XAMPPRocky? Is there a specific reason for why the auth logic is duplicated, or is it because it's hard to change the client, once constructed?
The text was updated successfully, but these errors were encountered:
Looks like authentication still breaks for "child" clients, such as when making an installation client, even after #602.
I believe the code in question, also from #562 (3ce474a), is here:
octocrab/src/lib.rs
Lines 1540 to 1551 in 344cfa7
From what I can tell, it doesn't look like the authentication layer (from the middleware module) is modified when the client is cloned:
octocrab/src/lib.rs
Lines 977 to 991 in 344cfa7
How would you like to see this solved, @XAMPPRocky? Is there a specific reason for why the auth logic is duplicated, or is it because it's hard to change the client, once constructed?
The text was updated successfully, but these errors were encountered: