Skip to content

Commit 7659abd

Browse files
Update Keycloak documentation
Update the Keycloak documentation for using AccessType.
1 parent 68d2a9a commit 7659abd

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

docs/keycloak.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,19 @@ services.AddAuthentication(options => /* Auth configuration */)
1515
});
1616
```
1717

18+
### Production with Public Access Type
19+
20+
```csharp
21+
services.AddAuthentication(options => /* Auth configuration */)
22+
.AddKeycloak(options =>
23+
{
24+
options.AccessType = KeycloakAuthenticationAccessType.Public;
25+
options.ClientId = "my-client-id";
26+
options.Domain = "mydomain.local";
27+
options.Realm = "myrealm";
28+
});
29+
```
30+
1831
### Local Development with Docker
1932

2033
```csharp
@@ -40,4 +53,6 @@ Only one of either `BaseAddress` or `Domain` is required to be set. If both are
4053

4154
## Optional Settings
4255

43-
_None._
56+
| Property Name | Property Type | Description | Default Value |
57+
| :------------ | :--------------------------------- | :--------------------------------------- | :---------------------------------------------- |
58+
| `AccessType` | `KeycloakAuthenticationAccessType` | The Keycloak client's access token type. | `KeycloakAuthenticationAccessType.Confidential` |

0 commit comments

Comments
 (0)