Skip to content

Commit 407e7e8

Browse files
Modified to pass RedmineManagerOptionsBuilder to RedmineManager
Fix to use RedmineManagerOptionsBuilder since passing host, login, password, or apikey to RedmineManager is deprecated
1 parent 01818fe commit 407e7e8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Authentication.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ The authentication can be done in 2 different ways:
1010
var host = "<host>";
1111
var login = "<login>";
1212
var password = "<password>";
13-
RedmineManager manager = new RedmineManager(host, login, password);
13+
var builder = RedmineManagerOptionsBuilder();
14+
builder.WithHost(host);
15+
builder.WithBasicAuthentication(login, password);
16+
RedmineManager manager = new RedmineManager(builder);
1417
```
1518

1619
- ApiKey
@@ -24,5 +27,8 @@ RedmineManager manager = new RedmineManager(host, login, password);
2427
```
2528
var host = "<host>";
2629
var apiKey = "<api-key>";
27-
RedmineManager manager = new RedmineManager(host, apiKey);
30+
var builder = RedmineManagerOptionsBuilder();
31+
builder.WithHost(host);
32+
builder.WithApiKeyAuthentication(apiKey);
33+
RedmineManager manager = new RedmineManager(builder);
2834
```

0 commit comments

Comments
 (0)