[Aviso importante de Seguridad] Se han detectado sitios web falsos de Qfinder Pro. Más información >

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


Última fecha de modificación: 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/




 

¿Le ha resultado útil este artículo?

El 100% de las personas piensa que ayuda.
Gracias por sus comentarios.

Díganos cómo podemos mejorar este artículo:

Si desea enviarnos más comentarios, inclúyalos a continuación.

Elija especificación

      Mostrar más Mostrar menos
      Este portal en otros países / regiones:
      open menu
      back to top