Replies: 1 comment
-
|
This looks similar to the services the package has been tested with, but I don't recall anyone yet trying it with Saba. I think it'll just be case of you applying the configuration based on the documented other implementations, adjusting for your needs, and seeing how far you get. The way this package has been developed is by doing that. Often we find it will work with other services as they operate in ways we've already anticipated. But it's possible you run into something that is just slightly different for this service, and then we'll need to identify that and consider how it work around (which might be adding more configuration options, or maybe you need to override one of the components). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to authenticate to the Saba REST API to retrieve courses.
In order to get a authorization code I need to request
This would give me a response like this:
{ "@type": "com.saba.rest.dto.SabaOAuth2Code", "value": "19632da8-37b6-4446-85ec-30ee42d010c9", "redirectURI": null, "expiration": 0, "scope": null, "client": { "@type": "com.saba.rest.dto.SabaOAuth2Client", "id": "PMSite" }, "relatedAuthCode": null, "relatedRefreshToken": null, "relatedAccessToken": null, "type": "AUTHORIZATION_CODE", "state": null, "site": null, "microAppId": null }By using the
valuein the response, I am able to request a token by callingIn this request I need to include the following 3 headers when calling the token endpoint:
I am not sure if this is possible to do with Umbraco Authorized Services?
If the request is successful, it would give me the following response:
{ "@type": "com.saba.dto.AccessTokenDTO", "state": "8", "refresh_token": "yBHUZSAO6uqtXe+EDtLv+gVH3U3+bqGEDrEWGlGUSpt6ObRf8ohn2h5X1LWmcaPc", "expires_in": 604800000, "access_token": "<<encryptedData>>", "token_type": "Bearer" }When the token expires, I am able to refresh it by requesting:
I need to include the following header parameters to have it refreshed:
This would give me the following response:
{ "@type": "com.saba.dto.AccessTokenDTO", "state": null, "refresh_token": null, "expires_in": 604800000, "access_token": "<<encryptedData>>", "token_type": "Bearer" }Beta Was this translation helpful? Give feedback.
All reactions