Creating an OAuth Application
To enable OAuth 2.0 authentication with StackOne, you need to create an OAuth application in Factorial.
Access the OAuth Applications Page
Navigate to your OAuth applications page based on your environment.
- Production: api.factorialhr.com/oauth/applications
- Sandbox: api.eu2.demo.factorial.dev/oauth/applications
Configure Application Details
Enter the required application details.
- Name: Enter a descriptive name (e.g.,
StackOne Integration) - Redirect URI:
https://api.stackone.com/connect/oauth2/factorialhr/callback - Confidential: Select based on your security requirements
Configure Scopes
Select the OAuth scopes your application needs access to. Available scopes include employees, contracts, time_off, recruitment, and more.
- Select only the scopes required for your integration
- See OAuth Scopes documentation for full details
Save and Copy Credentials
Click Submit to save the application. Your credentials will be displayed.
- Copy the Client ID and Client Secret and store them securely
- The Client Secret is only shown once at creation and cannot be retrieved later
- The Client ID can be found on the application details page anytime
Token Types
Factorial supports two token types for OAuth authentication.
User Token
User tokens make requests on behalf of a specific user. The user must be an employee in Factorial with appropriate permissions.
- Expires in 1 hour
- Requires token refresh
- Actions are scoped to the user’s permissions
Creating the StackOne Connector Profile
To create the Connector Profile in StackOne for Factorial:Navigate to Connector Profiles
Create New Connector Profile
- Click + Connector Profile
- Search for and select Factorial
- Select Type as OAuth 2.0
- Fill out the fields using details retrieved from your provider:
- Client ID
- Client Secret
- OAuth Scopes (Optional)
- Token Type (Optional)
- (Optional) Select Actions to be enabled for this Connector Profile
- Click Create profile