Hesap Bağlama

Her Cloud-to-cloud entegrasyonu, kullanıcıların kimliğini doğrulama mekanizması içermelidir.

Kimlik doğrulama, kullanıcılarınızın Google Hesaplarını kimlik doğrulama sisteminizdeki kullanıcı hesaplarıyla bağlamanıza olanak tanır. Bu sayede, karşılamanız bir akıllı ev amacı aldığında kullanıcılarınızı tanımlayabilirsiniz. Google akıllı ev yalnızca yetkilendirme kodu akışıyla OAuth'u destekler.

OAuth 2.0 uygulamanız olduğunda, isteğe bağlı olarak OAuth tabanlı App Flip'ı yapılandırabilirsiniz. Bu özellik, kullanıcılarınızın kimlik doğrulama sisteminizdeki hesaplarını Google Hesaplarına daha hızlı bağlamalarına olanak tanır.

OAuth

smart home için yetkilendirme kodu akışıyla OAuth kullanmanız gerekir. Bu akışta yetkilendirme ve jeton değişimi uç noktaları olmak üzere iki uç nokta gerekir.

Bir kullanıcının kimliğini doğruladığınızda, kullanıcının üçüncü taraf OAuth 2.0 erişim jetonu, smart home amaçları karşılamanıza gönderilirken yetkilendirme başlığında gönderilir. Cihaz bilgileri, hesap bağlama gerektiren action.devices.SYNC amacı ile Google Assistant'ya gönderildiğinden tüm kullanıcıların hesap bağlama işlemini gerçekleştirmesi gerekir.

Cloud-to-cloud entegrasyonunuzun, aynı kullanıcı hesabına bağlanan birden fazla Google kullanıcısını desteklemesi beklenir (örneğin, kullanıcılar evlerindeki diğer kullanıcılara erişim izni verdiğinde). Hizmetiniz birden fazla kullanıcı bağlantısını desteklemiyorsa hesap bağlama sırasında hata mesajları göstermelidir.

Entegrasyonunuz için OAuth 2.0 sunucusunu nasıl ayarlayacağınızla ilgili talimatları OAuth 2.0 sunucunuzu uygulama başlıklı makalede bulabilirsiniz.

OAuth tabanlı uygulama bağlama

OAuth-based App Flip Linking (App Flip) allows your users to easily and quickly link their accounts in your authentication system to their Google accounts. If your app is installed on your user’s phone when they initiate the account linking process, they are seamlessly flipped to your app to obtain user authorization.

This approach provides a faster and easier linking process since the user does not have to re-enter their username and password to authenticate; instead, App Flip leverages the credentials from the user's account on your app. Once a user has linked their Google account with your app, they can take advantage of any integrations that you have developed.

You can set up App Flip for both iOS and Android apps.

This figure shows the steps for a user to link their Google account
            to your authentication system. The first screenshot shows how a user
            can select your app if their Google account is linked to your app.
            The second screenshot shows the confirmation for linking their
            Google account with your app. The third screenshot shows a
            successfully linked user account in the Google app.
Figure 1. Account linking on a user's phone with App Flip.

Requirements

To implement App Flip, you must fulfill the following requirements:

  • You must have an Android or iOS app.
  • You must own, manage and maintain an OAuth 2.0 server which supports the OAuth 2.0 authorization code flow.

OAuth bağlama yetkilendirme kodu akışı hakkında daha fazla bilgi için OAuth 2.0 sunucunuzu uygulama başlıklı makaleyi inceleyin.

App Flip'yı entegrasyonunuz için yapılandırma talimatları için OAuth tabanlı App Flip başlıklı makaleyi inceleyin.