You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: marketplace-and-integrations/packages/authorized-services.md
+12-24Lines changed: 12 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,14 +23,9 @@ There are also differences across the request and response structures and variat
23
23
24
24
The package tries to implement a single, best practice implementation of working with OAuth. For particular providers the specific flow required can be customized via configuration or code.
25
25
26
-
The primary use case for this package is when working with services that offer an OAuth2/OAuth1 default authentication and authorization flow against an "app". The developer will need to create this "app" with the service. By doing this, for OAuth1 information such as "client ID"/"consumer key" and "client secret"/"consumer secret" can be applied to the configuration.
26
+
The primary use case for this package is when working with services that offer an OAuth authentication and authorization flow against an "app". The developer will need to create this "app" with the service. From this, details such as client key and secretcan be obtained and applied to the configuration.
27
27
28
-
When creating the app it is usually necessary to configure a call-back URL. You should use the following:
29
-
30
-
* For OAuth2: `/api/AuthorizedServiceResponse/HandleOAuth2IdentityResponse`
31
-
* For OAuth1: `/api/AuthorizedServiceResponse/HandleOAuth1IdentityResponse`
32
-
33
-
In addition, the package supports integration with OAuth1 or Api key based authentication and authorization services.
28
+
In addition, the package supports integration with Api key based authentication and authorization services.
34
29
35
30
## Features
36
31
@@ -48,30 +43,21 @@ Each tree entry has a management screen where an administrator can authenticate
A service can be configured to allow the manual entry of access tokens/API keys manually using the `CanManuallyProvideToken` or `CanManuallyProvideApiKey` settings. If this is set to `true`, a new section will be available for providing them. 
46
+
A service can be configured to allow the manual entry of access tokens/API keys manually using the `CanManuallyProvideToken` or `CanManuallyProvideApiKey` settings. If this is set to `true`, a new section will be available for providing them.
Secondly, the developer has access to an interface - `IAuthorizedServiceCaller` - that they can inject instances of and use to make authorized requests to the service's API.
62
-
63
-
Using a settings screen the administrator can review the service configuration.
64
-
65
-

54
+
From the settings panel the administrator can review the service configuration.
66
55
67
-
Depending on the authentication method of the service,
The interface provides methods for retrieving the value of the access tokens or API key - `GetOAuth1Token()`, `GetOAuth2Token()` and `GetApiKey()`. These will return null if the token or key is not found. They will also return null if the service is not configured to use the authorization method related to these objects.
60
+
Secondly, the developer has access to an interface - `IAuthorizedServiceCaller` - that they can inject instances of and use to make authorized requests to the service's API.
75
61
76
62
## Usage
77
63
@@ -85,10 +71,10 @@ The package should be installed into your Umbraco solution from [NuGet](https://
85
71
86
72
Services supported by the package will often offer an OAuth authentication and authorization flow against an "app" that the developer will need to create. This will make available information, including for example a "**client ID**" and "**client secret**", that will need to be applied in configuration.
87
73
88
-
When creating the app it will usually be necessary to configure a call back URL. You should use the following:
74
+
When creating the app it will be necessary to configure a call back URL. You should use the following:
89
75
90
-
- For OAuth2: `/umbraco/api/AuthorizedServiceResponse/HandleOAuth2IdentityResponse`
91
-
- For OAuth1: `/umbraco/api/AuthorizedServiceResponse/HandleOAuth1IdentityResponse`
76
+
* For OAuth2: `/umbraco/api/AuthorizedServiceResponse/HandleOAuth2IdentityResponse`
77
+
* For OAuth1: `/umbraco/api/AuthorizedServiceResponse/HandleOAuth1IdentityResponse`
These will return null if the token or key is not found. They will also return null if the service is not configured to use the authorization method related to these objects.
237
+
250
238
## Verified Providers
251
239
252
240
The following service providers have been tested against the package implementation. For each one the necessary configuration is listed.
0 commit comments