OAuth - Outlook Integration in LibCal and LibStaffer#
ITS created an Azure app in 2023 to allow us to connect Outlook calendars with LibApps appointments and schedules.
Creating the Azure App (Do One Time)#
For historical purposes, ITS originally created an Azure app, following these instructions from Springshare:
- Register a new Azure App:
- Go to https://nashvillepl.libcal.com/admin/oauth/azure/callback.
- Or you can also log here (and search for App Registraions): https://portal.azure.com.
- Locate and select your client ID. It's the one ending in 13d6.
- Select the Certificates and Secrets option from the panel menu on the left.
- Delete your existing client secret by selecting the trash can icon on the far right.
- Select New Client Secret >> Add a description >> Set the expiration date (there are a few default options there but you can use the Custom option if you want to set it far into the future) >> Add.
- Save Settings and you're done.
Update the Azure App Client Secret (Do Every 24 Months)#
The Client Secret Value”** expires after 24 months. When it expires, LibCal and LibStaffer syncing will break.
- Email ITS and tell them we have an Azure App that lets Outlook sync with 2 library products: LibCal and LibStaffer. Tell them the old “Client Secret Value” is expired and ask them to generate a new value for each service. We have to have a new one for LibCal AND a new one for LibStaffer -- they’re two separate secrets.
- In 2023 and 2025, Phillip Walling was the person at ITS who helped with this.
Add New Client Secret to LibCal / LibStaffer (Do Every 24 Months)#
After ITS creates the Azure app (or updates it, when it expires), they send us two client secrets (a string of letters and numbers). NPL LibApps admin need to do the following to update LibCal and LibStaffer:
- Update the Azure app secret in LibCal.
- Log in to LibCal.
- Go to Admin > Integrations.
- Click the edit button next to the “Client Secret: Value” field.
- Update with the new secret sent from ITS.
- Save Settings.
-
Verify that it is working by going to your own LibCal account and authorizing Microsoft to sync.
Log in to LibCal.- Click on Appointments in the main menu.
- Click the "Integrations" tab.
- Under "Outlook/Exchange Settings" click the blue "Authorize with Microsoft Account" button.
- Select which of your Outlook calendars to sync with. Make other selections.
- Save.
-
Update the Azure app secret in LibStaffer.
- Log in to LibStaffer.
- Go to Admin > Integrations.
- Click the edit button next to the “Client Secret: Value” field.
- Update with the new secret sent from ITS.
- Save Settings.
- Verify that it is working by going to your own LibCal account and authorizing Microsoft to sync.
- Log in to LibStaffer.
- Click on your email address in the upper right hand of the screen.
- Click the "Calendar Sync" tab.
- Scroll to "OAuth2 Authorization" and set up your calendars. Make selections and save. If you see a blue "Authorize with Microsoft Account" button, click that first.