Authentication Redirect URL - When calling from desktop service

It seems the redirect URL is required to authenticate.

What is the intended usage for this parameter when calling the API from a desktop windows service or console application as we don't have a public URL to redirect to

Thanks in advance

Comments

  • Michael Tims
    Michael Tims Blackbaud Employee
    Sixth Anniversary Kudos 2 Name Dropper Participant

    Hi Andrew - typically for headless services/scripts, we recommend a one-time authorization be made either using your own custom utility or Postman (see blog about using Postman to authorize for headless apps). Then you could use the refresh token returned in the token response to be passed in to your script or service to make further requests to refresh access tokens.

    A Headless Data Sync sample app was put together to demonstrate how you may pass a refresh token to a console app and handle token expiration to acquire a new token.

    Let me know if you have any additional questions.