Start Oauth

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

Query parameters

use_localhostboolean

Response

Successful Response

object required

Changes

Changed in 2 of the 26 revisions of this API.13

    • added the new optional query request parameter use_localhost

      new-optional-request-parameter

    • added the non-success response with the status

      response-non-success-status-added

    • deleted the query request parameter use_localhost

      request-parameter-removed

    • removed the non-success response with the status

      response-non-success-status-removed

    This revision also has 14 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog