Skip to main content
Version: 10.0

Auth0

Auth0 can be used for OAuth2 authorization of webPDF's web services. For this purpose, the provider must be configured in the server to be able to check the issued access tokens of the provider.

Use the Admin Portal to configure the provider.

Below is an example of the configuration in the conf/server.xml for the provider:

<oauth>  
   <providers>
       <provider name="auth0"
                 displayName="Auth0"
                 flow="clientCredentials"
                 id="auth0_client"
                 tenantId=""
                 clientId="{YOUR_CLIENT_ID_OF_REGISTERED_APPLICATION}"
                 applicationId="{YOUR_ID_OF_REGISTERED_APPLICATION}"
                 scope=""
                 discoveryUrl="https://{YOUR_TENANT_ID}.auth0.com/.well-known/openid-configuration"
                 claimSessionId="sub"
                 claimClientId="azp"
                 claimRoles="permissions"
                 roleNameAdmin="admin"
                 roleNameUser="user"
       />
    </providers>
</oauth>
caution

The configuration of the application at the OAuth2 provider must be done as OAuth2 "Client Credentials Flow".