개요

OAuth 기반 앱 플립 연결 (앱 플립)을 사용하면 사용자가 인증 시스템의 계정을 Google 계정에 쉽고 빠르게 연결할 수 있습니다. 사용자가 계정 연결 프로세스를 시작할 때 사용자의 휴대전화에 앱이 설치되어 있으면 앱으로 원활하게 전환되어 사용자 승인을 받습니다.

이 접근 방식은 사용자가 인증하기 위해 사용자 이름과 비밀번호를 다시 입력하지 않아도 되므로 더 빠르고 쉽게 연결할 수 있습니다. 대신 앱 플립은 앱에서 사용자 계정의 사용자 인증 정보를 활용합니다. 사용자가 Google 계정을 앱과 연결하면 개발자가 만든 모든 통합을 활용할 수 있습니다.

iOS 및 Android 앱 모두에 앱 플립을 설정할 수 있습니다.

이 그림은 사용자가 Google 계정을 인증 시스템에 연결하는 단계를 보여줍니다. 첫 번째 스크린샷은 Google 계정이 앱에 연결된 경우 사용자가 앱을 선택하는 방법을 보여줍니다. 두 번째 스크린샷은 Google 계정을 앱에 연결하기 위한 확인을 보여줍니다. 세 번째 스크린샷은 Google 앱에서 연결된 사용자 계정을 보여줍니다.
그림 1. 앱 플립을 사용하여 사용자 휴대전화에서 계정 연결

요구사항

앱 플립을 구현하려면 다음 요구사항을 충족해야 합니다.

  • Android 또는 iOS 앱이 있어야 합니다.
  • OAuth 2.0 승인 코드 흐름을 지원하는 OAuth 2.0 서버를 소유, 관리, 유지해야 합니다.

OAuth 연결 승인 코드 흐름에 대한 자세한 내용은 OAuth 서버 구현을 참고하세요.

Design guidelines

This section describes the design requirements and recommendations for the App Flip account linking consent screen. After Google calls your app, your app displays the consent screen to the user.

Requirements

  1. You must communicate that the user’s account is being linked to Google, not to a specific Google product, such as Google Home or Google Assistant.

Recommendations

We recommend that you do the following:

  1. Display Google's Privacy Policy. Include a link to Google’s Privacy Policy on the consent screen.

  2. Data to be shared. Use clear and concise language to tell the user what data of theirs Google requires and why.

  3. Clear call-to-action. State a clear call-to-action on your consent screen, such as “Agree and link.” This is because users need to understand what data they're required to share with Google to link their accounts.

  4. Ability to deny or cancel. Provide a way for users to go back, deny, or cancel, if they choose not to link.

  5. Ability to unlink. Offer a mechanism for users to unlink, such as a URL to their account settings on your platform. Alternatively, you can include a link to Google Account where users can manage their linked account.

  6. Ability to change user account. Suggest a method for users to switch their account(s). This is especially beneficial if users tend to have multiple accounts.

    • If a user must close the consent screen to switch accounts, send a recoverable error to Google so the user can sign in to the desired account with OAuth linking and the implicit flow.
  7. Include your logo. Display your company logo on the consent screen. Use your style guidelines to place your logo. If you wish to also display Google's logo, see Logos and trademarks.

This figure shows an example consent screen with call-outs to the
            individual requirements and recommendations to be followed when
            you design a user consent screen.
Figure 2. Account linking consent screen design guidelines.

OAuth 기반 앱 플립 설정

다음 섹션에서는 OAuth 기반 앱 플립의 필수 요건과 Actions 콘솔에서 앱 플립 프로젝트를 구성하는 방법을 설명합니다.

작업을 만들고 OAuth 2.0 서버를 설정합니다.

앱 전환을 구성하려면 다음을 실행해야 합니다.

Actions 콘솔에서 앱 플립 구성

다음 섹션에서는 Actions 콘솔에서 앱 플립을 구성하는 방법을 설명합니다.

  1. 상단 탐색 메뉴에서 Develop을 클릭합니다. 그런 다음 왼쪽 탐색 메뉴에서 계정 연결을 클릭합니다.
  2. 계정 연결하기 옆에 있는 스위치를 사용 설정합니다.
  3. 계정 생성에서 아니요, 내 웹사이트에서만 계정 생성을 허용하고 싶습니다를 선택합니다.
  4. 다음을 클릭합니다.
  5. 연결 유형에서 드롭다운 메뉴를 통해 OAuth승인 코드를 선택합니다.
  6. 다음을 클릭합니다.
  7. OAuth 클라이언트 정보 아래의 모든 필드를 작성합니다. (앱 전환이 지원되지 않으면 일반 OAuth가 대체로 사용됩니다.)
  8. 다음을 클릭합니다.
  9. 계정 연결에 앱 사용 (선택사항)에서 iOS 사용 설정을 선택합니다.
  10. 범용 링크 필드를 작성합니다. 범용 링크에 관한 자세한 내용은 앱과 웹사이트가 내 콘텐츠에 연결하도록 허용 을 참고하세요.
  11. 선택적으로 클라이언트를 구성하려면 범위를 추가하고 클라이언트 구성 (선택사항)에서 범위 추가를 클릭합니다. 그렇지 않은 경우 다음을 클릭합니다.
  12. 테스트 안내에서 test (또는 다른 문자열)을 자리표시자로 입력합니다. (이 필드에 테스트 계정을 입력하는 것은 실제로 게시할 작업을 제출하는 경우에만 필요합니다.)
  13. 저장을 클릭합니다.

이제 다음 섹션으로 이동하여 iOS 또는 Android 앱에서 앱 전환을 구현할 수 있습니다.

네이티브 앱에서 앱 전환 구현

앱 플립을 구현하려면 앱에서 사용자 승인 코드를 수정하여 Google의 딥 링크를 수락해야 합니다.

기기에서 앱 플립 테스트

이제 콘솔과 앱에서 작업을 만들고 앱 전환을 구성했으므로 휴대기기에서 앱 전환을 테스트할 수 있습니다. Google 어시스턴트 앱을 사용하여 앱 전환을 테스트할 수 있습니다.

어시스턴트 앱에서 앱 전환을 테스트하려면 다음 단계를 따르세요.

  1. Actions 콘솔로 이동하여 프로젝트를 선택합니다.
  2. 상단 탐색 메뉴에서 테스트를 클릭합니다.
  3. 어시스턴트 앱에서 계정 연결 흐름을 트리거합니다.
    1. Google 어시스턴트 앱을 엽니다.
    2. 설정을 클릭합니다.
    3. 어시스턴트 탭에서 홈 컨트롤을 클릭합니다.
    4. 추가(+)를 클릭합니다.
    5. 제공업체 목록에서 작업을 선택합니다. 목록에 '[test]'라는 접두사가 붙습니다. 목록에서 [테스트] 작업을 선택하면 앱이 열립니다.
    6. 앱이 실행되었는지 확인하고 승인 흐름 테스트를 시작합니다.