Details
-
Improvement
-
Resolution: Unresolved
-
Minor
-
COmanage Registry 3.2.3 (Oyster Pearl MR3)
-
None
Description
In principle, the GitHub provisioner should be able to share a client/secret across multiple instantiations of the plugin for the same repository. However, at the moment this does not work because instantiation 2 will obtain a new token, obsoleting the token from instantiation 1. This could be fixed by instantiation 2 updating the access_token in the cm_co_github_provisioner_targets table for all matching client_ids.
The workaround for now is just to create a new GitHub OAuth2 client for each instance of the provisioner.