Start a new OAuth authorization session.

Returns the auth_url to redirect the user to HuggingFace.

Args: request: The incoming HTTP request. use_localhost: When True, use localhost:8000 as the OAuth callback URL. Passed by the desktop app which proxies localhost:8000 to the robot.

get/api/hf-auth/oauth/start

Request

  • The document declares no server URL.
  • Auth
    none declared

Query parameters

use_localhostboolean

Response

Successful Response

object required

Changes

    • info

      added the new optional query request parameter use_localhost

    • info

      added the non-success response with the status

    • warning

      deleted the query request parameter use_localhost

    • info

      removed the non-success response with the status