Creating a Custom OAuth Application
Creating a Custom OAuth Application
The OAuth standard requires the authenticating user to interact with Paylocity using the browser.To enable authentication on a desktop application, web application, or headless server, do the following:
- Send a request to Paylocity to obtain API access.
- Set the following connection parameters:
- OAuthClientId = the consumer application's account identifier, assigned during account registration or at secret reset.
- OAuthClientSecret = the consumer application's account password, assigned during account registration or at secret reset.
- InitiateOAuth: Set this to GETANDREFRESH. You can use InitiateOAuth to avoid repeating the OAuth exchange and manually setting the OAuthAccessToken.
After you have set the above parameters you are ready to connect, as described in the "OAuth" section of Connecting to Paylocity.