Loading

Salesforce Mobile App: Troubleshoot OAuth Error or OAuth 1800 on Login

Дата публикации: Oct 13, 2022
Описание

When users attempt to log in to the Salesforce Mobile App after a period of inactivity on the login screen, an OAuth (Open Authorization) error may appear. OAuth is the protocol used by the Salesforce Mobile App to authenticate and authorize user access securely.

Example Error Messaging:

  • We can't authorize you because of an OAuth Error. You didn't complete the approval process before it expired. Please try again.
  • Remote Access Authorization Error
These errors occur because a timestamp mismatch develops between the time the OAuth request was initiated and when the login attempt is submitted, due to inactivity on the login screen.
 
Note: If you are receiving an 'OAuth 1800' error specifically, this is associated with Single Sign-On (SSO) environments. Refer to the Salesforce Mobile Application Single Sign-On Overview for guidance.
    Решение
    The following steps resolve an OAuth Authentication Error in the Salesforce Mobile App.

    Option 1: Refresh the Login Page by Switching the Server Connection
    Switching the server connection refreshes the OAuth request timestamp and clears the error.
    1. Follow Step 1 in Switch Login Server in Salesforce Mobile Apps for the affected device type.
    2. Tap any other server, then repeat Step 1 and tap back to the desired server.
    Example: If the error occurs on a Production login attempt, switch to Sandbox, then switch back to Production.
     
    Option 2: Force Close the Salesforce Mobile App
    Fully closing and relaunching the app resets the login session.

     

    Option 3: Revoke Previous OAuth Tokens
    Revoking previous OAuth tokens forces a clean re-authorization. Note that the user is required to log in fully with their username and password after completing these steps.
     
    1. From a desktop browser, navigate to Advanced User Details.
    2. Scroll to the OAuth Connected Apps section.
    3. Locate Salesforce for Android or Salesforce for iOS and click Revoke.
    4. Open the Salesforce Mobile App and log in.
    5. If prompted, enter the verification code sent to the email address or phone number on file. Verification emails are sent from "noreply@salesforce.com" with the subject "Verify your identity in Salesforce" and may arrive in Spam or filtered folders.
    6. When the Allow page appears in the Salesforce Mobile App, select Allow.
    7. Optionally, refresh Advanced User Details on the desktop to confirm a new OAuth Connected App token was created successfully.

     

     

    Prevention
    To avoid this error, do not leave the Salesforce Mobile App inactive on the login screen. Always complete the login process promptly after opening the app.

     

    Номер статьи базы знаний

    000386723

     
    Загрузка
    Salesforce Help | Article