メインコンテンツへスキップ
GET
https://{tenantDomain}/api/v2
/
organizations
/
{id}
/
enabled_connections
Go
package example

import (
    context "context"

    management "github.com/auth0/go-auth0/management/management"
    client "github.com/auth0/go-auth0/management/management/client"
    option "github.com/auth0/go-auth0/management/management/option"
    organizations "github.com/auth0/go-auth0/management/management/organizations"
)

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    request := &organizations.ListOrganizationConnectionsRequestParameters{
        Page: management.Int(
            1,
        ),
        PerPage: management.Int(
            1,
        ),
        IncludeTotals: management.Bool(
            true,
        ),
    }
    client.Organizations.EnabledConnections.List(
        context.TODO(),
        "id",
        request,
    )
}
[
  {
    "assign_membership_on_login": true,
    "connection": {
      "name": "<string>",
      "strategy": "<string>"
    },
    "connection_id": "<string>",
    "is_signup_enabled": true,
    "show_as_button": true
  }
]

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

パスパラメータ

id
string
必須

組織の識別子。

Maximum string length: 50

クエリパラメータ

page
integer

返す結果のページ index。最初のページは 0 です。

必須範囲: x >= 0
per_page
integer

1 ページあたりの結果数。デフォルトは 50 です。

必須範囲: 1 <= x <= 100
include_totals
boolean

結果を、合計結果数を含むオブジェクトとして返すか(true)、結果の配列を直接返すか(false、デフォルト)を指定します。

レスポンス

接続が正常に取得されました。

assign_membership_on_login
boolean

true の場合、この接続でログインするすべてのユーザーに組織のメンバーシップが自動的に付与されます。false の場合、この接続でログインする前に、ユーザーへ組織のメンバーシップを付与する必要があります。

connection
object
connection_id
string

接続の ID。

is_signup_enabled
boolean

この組織接続で組織のサインアップを有効にするかどうかを指定します。データベース接続にのみ適用されます。デフォルト: false。

show_as_button
boolean

この組織のログインプロンプトに接続を表示するかどうかを指定します。エンタープライズ接続にのみ適用されます。デフォルト: true。