Skip to content

Commit

Permalink
remove client instructions, mention CA does not need to be configured
Browse files Browse the repository at this point in the history
  • Loading branch information
patilsnr committed Jan 20, 2024
1 parent bf4b126 commit f58787b
Showing 1 changed file with 2 additions and 35 deletions.
37 changes: 2 additions & 35 deletions scenarios/jwt_authentication/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,9 @@ To keep the scenario simple, a single client called "sample_client" publishes an
|sample_client|subscriber|subscribe|jwt/+|

## Prerequisites
This sample involves configuring Event Grid per the specifications in [setup](../../Setup.md).
This sample involves configuring Event Grid per the specifications in [setup](../../Setup.md), but does not require CA certificates to be configured.

## Create the Client

We will use the SubjectMatchesAuthenticationName validation scheme for `sample_client` to create the client from the portal or with the script. Note that if this has already been done via [getting_started](../getting_started/README.md), this step can be skipped and you can move onto `Create topic spaces and permission bindings`.

```bash
# from folder scenarios/jwt_authentication
source ../../az.env

az resource create --id "$res_id/clients/sample_client" --properties '{
"authenticationName": "sample_client",
"state": "Enabled",
"clientCertificateAuthentication": {
"validationScheme": "SubjectMatchesAuthenticationName"
},
"attributes": {
"type": "sample-client"
},
"description": "This is a test publisher client"
}'
```

## Create topic spaces and permission bindings
## Create a topic space
Run the commands to create the "jwt" topic space, and the two permission bindings that provide publish and subscribe access to $all client group on the samples topic space.

```bash
Expand All @@ -47,18 +26,6 @@ source ../../az.env
az resource create --id "$res_id/topicSpaces/jwt" --properties '{
"topicTemplates": ["jwt/#"]
}'

az resource create --id "$res_id/permissionBindings/jwtPub" --properties '{
"clientGroupName":"$all",
"topicSpaceName":"jwt",
"permission":"Publisher"
}'

az resource create --id "$res_id/permissionBindings/jwtSub" --properties '{
"clientGroupName":"$all",
"topicSpaceName":"jwt",
"permission":"Subscriber"
}'
```

## Create the .env file with connection details
Expand Down

0 comments on commit f58787b

Please sign in to comment.