Configure OESECTOOL as a test OAuth2 provider
- Last Updated: February 6, 2026
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
OESECTOOL is a tool for testing and exploring how to configure OAuth2.
Install OESECTOOL
You must have a development license for PAS for OpenEdge. OESECTOOL is not available with a
Production license.
- Locate the utility
archive:
Linux
$DLC/servers/pasoe/extras/oesectool-version.zipWindows
%DLC%/servers/pasoe/extras/oesectool-version.zip - Unzip the file to a working directory, for example:
C:\OpenEdge\WRK\oesectooloesectool includes:
- A lightweight OAuth2/JWT server
- Support scripts
- A configuration file for OAuth2 and JWK metadata
Configure OAuth2 properties
Set properties to configure OAuth2.
- Edit oesectool\conf\oesectool-oauth2.properties.
- Search and replace
localhostwithyour-hostname.localhostvalue foroesectool.hostwith your machine or IP address:servername=your-hostname general.server.name="your-hostname"This value must match the hostname you use when you:
- Retrieve the JWT
- Access the JWK endpoint
- Configure PASOE properties
- Make these optional, recommended property value updates:
Setting Purpose jwt.issuerSets the token issuer claim jwt.ttl.secondsToken lifetime jwk.keysizeSize of RSA/EC key generated JWK oauth2.userlistList of permitted demo users Note: The default settings work, but the hostname must be correct. - Add any additional users to the
#users. For guidance on adding users, see the oesectool-oauth2.properites.README. - Save and close the file.
- Search and replace
Start OESECTOOL
- From the osectool directory, start the
oesectool OAuth2 server.
Linux
./oesectool.sh startoauth2server -ports 9999Windows
This starts a small HTTPS OAuth2/JWT server on port 9999.oesectool.bat startoauth2server -ports 9999Endpoints now available:
-
Generate a JWT
https://hostname:9999/jwt/<username> -
JWK endpoint for PASOE
https://hostname:9999/keys
-
Generate tokens
- Generate a JWT token. Use curl to request a
JWT:
The returned token will later authenticate to PASOE.curl -k https://your-hostname:9999/jwt/user1
For more information on the OESECTOOL utility, see OESECTOOL.