예제 #1
0
def process_auth_options(parser, options):
    """Configures process-wide authentication parameters based on |options|."""
    try:
        net.set_oauth_config(oauth.extract_oauth_config_from_options(options))
    except ValueError as exc:
        parser.error(str(exc))
예제 #2
0
파일: auth.py 프로젝트: nodirt/luci-py
def process_auth_options(parser, options):
  """Configures process-wide authentication parameters based on |options|."""
  try:
    net.set_oauth_config(oauth.extract_oauth_config_from_options(options))
  except ValueError as exc:
    parser.error(str(exc))