1. Home
  2. Knowledge Base
  3. Configure Hubway OAuth2 Client Sample app

Configure Hubway OAuth2 Client Sample app

  1. Open your Ping console generated in

  2. Go to Applications and click on the created application, navigate to the Configuration tab

    1. Expand the URLs section, copy and store the OIDC Discovery Endpoint


    2. In the General section copy and store the Client ID and the Client Secret

    3. Open the OIDC app in your environment ({hostname}/OIDC) and create a new app with the following settings

      1. Set

        1. Authentication Mode to Authorization Code

        2. Username Claim to preferred_username

        3. Response Mode to Redirect

      2. Enable Auto Provision Users

      3. Paste the Client ID, Client Secret and OIDC Discovery Endpoint in the respective fields

      4. Save the app and copy the Sign-in redirect URL

      5. Reconfigure Ping App

        1. Navigate to the Configuration tab and click on the pencil on the top right corner to edit the configuration

        2. Add the copied Sign-in redirect URL in the Redirect URIs field and save

      6. Open the module HWOAuth2ClientSample in ServiceCenter and set the OIDCAppName site property to the name of the app created in OIDC.

      7. Create a new Hubway Connect project

        1. Add the Order entity from the OrderManagement_CS module

        2. Set the security to OAuth 2.0

        3. Publish the project

      8. Open the module HWOAuth2ClientSample in ServiceCenter again

        1. Set the ProjectServiceName and ProjectVersionNumber site properties to the service name and the version of the project just created.

        2. Navigate to the Integrations tab and click on HubwayConnectEnvironmentHostanem API

        3. Set the effective url to the hostname of the environment where you just created the Hubway

      9. Now if you open in an incognito window {hostname}/HWOAuth2ClientSample/Home you should be prompted with a Ping sign in and then redirected to a list of Orders, retrieved from a Hubway’s OData API.

Was this article helpful?

Need Support?

Can't find the answer you're looking for?
Contact Support