Data flow: Authenticating with the mail server from an iOS device when using BlackBerry Secure Gateway
iOS
device when using BlackBerry Secure Gateway
This data flow describes how
iOS
devices authenticate with your mail server through BlackBerry Secure Gateway
using Microsoft
modern authentication.The following steps describe the standard data flow. Some details may vary depending on the configuration of your
Entra
tenant. For more information on how the Microsoft
identity provider manages authorization requests, see the Microsoft
documentation.- BlackBerry Secure Gatewayretrieves and caches the discovery documents from the authorization server/identity provider specified in theBlackBerry Secure Gatewayconfiguration settings.BlackBerry Secure Gatewayretrieves both the unversioned discovery document foriOS13 devices and the v2.0 discovery document foriOS14.6 and later devices.
- The device establishes a secure connection through theBlackBerry Infrastructureto theBlackBerry Secure Gateway.
- TheBlackBerry Secure Gatewayestablishes a TLS connection with the authorization server/identity provider specified in theBlackBerry Secure Gatewayconfiguration settings.
- The device sends an authorization code request through theBlackBerry Secure Gatewayto the authorization server/identity provider.
- The authorization server/identity provider returns a 302 HTTP redirect response to the device.
- The device sends an authorization request to the URL specified by the redirect response. The request does not route through theBlackBerry Secure Gateway.
- The authorization server/identity provider sends user authentication request to the device. The type of request (for example, a login page, or prompt from theMicrosoftAuthenticator app) and the message flow for user authentication depends on the configuration of yourEntratenant.
- The user provides the requested credentials to the authorization server/identity provider.
- When user authentication is complete, the authorization server/identity provider sends an authorization code to the device.
- The device requests the authorization server/identity provider discovery document from theBlackBerry Secure Gateway.
- TheBlackBerry Secure Gatewaysends the discovery document to the device.
- The device sends an access token request through theBlackBerry Secure Gatewayto the authorization server/identity provider.
- The authorization server/identity provider sends the access token to the device.
- When it sends or receives email, the device presents the access token to establish a secure connection to the mail server.When the access token expires, the device sends a new token request through theBlackBerry Secure Gatewayto the authorization server/identity provider.