Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 2.09 KB

File metadata and controls

55 lines (34 loc) · 2.09 KB

Authentication

Overview

Manage indexing API tokens.

Available Operations

checkdatasourceauth

Returns all datasource instances that require per-user OAuth authorization for the authenticated user, along with a transient auth token that can be appended to auth URLs to complete OAuth flows.

Clients construct the full OAuth URL by combining the backend base URL, the authUrlRelativePath from each instance, and the transient auth token: <backend>/<authUrlRelativePath>?transient_auth_token=<token>.

Example Usage

from glean.api_client import Glean
import os


with Glean(
    api_token=os.getenv("GLEAN_API_TOKEN", ""),
) as glean:

    res = glean.authentication.checkdatasourceauth()

    # Handle response
    print(res)

Parameters

Parameter Type Required Description
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

models.CheckDatasourceAuthResponse

Errors

Error Type Status Code Content Type
errors.GleanError 4XX, 5XX */*