Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Conversation

@StanleyGoldman
Copy link
Contributor

@StanleyGoldman StanleyGoldman commented Mar 9, 2018

Fixes: #618
Fixes: #619
Fixes: #621

  • Adding specific error statuses and checking for them specifically in C#
  • Refactoring authentication.js to reduce repetition
  • Removing unneeded exceptions used for message passing
  • Implementing the missing enterprise workaround
  • Consolidated TryLogin and TryContinueLogin

As per #621 we are treating the 422 status code as a signal that the
password should be used as the token.
return new LoginResultData(LoginResultCodes.Failed, "Failed.", host);
}

private async Task<string> TryContinueLogin(
Copy link
Member

Choose a reason for hiding this comment

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

This method and the TryLogin method are exactly the same except for an error message, a flag and the extra line written to the process. Maybe dedupe this too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Consolidated

…o fixes/octorun-refactor-authentication

# Conflicts:
#	octorun/src/authentication.js
#	octorun/src/bin/app-login.js
#	src/GitHub.Api/Tasks/OctorunTask.cs
@shana shana merged commit 694dab1 into features/octorun-js Mar 15, 2018
@shana shana deleted the fixes/octorun-refactor-authentication branch March 15, 2018 21:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants