kbowers-ibm commented on issue #279:
URL: 
https://github.com/apache/incubator-kie-issues/issues/279#issuecomment-1757003013

   Sorry for the delayed response! Yes that's right. As far as I can tell, the 
way it currently "matches" the authSession is to check the type of link being 
imported, i.e. if it's GitHub, Bitbucket, etc. It then appears to just try the 
first token that is of that auth session type and doesn't try any others if it 
fails.
   Scenario 1: Bitbucket token and GitHub token added. I try to import a 
private GitHub repository, and it correctly uses the GitHub token.
   Scenario 2: GitHub token for account "abc" added, and GitHub token for 
account "xyz" added. I try to import a private GitHub repository for account 
"xyz." It fails as it only tries "abc." Importing a private repo from account 
"abc" will work.
   So seems like we need to add some code that tests if it works as you 
mentioned above, and if not, continues to loop through the remaining 
authsession tokens matching the type of link


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to