To use OAuth, you must enable it in Identity Server. Otherwise, the configuration will not work.
Click Devices > Identity Servers > Edit.
In the Enabled Protocols section, select OAuth & OpenID Connect.
Click OK and update Identity Server.
NOTE:For OAuth authorization, Identity Server, and ESP must be enabled with SSL.