Skip to content

Commit

Permalink
readme polish
Browse files Browse the repository at this point in the history
  • Loading branch information
imrekel committed Feb 14, 2021
1 parent 4bd76ae commit 45b6233
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ The package offers wide configurability using Options. You can easily override a
#### ValidatorOption
If you want to override the default options (like the auth service url, or the realm), you can customize the `Validator` during instantiation with Options. It's as easy as passing them as constructor parameters, separated by a comma:
```go
service.NewValidator(service.WithBaseURL("https://authservice.bitrise.io"), service.WithRealm("master"))
service.NewValidator(config.NewAudienceConfig("audience"),
service.WithBaseURL("https://auth.services.bitrise.io"),
service.WithRealm("master"))
```

The available `ValidatorOption`s are the following:
Expand Down

0 comments on commit 45b6233

Please sign in to comment.