Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let GitHubAppCredentials on an agent just delegate to the master #329

Closed
wants to merge 1 commit into from

Conversation

jglick
Copy link
Member

@jglick jglick commented Aug 20, 2020

Untested alternative to #302 which might solve some issues like #326 is also attempting to.

@jglick
Copy link
Member Author

jglick commented Aug 20, 2020

Not at all sure that this would work, since Channel.export Javadoc has some warnings which I do not really understand. Maybe @oleg-nenashev grasps the subtleties here better.

return clone;
}

return ch.export(StandardUsernamePasswordCredentials.class, this);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jglick
Why is this a StandardUsernamePasswordCredentials instead of a GitHubAppCredentials? Less class loading?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You pass the interface type which defines the methods you actually expect something to call.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I should RTFM. Sorry. :)

@jglick
Copy link
Member Author

jglick commented Aug 20, 2020

While this is simpler, it is also probably unreliable.

@jglick jglick closed this Aug 20, 2020
@jglick jglick deleted the GitHubAppCredentials-export branch August 20, 2020 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants