1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-22 18:28:47 +02:00
phorge-phorge/src/applications/auth/provider
Aviv Eyal dcf909ba56 Land to GitHub + support stuff
Summary:
A usable, Land to GitHub flow.

Still to do:
- Refactor all git/hg stratagies to a sane structure.
- Make the dialogs Workflow + explain why it's disabled.
- Show button and request Link Account if GH is enabled, but user is not linked.
- After refreshing token, user ends up in the settings stage.

Hacked something in LandController to be able to show an arbitrary dialog from a strategy.
It's not very nice, but I want to make some more refactoring to the controller/strategy/ies anyway.

Also made PhabricatorRepository::getRemoteURIObject() public, because it was very useful in getting
the domain and path for the repo.

Test Plan:
Went through these flows:
- load revision in hosted, github-backed, non-github backed repos to see button as needed.
- hit land with weak token - sent to refresh it with the extra scope.
- Land to repo I'm not allowed - got proper error message.
- Successfully landed; Failed to apply patch.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran

Maniphest Tasks: T182

Differential Revision: https://secure.phabricator.com/D7555
2013-11-13 17:25:24 -08:00
..
PhabricatorAuthProvider.php Add Persona auth provider 2013-10-14 14:34:57 -07:00
PhabricatorAuthProviderLDAP.php Replace some hsprintf() by phutil_tag() 2013-11-11 09:23:23 -08:00
PhabricatorAuthProviderOAuth.php Land to GitHub + support stuff 2013-11-13 17:25:24 -08:00
PhabricatorAuthProviderOAuth1.php Move PhabricatorObjectItem to PHUIObjectItem, add 'plain' setting for lists. 2013-09-09 14:14:34 -07:00
PhabricatorAuthProviderOAuth1JIRA.php Add JIRA doorkeeper and remarkup support 2013-09-03 17:27:38 -07:00
PhabricatorAuthProviderOAuth1Twitter.php Add Twitter as an authentication provider 2013-09-03 05:53:08 -07:00
PhabricatorAuthProviderOAuthAmazon.php Add Amazon and Asana providers 2013-06-20 11:19:11 -07:00
PhabricatorAuthProviderOAuthAsana.php Add DoorkeeperObjectRef, DoorkeeperBridge, DoorkeeperBridgeAsana 2013-06-24 15:54:54 -07:00
PhabricatorAuthProviderOAuthDisqus.php Provide contextual help on auth provider configuration 2013-06-20 11:18:48 -07:00
PhabricatorAuthProviderOAuthFacebook.php Replace some hsprintf() by phutil_tag() 2013-11-11 09:23:23 -08:00
PhabricatorAuthProviderOAuthGitHub.php Make old GitHub OAuth URIs work for now 2013-06-21 06:11:57 -07:00
PhabricatorAuthProviderOAuthGoogle.php Provide contextual help on auth provider configuration 2013-06-20 11:18:48 -07:00
PhabricatorAuthProviderOAuthTwitch.php Fix twitch name 2013-08-12 11:41:03 -07:00
PhabricatorAuthProviderPassword.php Move PhabricatorObjectItem to PHUIObjectItem, add 'plain' setting for lists. 2013-09-09 14:14:34 -07:00
PhabricatorAuthProviderPersona.php Add Persona login icon 2013-10-14 16:33:49 -07:00