Skip to content

Commit

Permalink
Update Keycloak documentation
Browse files Browse the repository at this point in the history
Update the Keycloak documentation for using AccessType.
  • Loading branch information
martincostello committed Oct 9, 2021
1 parent 445b358 commit 3a07a18
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/keycloak.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@ services.AddAuthentication(options => /* Auth configuration */)
});
```

### Production with Public Access Type

```csharp
services.AddAuthentication(options => /* Auth configuration */)
.AddKeycloak(options =>
{
options.AccessType = KeycloakAuthenticationAccessType.Public;
options.ClientId = "my-client-id";
options.Domain = "mydomain.local";
options.Realm = "myrealm";
});
```

### Local Development with Docker

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

## Optional Settings

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

0 comments on commit 3a07a18

Please sign in to comment.