Skip to content

Commit

Permalink
Update example client.go to handle Client-Cert-Subject header to dete…
Browse files Browse the repository at this point in the history
…rmine the UID of the client
  • Loading branch information
jagan-parthiban committed May 23, 2024
1 parent 572082f commit d138a40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions experimental/certificate_auth/example/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ func main() {
log.Fatalln(err)
}

// Uncomment the following line to set UID via Client-Cert-Subject header and change the UID value to match the user you want to authenticate
//req.Header.Set("Client-Cert-Subject", "CN=client,OU=client,O=client,L=client,ST=client,C=US,UID=userID")

resp, err := client.Do(req)
if err != nil {
log.Fatalln(err)
Expand Down

0 comments on commit d138a40

Please sign in to comment.