 c94ef134e4
			
		
	
	c94ef134e4
	
	
	
		
			
			Summary: Ref T2852. Provide a script for inspecting/debugging OAuth token refresh. Test Plan: Ran `bin/auth refresh` with various arguments, saw token refreshes. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T2852 Differential Revision: https://secure.phabricator.com/D6276
		
			
				
	
	
		
			25 lines
		
	
	
		
			622 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			622 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env php
 | |
| <?php
 | |
| 
 | |
| $root = dirname(dirname(dirname(__FILE__)));
 | |
| require_once $root.'/scripts/__init_script__.php';
 | |
| 
 | |
| $args = new PhutilArgumentParser($argv);
 | |
| $args->setTagline('manage authentication');
 | |
| $args->setSynopsis(<<<EOSYNOPSIS
 | |
| **auth** __command__ [__options__]
 | |
|     Manage Phabricator authentication configuration.
 | |
| 
 | |
| EOSYNOPSIS
 | |
|   );
 | |
| $args->parseStandardArguments();
 | |
| 
 | |
| $workflows = array(
 | |
|   new PhabricatorAuthManagementRecoverWorkflow(),
 | |
|   new PhabricatorAuthManagementRefreshWorkflow(),
 | |
|   new PhabricatorAuthManagementLDAPWorkflow(),
 | |
|   new PhutilHelpArgumentWorkflow(),
 | |
| );
 | |
| 
 | |
| $args->parseWorkflows($workflows);
 |