When tapping the login button on Box for EMM to open the login page, a user might see the message "There seems to be a problem with this app. Error: invalid_redirect_uri"
Common Cause
The above error can be caused by a misconfiguration of Box for EMM. It is advisable to ensure that the key-value pair is set up correctly according to the configuration guide. In particular, check if there are any extra spaces or tabs in the value for 'User Email Address'. If the value contains an extra space (e.g., '{{userprinciplename}}
' instead of '{{userprinciplename}}
'), it causes the authorization URI to be double-encoded, leading to an invalid_redirect_uri
error.
Environment
Box for EMM
Resolution
Please check whether the configuration keys and values are set up correctly according to the configuration guide. Also, ensure there are no leading or trailing spaces, as these small mistakes can be hard to spot but may cause issues.
If this does not resolve the issue, try removing 'User Email Address' from the configuration policy (as it is an optional parameter) and see if the issue persists.
If none of the above steps resolve the issue, please submit a ticket and include the following information:
- Timeframe of the failed login
- Video recording of the login (Steps for iOS: https://support.apple.com/en-us/102653)
- Logs from Box for EMM (refer to the 'If you cannot log in' section in this article)
- Screenshot of the configuration keys and values on MDM console
- Scope of impact (whether the issue occurs for a specific user/device or across all users/devices)