mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-21 06:35:11 +00:00
Make a method public
And rename them for good cause.
This commit is contained in:
@@ -80,7 +80,7 @@ namespace Octokit
|
|||||||
/// <param name="retryInvalidTwoFactorCode">If true, instead of completing when the two factor code supplied
|
/// <param name="retryInvalidTwoFactorCode">If true, instead of completing when the two factor code supplied
|
||||||
/// is invalid, we go through the whole cycle again and prompt the two factor dialog.</param>
|
/// is invalid, we go through the whole cycle again and prompt the two factor dialog.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static IObservable<ApplicationAuthorization> CreateAndDeleteExistingApplicationAuthentication(
|
public static IObservable<ApplicationAuthorization> CreateAndDeleteExistingApplicationAuthorization(
|
||||||
this IObservableAuthorizationsClient authorizationsClient,
|
this IObservableAuthorizationsClient authorizationsClient,
|
||||||
string clientId,
|
string clientId,
|
||||||
string clientSecret,
|
string clientSecret,
|
||||||
@@ -88,7 +88,7 @@ namespace Octokit
|
|||||||
Func<TwoFactorAuthorizationException, IObservable<TwoFactorChallengeResult>> twoFactorChallengeHandler,
|
Func<TwoFactorAuthorizationException, IObservable<TwoFactorChallengeResult>> twoFactorChallengeHandler,
|
||||||
bool retryInvalidTwoFactorCode)
|
bool retryInvalidTwoFactorCode)
|
||||||
{
|
{
|
||||||
return authorizationsClient.CreateAndDeleteExistingApplicationAuthentication(
|
return authorizationsClient.CreateAndDeleteExistingApplicationAuthorization(
|
||||||
clientId,
|
clientId,
|
||||||
clientSecret,
|
clientSecret,
|
||||||
newAuthorization,
|
newAuthorization,
|
||||||
@@ -97,7 +97,7 @@ namespace Octokit
|
|||||||
retryInvalidTwoFactorCode);
|
retryInvalidTwoFactorCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
static IObservable<ApplicationAuthorization> CreateAndDeleteExistingApplicationAuthentication(
|
public static IObservable<ApplicationAuthorization> CreateAndDeleteExistingApplicationAuthorization(
|
||||||
this IObservableAuthorizationsClient authorizationsClient,
|
this IObservableAuthorizationsClient authorizationsClient,
|
||||||
string clientId,
|
string clientId,
|
||||||
string clientSecret,
|
string clientSecret,
|
||||||
@@ -128,14 +128,14 @@ namespace Octokit
|
|||||||
exception => twoFactorHandler(exception)
|
exception => twoFactorHandler(exception)
|
||||||
.SelectMany(result =>
|
.SelectMany(result =>
|
||||||
result.ResendCodeRequested
|
result.ResendCodeRequested
|
||||||
? authorizationsClient.CreateAndDeleteExistingApplicationAuthentication(
|
? authorizationsClient.CreateAndDeleteExistingApplicationAuthorization(
|
||||||
clientId,
|
clientId,
|
||||||
clientSecret,
|
clientSecret,
|
||||||
newAuthorization,
|
newAuthorization,
|
||||||
twoFactorHandler,
|
twoFactorHandler,
|
||||||
null, // twoFactorAuthenticationCode
|
null, // twoFactorAuthenticationCode
|
||||||
retryInvalidTwoFactorCode)
|
retryInvalidTwoFactorCode)
|
||||||
: authorizationsClient.CreateAndDeleteExistingApplicationAuthentication(
|
: authorizationsClient.CreateAndDeleteExistingApplicationAuthorization(
|
||||||
clientId,
|
clientId,
|
||||||
clientSecret,
|
clientSecret,
|
||||||
newAuthorization,
|
newAuthorization,
|
||||||
|
|||||||
Reference in New Issue
Block a user