Ressource : Authorization
Ressource d'autorisation Discovery Engine.
| Représentation JSON |
|---|
{
"name": string,
"displayName": string,
// The following is a list of mutually exclusive fields. At most one of the
// fields will be set in a response:
"serverSideOauth2": {
object ( |
| Champs | |
|---|---|
name |
Identifiant. Nom de ressource de l'autorisation. Format : Il doit s'agir d'une chaîne encodée au format UTF-8, dont la longueur ne doit pas dépasser 1 024 caractères. |
displayName |
Obligatoire. Nom à afficher de l'autorisation. Il doit s'agir d'une chaîne encodée au format UTF-8, dont la longueur ne doit pas dépasser 128 caractères. |
| Configuration de l'autorisation. Vous trouverez ci-dessous la liste des champs mutuellement exclusifs. Au maximum, un seul des champs sera défini dans une réponse : | |
serverSideOauth2 |
Configuration OAuth2 côté serveur. |
| Fin des champs qui s'excluent mutuellement. | |
ServerSideOAuth2
Configuration OAuth2.
| Représentation JSON |
|---|
{
"clientId": string,
"clientSecret": string,
"tokenUri": string,
"authorizationUri": string,
"scopes": [
string
],
"pkceVerificationEnabled": boolean,
"basicAuthenticationEnabled": boolean,
"privateNetworkConfig": {
object ( |
| Champs | |
|---|---|
clientId |
Obligatoire. ID client OAuth2. |
clientSecret |
Obligatoire. Code secret du client OAuth2. Chiffrées au repos. |
tokenUri |
Obligatoire. Point de terminaison HTTP qui échange une autorisation client contre un jeton d'accès. |
authorizationUri |
Obligatoire. URI vers lequel l'utilisateur est redirigé lorsqu'il doit autoriser l'accès. Doit inclure tout ce qui est nécessaire pour une autorisation réussie : ID OAuth, indicateurs supplémentaires, etc. Exemple : Le paramètre |
scopes[] |
Facultatif. Habilitations à demander. Exemple : |
pkceVerificationEnabled |
Facultatif. Indique si la vérification PKCE doit être activée. https://datatracker.ietf.org/doc/html/rfc7636#section-3.1/ |
basicAuthenticationEnabled |
Facultatif. Indique si l'échange de jetons OAuth utilise l'authentification de base HTTP ( |
privateNetworkConfig |
Facultatif. Défini uniquement lorsque le fournisseur OAuth ne publie aucun point de terminaison public. Dans ce cas, un échange de jetons doit être acheminé sur le réseau privé sur lequel se trouve l'instance au lieu d'être acheminé sur la sortie publique. Si vous ne la configurez pas, l'échange reste sur la sortie publique. |
PrivateNetworkConfig
Identifie l'instance hébergeant un fournisseur OAuth accessible uniquement sur un réseau privé.
| Représentation JSON |
|---|
{ "instanceResource": string } |
| Champs | |
|---|---|
instanceResource |
Obligatoire. Nom de ressource de l'instance hébergeant le fournisseur OAuth. Pour Looker, il s'agit de l'instance Looker, au format |
Méthodes |
|
|---|---|
|
Utilise le jeton d'actualisation stocké pour l'utilisateur identifié par ses identifiants d'utilisateur final et la ressource donnée, et renvoie le jeton d'accès généré ainsi que ses détails. |
|
Crée un Authorization. |
|
Supprime un Authorization. |
|
Récupère un Authorization. |
|
Répertorie tous les Authorization d'un Engine. |
|
Met à jour un Authorization |
|
Échange les identifiants d'autorisation OAuth contre un jeton d'actualisation, puis stocke le jeton d'actualisation et les habilitations. |