Google Authentication (SSO) Guide

Google OAuth allows Agents and Users to sign into the helpdesk with their Google account.

Configuration

Choose ‘Google’ in the ‘Add New Instance’ menu

oauth43_google_inst


Give the instance a name that lets you know which provider is selected and select ‘Enabled’ for the status.

oauth42_enable_inst


Go to the ‘Config’ tab to set up this provider. Some of the default information will be autofilled.

Note: The ‘Authentication Label’ field is the text that will be displayed to the User or Agent when they sign into the helpdesk.

oauth45_google_cfg


Choose an Authentication Target to specify who should be able to use this provider.

oauth46_audience


Now you need to set up a project using the Google Developer Console.

Once you are in the console, click ‘Select a Project’ to get started.

Note: If you already have a project set up for your Google account, its name will be displayed here.

oauth47_google_proj


Click ‘New Project’ in the modal:

oauth49_google_proj


Give the project a name and click ‘Create’

oauth50_create_proj


Click ‘OAuth consent screen’

oauth51_consent


Here you will select a User Type of Internal or External. If you do not have a Google Workspace account you will be limited to External only. Please note, if you select Internal only users within your Organization will be able to authenticate. If you select External anyone with a Google account can authenticate, however, the Project will initially be in “Testing Mode”. Once you select your User Type click Create.

oauth52_audience


Name your app and fill in your support email. Optionally, you can upload a logo.

oauth53_appinfo


You can add your website URL if you will be using a domain that you own.

oauth54_app_domain


Add your contact information:

oauth55_contact


Scopes can be set to extend the permissions between your application and Gmail accounts. You do not need to add any scopes to use OAuth for a typical Gmail account.

oauth56_scopes1


oauth57_scopes2


Add addresses for emails you want to test with this application. Applications that are in ‘Testing’ mode can add up to 100 test users.

Note: The addresses must be valid Gmail accounts.

oauth99_test_users


oauth911_save_users


Click ‘Save and Continue’ to see an App Summary.

oauth61_summary1


Once saved, navigate to the ‘Credentials’ section

oauth63_creds


Click ‘Create Credentials’ and select ‘OAuth client ID’

oauth64_creds


Choose ‘Web Application’ and name the App

oauth66_create_creds


The Authorized redirect URI can be found in the plugin instance created in osTicket.

oauth67_blank_redir_uri


oauth68_ost_redir_uri


Click ‘Add URI’ from the Google console

oauth69_google_redir_uri


The Authorized JavaScript is just your hostname without anything extra at the end.

oauth70_js_origin


Add the JavaScript origin and click ‘Create’.

oauth71_js_origin


Now you will see your Client ID and Client Secret

oauth72_client_info


Copy the Client ID and Client Secret and paste them into the appropriate fields in the osTicket Instance:

oauth73_ost_client_info


The rest of the information should be autofilled

oauth74_autofilled


Click ‘Add Instance’

oauth75_google_add_inst


Now that the setup is complete, you should be able to use your Google account to log into the helpdesk.

Agent Login

To test the functionality for Agents, go to:

Admin Panel | Agents

oauth76_gmail_agent


Make sure you have an Agent in your helpdesk with the same email address as the Google account you want to log in with.

You should also ensure that you see the provider that was just set up in the list. It is important, however, to make sure you choose ‘Use any available backend’ so that you can still log into your helpdesk in the event that OAuth has an error.

Log out of the helpdesk and go to the login screen.

oauth77_login_screen


Click the ‘Sign in with Google’ button to test the OAuth set up.

Note: The sign in button text can be configured by changing the Authentication Label in the osTicket instance setup.

oauth77_login_screen


This should navigate to choose the Google account you want to sign in with

oauth78_choose_gmail


Now you should be logged into your helpdesk.

oauth79_google_logged_in


User Login

For users, logging in with a Gmail account should create a new User if one does not exist, otherwise, it will log in as an existing User.

oauth80_user_portal


oauth81_user_login


This should also navigate to choose the Google account you want to sign in with.

oauth78_choose_gmail


Choose your account and you should be logged in as a User.

oauth97_user_logged_in