umbraco / Umbraco.AuthorizedServices

Umbraco Authorized Services is an open-source package designed to reduce the effort needed to integrate third party services that require authentication and authorization via an OAuth flow.
MIT License
14 stars 7 forks source link

Add support for saving tokens manually #22

Closed acoumb closed 1 year ago

acoumb commented 1 year ago

Current PR contains updates for handling access tokens in two manners:

  1. Manually add access tokens for a service from the backoffice UI

    • a service that allows the save of access tokens from the interface will have the CanManuallyProvideToken property set to true in the settings.
    • this will toggle an input text field to be made visible in the backoffice service details page, where the editor can save a new access token. image
    • a successful result will be displayed to the user. image
  2. Extend IAuthorizedServiceCaller interface to retrieve the access token for a service using the GetTokenAsync method. I have implemented the method to run async, as it did not invoke any asynchronous methods in its body.

Schema has been updated with details of the CanManuallyProvideToken property.

acoumb commented 1 year ago

UI updated.

acoumb commented 1 year ago

Looks nice. Merging in.