【重要資安警示】發現冒充 Qfinder Pro 的非官方網站,了解詳情 >

The flow chart of Hybrid Backup Sync Sign in an OAuth2 provider


最後修訂日期: 2022-03-30

 

Here lists the general flow to sign in onto an OAuth2 provider to get an access token (three parties are involved: NAS App, Cloud Connector Server, OAuth2 Provider):

1. NAS App opens a new window/tab in the user's browser to the Connect URL (connect.myqnapcloud.com) on Cloud Connector Server and specify the Callback.

 
  1. Cloud Connector Server redirects user's browser to the OAuth2 Provider's authorization endpoint (RFC6749)

 
  1. User enters his/her username password on provider's web page to sign in (authentication), and authorize the app to access his/her data in the cloud

  1. The provider redirects the user's browser to the Receive Auth URL (https://connect.myqnapcloud.com/oauth2/receive_auth) on Cloud Connector Server, with code query parameters described in OAuth2 authorization code flow.(RFC6749)

  2. The Cloud Connector Server uses code and app client_id,secret to obtain the real access_token from OAuth2 Provider's token endpoint.(RFC6749)

  3. The Cloud Connector Server encrypts the access token and other information, redirects use's browser back to the app itself (to the Callback specified when initializing the flow).

  4. The NAS App decrypts and parses the query parameter to get the access token and other information from the OAuth2 Provider.



 

Reference link:

1.https://tools.ietf.org/html/rfc6749
2.https://www.oauth.com/oauth2-servers/access-tokens/

 

0Auth2 Provider

Domain 

Domain Whitelisting

Dropbox

Dropbox.com

dropboxapi.com

Google drive

drive.google.com

googleapis.com

Box

Box.com

https://developer.box.com/guides/api-calls/domain-whitelisting/




 

這篇文章有幫助嗎?

100% 的人認為有幫助。
謝謝您,我們已經收到您的意見。

請告訴我們如何改進這篇文章:

如果您想提供其他意見,請於下方輸入。

選擇規格

      顯示更多 隱藏更多
      選擇其他偏好的語言:
      back to top