Skip to content

Commit 3ec78f0

Browse files
authored
Merge branch 'main' into eric/new-hello-bar-cs-239
2 parents 9f5d07a + 904ec75 commit 3ec78f0

9 files changed

Lines changed: 54 additions & 47 deletions

File tree

.idea/copilot.data.migration.agent.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/copilot.data.migration.edit.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/content/docs/accesstokenmanagement/index.mdx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ The `Duende.AccessTokenManagement` library provides automatic access token manag
1616
- Automatic access token lifetime management using a refresh token for API calls on behalf of the currently logged-in user (using the `Duende.AccessTokenManagement.OpenIdConnect` package)
1717
- Revocation of access tokens
1818

19-
:::note[Duende.AccessTokenManagement version 4 preview]
20-
Duende.AccessTokenManagement version 4 (preview) brings significant improvements, but also several breaking
21-
changes. Please see the [migration guide](/accesstokenmanagement/upgrading/atm-v3-to-v4.md) and [release notes](https://github.com/DuendeSoftware/foss/releases/tag/atm-4.0.0-Preview.2).
22-
:::
23-
2419
## Machine-To-Machine Token Management
2520

2621
To get started, install the NuGet Package:

src/content/docs/identitymodel/endpoints/device-authorize.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ redirect_from:
1010

1111
The client library for the [OAuth 2.0 device
1212
flow](https://tools.ietf.org/html/rfc7662) device authorization is
13-
provided as an extension method for *HttpClient*.
13+
provided as an extension method for `HttpClient`.
1414

1515
The following code sends a device authorization request:
1616

@@ -24,12 +24,12 @@ var response = await client.RequestDeviceAuthorizationAsync(new DeviceAuthorizat
2424
});
2525
```
2626

27-
The response is of type *DeviceAuthorizationResponse* and has properties
27+
The response is of type `DeviceAuthorizationResponse` and has properties
2828
for the standard response parameters. You also have access to the
29-
raw response and to a parsed JSON document (via the *Raw* and
30-
*Json* properties).
29+
raw response and to a parsed JSON document (via the `Raw` and
30+
`Json` properties).
3131

32-
Before using the response, you should always check the *IsError*
32+
Before using the response, you should always check the `IsError`
3333
property to make sure the request was successful:
3434

3535
```csharp

src/content/docs/identitymodel/endpoints/dynamic-registration.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@ var response = await client.RegisterClientAsync(new DynamicClientRegistrationReq
2929
```
3030

3131
:::note
32-
The *DynamicClientRegistrationDocument* class has strongly typed
32+
The `DynamicClientRegistrationDocument` class has strongly typed
3333
properties for all standard registration parameters as defines by the
3434
specification. If you want to add custom parameters, it is recommended
3535
to derive from this class and add your own properties.
3636
:::
3737

38-
The response is of type *RegistrationResponse* and has properties for
38+
The response is of type `RegistrationResponse` and has properties for
3939
the standard response parameters. You also have access to the raw
40-
response and to a parsed JSON document (via the *Raw* and *Json*
40+
response and to a parsed JSON document (via the `Raw` and `Json`
4141
properties).
4242

43-
Before using the response, you should always check the *IsError*
43+
Before using the response, you should always check the `IsError`
4444
property to make sure the request was successful:
4545

4646
```csharp

src/content/docs/identitymodel/endpoints/revocation.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ redirect_from:
1010

1111
The client library for [OAuth 2.0 token
1212
revocation](https://tools.ietf.org/html/rfc7009) is provided as an
13-
extension method for *HttpClient*.
13+
extension method for `HttpClient`.
1414

1515
The following code revokes an access token at a revocation
1616
endpoint:
@@ -28,11 +28,11 @@ var result = await client.RevokeTokenAsync(new TokenRevocationRequest
2828
});
2929
```
3030

31-
The response is of type *TokenRevocationResponse* gives you access to
32-
the raw response and to a parsed JSON document (via the *Raw*
33-
and *Json* properties).
31+
The response is of type `TokenRevocationResponse` gives you access to
32+
the raw response and to a parsed JSON document (via the `Raw`
33+
and `Json` properties).
3434

35-
Before using the response, you should always check the *IsError*
35+
Before using the response, you should always check the `IsError`
3636
property to make sure the request was successful:
3737

3838
```csharp

src/content/docs/identitymodel/endpoints/token.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ redirect_from:
1111
The client library for the token endpoint ([OAuth
1212
2.0](https://tools.ietf.org/html/rfc6749#section-3.2) and [OpenID
1313
Connect](https://openid.net/specs/openid-connect-core-1_0.html#tokenendpoint))
14-
is provided as a set of extension methods for *HttpClient*. This allows
15-
creating and managing the lifetime of the *HttpClient* the way you
16-
prefer - e.g. statically or via a factory like the Microsoft
17-
*HttpClientFactory*.
14+
is provided as a set of extension methods for `HttpClient`. This allows
15+
creating and managing the lifetime of the `HttpClient` the way you
16+
prefer: statically or via a factory like the Microsoft
17+
`HttpClientFactory`.
1818

1919
Requesting a token
2020
------------------
2121

22-
The main extension method is called *RequestTokenAsync* - it has direct
22+
The main extension method is called `RequestTokenAsync`. It has direct
2323
support for standard parameters like client ID/secret (or assertion) and
2424
grant type, but it also allows setting arbitrary other parameters via a
2525
dictionary. All other extensions methods ultimately call this method
@@ -44,12 +44,12 @@ var response = await client.RequestTokenAsync(new TokenRequest
4444
});
4545
```
4646

47-
The response is of type *TokenResponse* and has properties for the
48-
standard token response parameters like *access_token*, *expires_in*
47+
The response is of type `TokenResponse` and has properties for the
48+
standard token response parameters like `access_token`, `expires_in`
4949
etc. You also have access to the raw response and to a parsed
50-
JSON document (via the *Raw* and *Json* properties).
50+
JSON document (via the `Raw` and `Json` properties).
5151

52-
Before using the response, you should always check the *IsError*
52+
Before using the response, you should always check the `IsError`
5353
property to make sure the request was successful:
5454

5555
```csharp
@@ -59,11 +59,11 @@ var token = response.AccessToken;
5959
var custom = response.Json.TryGetString("custom_parameter");
6060
```
6161

62-
Requesting a token using the *client_credentials* Grant Type
62+
Requesting a token using the `client_credentials` Grant Type
6363
------------------------------------------------------------
6464

65-
The *RequestClientCredentialsToken* extension method has convenience
66-
properties for the *client_credentials* grant type:
65+
The `RequestClientCredentialsToken` extension method has convenience
66+
properties for the `client_credentials` grant type:
6767

6868
```csharp
6969
var response = await client.RequestClientCredentialsTokenAsync(new ClientCredentialsTokenRequest
@@ -76,11 +76,11 @@ var response = await client.RequestClientCredentialsTokenAsync(new ClientCredent
7676
});
7777
```
7878

79-
Requesting a token using the *password* Grant Type
79+
Requesting a token using the `password` Grant Type
8080
--------------------------------------------------
8181

82-
The *RequestPasswordToken* extension method has convenience properties
83-
for the *password* grant type:
82+
The `RequestPasswordToken` extension method has convenience properties
83+
for the `password` grant type:
8484

8585
```csharp
8686
var response = await client.RequestPasswordTokenAsync(new PasswordTokenRequest
@@ -96,11 +96,11 @@ var response = await client.RequestPasswordTokenAsync(new PasswordTokenRequest
9696
});
9797
```
9898

99-
Requesting a token using the *authorization_code* Grant Type
99+
Requesting a token using the `authorization_code` Grant Type
100100
------------------------------------------------------------
101101

102-
The *RequestAuthorizationCodeToken* extension method has convenience
103-
properties for the *authorization_code* grant type and PKCE:
102+
The `RequestAuthorizationCodeToken` extension method has convenience
103+
properties for the `authorization_code` grant type and PKCE:
104104

105105
```csharp
106106
var response = await client.RequestAuthorizationCodeTokenAsync(new AuthorizationCodeTokenRequest
@@ -118,11 +118,11 @@ var response = await client.RequestAuthorizationCodeTokenAsync(new Authorization
118118
});
119119
```
120120

121-
Requesting a token using the *refresh_token* Grant Type
121+
Requesting a token using the `refresh_token` Grant Type
122122
-------------------------------------------------------
123123

124-
The *RequestRefreshToken* extension method has convenience properties
125-
for the *refresh_token* grant type:
124+
The `RequestRefreshToken` extension method has convenience properties
125+
for the `refresh_token` grant type:
126126

127127
```csharp
128128
var response = await _client.RequestRefreshTokenAsync(new RefreshTokenRequest
@@ -139,8 +139,8 @@ var response = await _client.RequestRefreshTokenAsync(new RefreshTokenRequest
139139
Requesting a Device Token
140140
-------------------------
141141

142-
The *RequestDeviceToken* extension method has convenience properties for
143-
the *urn:ietf:params:oauth:grant-type:device_code* grant type:
142+
The `RequestDeviceToken` extension method has convenience properties for
143+
the `urn:ietf:params:oauth:grant-type:device_code` grant type:
144144

145145
```csharp
146146
var response = await client.RequestDeviceTokenAsync(new DeviceTokenRequest

src/content/docs/identitymodel/endpoints/userinfo.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ redirect_from:
99

1010
The client library for the [OpenID Connect
1111
UserInfo](https://openid.net/specs/openid-connect-core-1_0.html#userinfo)
12-
endpoint is provided as an extension method for *HttpClient*.
12+
endpoint is provided as an extension method for `HttpClient`.
1313

1414
The following code sends an access token to the UserInfo endpoint:
1515

@@ -23,12 +23,12 @@ var response = await client.GetUserInfoAsync(new UserInfoRequest
2323
});
2424
```
2525

26-
The response is of type *UserInfoResponse* and has properties for the
26+
The response is of type `UserInfoResponse` and has properties for the
2727
standard response parameters. You also have access to the raw
28-
response and to a parsed JSON document (via the *Raw* and *Json*
28+
response and to a parsed JSON document (via the `Raw` and `Json`
2929
properties).
3030

31-
Before using the response, you should always check the *IsError*
31+
Before using the response, you should always check the `IsError`
3232
property to make sure the request was successful:
3333

3434
```csharp

src/content/docs/identityserver/deployment/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ builder.Services.Configure<ForwardedHeadersOptions>(options =>
7777
ForwardedHeaders.XForwardedProto;
7878

7979
// exact Addresses of known proxies to accept forwarded headers from.
80-
options.KnownProxies.Add(IPAddress.Parse("203.0.113.42"); // <-- change this value to the IP Address of the proxy
80+
options.KnownProxies.Add(IPAddress.Parse("203.0.113.42")); // <-- change this value to the IP Address of the proxy
8181
8282
// if the proxies could use any address from a block, that can be configured too:
8383
// var network = new IPNetwork(IPAddress.Parse("198.51.100.0"), 24);

0 commit comments

Comments
 (0)