OAuth Window

When using these pages:

I select “Authorization Code” and a window pops up with the form asking for me to click “Authorize”. I click that, the window closes, and it drops me back on the form I was on.

I'd like to know how to recreate that behavior in my own app.

The form I'm using to collect payments doesn't handle a postback/reload very well. Right now I'm simply redirecting the whole form away to the authorization and when it finishes and comes back my form is in shambles.

Are there any examples/tutorials on how to open this less invasive version of the authorization form so I'm not having to do a full redirect away from my main form?

I tried opening the authorization request in a new tab, which works, but when it redirects back I now have my main form open in two tabs, which isn't an option.

Another side question I have, is there some way to pass the login credentials to the authorization request URL? The people using the form to collect payments are just temps hired by the client leasing our software. Ideally we don't want to have to share the account login credentials with them if we can help it.

Comments

  • Hi @WBT Tech. What development platform/framework are you using and what type of app are you developing?

  • @Steven Cinquegrana

    I am using ASP.Net, specifically VB.Net.

    We work with Universities around the country to enable them to run fund raising campaigns. They upload their list of alumni to our software, set up some scripts, hire some student callers, and then those callers are given a screen detailing the alumni they're calling. There are tabs on the calling screen where the callers can record call results, and one of those tabs is for anyone who wants to donate to the school.

    Our newest client uses BlackBaud SKY API for their payment system so I have been working to integrate it into our existing calling page.

  • @WBT Tech In that case, our SKYLib•NET Code Library and SDK might get you where you want to go, or at least act as a sanity check for your own code.

    Using SKYLib you can have an integration up and running against your SKY data in a few minutes. It takes care of all of the authorization rigmarole as well.

    SKYLib is free to use in unlicensed/rate-limited mode (up to 1 call/s) and can be useful for checking your authorization, etc even if you don't end up using it in an actual integration. (A license unlocks full SKY API speed of up to 10 call/s.)

    Let me know if you want more information.

    Cheers,

    Steve Cinquegrana | CEO and Principal Developer | Protégé Solutions

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

    Hi @WBT Tech - The SKY API docs showcase may contain examples of how to have your frontend issue a request to a backend service and wait for authorization to complete. The backend handles the request for authorization (redirect in a popup or new tab) and hosts the redirect URI that gets called back when authorization completes.

    Check out the Barkbaud (NodeJS) demo in that showcase. It contains a frontend user service that communicates with a NodeJS backend.

    When authorization completes on the backend, it sends a response back to the frontend that is waiting for authorization to complete.

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

    A few more code examples at

  • Thank you guys for the responses, I will look into the attached links, though I'm not too familiar with NodeJS.

    Does anyone have any replies about my second question? Is there some way to pass the login credentials to the authorization request URL? The student callers using the form to collect payments are just temps hired by the University leasing our software. Ideally we don't want to have to share the account login credentials with them if we can help it.

Categories