When tapping the login button on Box for EMM to open the login page, you might see the message “There seems to be a problem with this app. Error: invalid_redirect_uri.” This 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.
Process for Resolution
-
Check Configuration Keys and Values:
- Ensure that the key-value pairs are set up correctly according to the configuration guide.
- Verify there are no leading or trailing spaces in the ‘User Email Address’ value.
- Ensure the UPN matches the Box Primary email.
-
Remove Optional Parameter:
- If the issue persists, try removing ‘User Email Address’ from the configuration policy as it is an optional parameter.
Outcome
- The login process should proceed without the “invalid_redirect_uri” error.
- You should be able to access your Box account successfully.
Alternatives
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)