Facebook sign-in authentication

The Facebook OAuth sign-in function allows Odoo users to sign in to their database with their Facebook account.

위험

Odoo.com에 저장되어 있는 데이터베이스는 데이터베이스의 소유자 또는 관리자의 Odoo.com 계정에서 데이터베이스 연결을 해제할 수 있으므로 OAuth 로그인을 사용해서는 안 됩니다. 해당 사용자에 대해 OAuth가 설정된 경우에는, 데이터베이스는 더 이상 Odoo.com 포털에서 복제, 이름 변경 혹은 기타 방식으로 관리할 수 없습니다.

Meta for Developers setup

Go to Meta for Developers and log in. Click My Apps. On the Apps page, click Create App.

On the Use cases page, select Authenticate and request data from users with Facebook Login, then click Next.

In the Add an app name field, enter Odoo Login OAuth, or a similar title.

참고

앱 연락처 이메일 은 Meta 계정과 연결된 이메일 주소로 자동으로 기본 설정됩니다. 해당 이메일 주소를 정기적으로 모니터링하지 않는 경우에는 다른 이메일 주소를 사용하는 것이 좋습니다.

Click Next. Review the Publishing requirements, the Meta Platform Terms, and Developer Policies. Then, click Create app.

중요

Clicking Create app may require password re-entry.

Customize app

새로운 앱이 생성되면 현황판 페이지가 나타나고 앱을 게시하기 전에 완료해야 하는 단계가 목록으로 표시됩니다. 여기에서 Facebook 로그인 버튼을 추가하도록 사용자 지정 을 클릭합니다.

The App Dashboard in the Meta for developers platform.

On the Customize page, click Settings.

In the Valid OAuth Redirect URIs field, enter https://<odoo base url>/auth_oauth/signin, replacing <odoo base url> with the URL of the applicable database.

Example

If a database has the URL https://example.odoo.com, the URL https://example.odoo.com/auth_oauth/signin would be entered in the Valid OAuth Redirect URIs field.

Click Save changes when finished.

Configure settings

At the far left of the page, click App settings ‣ Basic. This page contains additional settings that are required before the app can be submitted for approval.

In the Privacy Policy URL field, enter https://www.odoo.com/privacy.

참고

https://www.odoo.com/privacy is the default privacy policy for databases hosted on Odoo.com.

Click the App Icon field to open a file upload window. From here, select and upload an app icon.

In the User data deletion field, enter https://www.odoo.com/documentation/17.0/administration/odoo_accounts.html.

참고

This document provides instructions on how a user can delete their Odoo account.

Lastly, click the Category field, and select Business and pages from the drop-down menu.

Click Save changes.

An exampled of the Basic Settings page in the Meta for developers platform.

Capture app ID

앱이 생성한 후 승인되면 앱 ID 를 선택하여 복사합니다. 이 정보는 나중에 설정을 완료하는 데 필요하므로 클립보드나 메모장 파일에 붙여넣도록 합니다.

발행

페이지 왼쪽에 있는 게시 를 클릭합니다. Facebook 에 연결되어 있는 계정의 상태에 따라 추가적인 인증 및 테스트 단계가 필요할 수 있으며, 해당 내용은 이 페이지에 표시되어 있습니다.

After reviewing the information, click Publish.

더 보기

Additional information regarding Meta App Development, including further details on building, testing, and use cases, can be found in the Meta for developers documentation.

Odoo 설정

First, activate Developer mode.

Navigate to the Settings app, and scroll down to the Integrations section. There, tick the checkbox labeled, OAuth Authentication. Click Save.

The enable OAuth setting in the Settings app.

Then, sign in to the database once the login screen loads.

After successfully logging in, navigate to Settings app ‣ Users & Companies ‣ OAuth Providers. Click Facebook Graph.

In the Client ID field, enter the App ID from the previous section, then tick the Allowed checkbox.

The Facebook Graph record in Odoo.