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
@@ -111,6 +131,16 @@ The value contains the following elements:
111
131
112
132
Provides a friendly name for the service used for identification in the user interface.
113
133
134
+
###### AuthenticationMethod
135
+
136
+
Specifies the type of authentication the service will use, from one of the following available options: `OAuth1`, `OAuth2AuthorizationCode`, `OAuth2ClientCredentials` or `ApiKey`.
137
+
138
+
If none provided, it will default to `OAuth2AuthorizationCode`.
139
+
140
+
###### ClientCredentialsProvision
141
+
142
+
Specifies the available options for providing credentials in an `OAuth2` flow: `AuthHeader` or `RequestBody`.
143
+
114
144
###### ApiHost *
115
145
116
146
The host name for the service API that will be called to deliver business functionality. E.g. for Github this is `https://api.github.com`.
@@ -127,6 +157,29 @@ Some providers make available a separately hosted service for handling requests
127
157
128
158
Used, along with `IdentityHost` to construct a URL that the user is redirected to when initiating the authorization of the service via the backoffice. For GitHub, the required value is `/login/oauth/authorize`.
129
159
160
+
###### CanManuallyProvideToken
161
+
162
+
Specifies whether an administrator can manually add tokens.
163
+
164
+
###### CanManuallyProvideApiKey
165
+
166
+
Specifies whether an administrator can manually add API keys.
167
+
168
+
###### CanExchangeToken
169
+
170
+
Specifies whether the access token can be exchanged with a long lived one.
171
+
172
+
###### ExchangeTokenProvision
173
+
174
+
Provides a strongly typed configuration for a setup that allows exchanging an access token.
175
+
In this case the configuration includes:
176
+
- `TokenHost`
177
+
- `RequestTokenPath`
178
+
- `TokenGrantType`
179
+
- `RequestRefreshTokenPath`
180
+
- `RefreshTokenGrantType`
181
+
- `ExchangeTokenWhenExpiresWithin`
182
+
130
183
###### AuthorizationUrlRequiresRedirectUrl
131
184
132
185
Some providers require a redirect URL to be provided with the authentication request. For others, instead it's necessary to configure this as part of the registered app. The default value if not provided via configuration is `false`, which is sufficient for the GitHub example.
@@ -139,6 +192,10 @@ Used, along with `TokenHost` to construct a URL used for retrieving access token
139
192
140
193
An enum value that controls how the request to retrieve an access token is formatted. Options are `Querystring` and `FormUrlEncoded`. `Querystring` is the default value and is used for GitHub.
141
194
195
+
###### RequestAuthorizationPath
196
+
197
+
Required in `OAuth1a` flows for building the service authorization URL.
198
+
142
199
###### JsonSerializer
143
200
144
201
An enum value that defines the JSON serializer to use when creating requests and deserializing responses. Options are `Default` and `JsonNet` and `SystemTextJson`.
@@ -152,6 +209,14 @@ An enum value that defines the JSON serializer to use when creating requests and
152
209
This flag indicates whether the basic token should be included in the request for access token. If true, a base64 encoding of <clientId>:<clientSecret> will be added to
153
210
the authorization header.
154
211
212
+
###### API Key
213
+
214
+
Specifies the key a service with `AuthenticationMethod=ApiKey` will use for making authorized requests to the API.
215
+
216
+
###### ApiKeyProvision
217
+
218
+
For `ApiKey` authentication methods, options for passing the API key need to be set, by specifying a method: `HttpHeader` or `QueryString` and the name for the key holding the value.
219
+
155
220
###### ClientId *
156
221
157
222
This value will be retrieved from the registered service app.
@@ -189,6 +254,10 @@ The expected key for retrieving the datetime of token expiry from a response. If
189
254
190
255
An optional sample request can be provided, which can be used to check that an authorized service is functioning as expected from the backoffice. For example, to retrieve the set of contributors to the Umbraco repository hosted at GitHub, this request can be used: `/repos/Umbraco/Umbraco-CMS/contributors`.
191
256
257
+
###### RefreshAccessTokenWhenExpiresWithin
258
+
259
+
Specifies a time interval for expiration of access tokens.
260
+
192
261
### Authorizing a Service
193
262
194
263
With one or more service configured, it will be available from the items within a tree in the _Settings_ section:
0 commit comments