---
title: "Get Oauth providers"
method: POST
path: "/public/v1/query/get_oauth_providers"
tags: ["User Auth"]
---

# Get Oauth providers

`POST /public/v1/query/get_oauth_providers`

Get details about Oauth providers for a user.

## Request body

- V1GetOauthProvidersRequest
  - `organizationId` string, required — Unique identifier for a given organization.
  - `userId` string — Unique identifier for a given user.

## Response `200`

A successful response.

- V1GetOauthProvidersResponse
  - `oauthProviders` V1OauthProvider[], required — A list of Oauth providers.
    - `providerId` string, required — Unique identifier for an OAuth Provider
    - `providerName` string, required — Human-readable name to identify a Provider.
    - `issuer` string, required — The issuer of the token, typically a URL indicating the authentication server, e.g https://accounts.google.com
    - `audience` string, required — Expected audience ('aud' attribute of the signed token) which represents the app ID
    - `subject` string, required — Expected subject ('sub' attribute of the signed token) which represents the user ID
    - `createdAt` Externaldatav1Timestamp, required
      - `seconds` string, required
      - `nanos` string, required
    - `updatedAt` Externaldatav1Timestamp, required
      - `seconds` string, required
      - `nanos` string, required

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/turnkey/apis/api-reference.md) · [All operations](https://skmtc.net/turnkey/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/turnkey/api-reference/revisions/4d8a7c63c511/schema)
