File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
grpc-client-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/client/security Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 58
58
* </p>
59
59
* <ul>
60
60
* <li>{@link #basicAuth(String, String) Basic-Auth}</li>
61
+ * <li>{@link #bearerAuth(Supplier) Bearer-Auth}</li>
62
+ * <li>Other variants using static or dynamic headers</li>
61
63
* <li>{@link #requirePrivacy(CallCredentials) Require privacy for the connection} (Wrapper)</li>
62
64
* <li>{@link #includeWhenPrivate(CallCredentials) Include credentials only if connection is private} (Wrapper)</li>
63
65
* </ul>
73
75
* <pre>
74
76
* <code>@Bean
75
77
* CallCredentials myCallCredentials() {
76
- * return CallCredentialsHelper# basicAuth("user", "password")}
78
+ * return CallCredentialsHelper. basicAuth("user", "password");
77
79
* }</code>
78
80
* </pre>
79
81
*
85
87
* <pre>
86
88
* <code>@Bean
87
89
* StubTransformer myCallCredentialsTransformer() {
88
- * return CallCredentialsHelper# mappedCredentialsStubTransformer(Map.of(
90
+ * return CallCredentialsHelper. mappedCredentialsStubTransformer(Map.of(
89
91
* "myService1", basicAuth("user1", "password1"),
90
92
* "theService2", basicAuth("foo", "bar"),
91
93
* "publicApi", null // No credentials needed
97
99
* <li>If you need different CallCredentials for each call, then you have to define it in the method yourself.
98
100
*
99
101
* <pre>
100
- * <code>stub.withCallCredentials(CallCredentialsHelper# basicAuth("user", "password")).doStuff(request);</code>
102
+ * <code>stub.withCallCredentials(CallCredentialsHelper. basicAuth("user", "password")).doStuff(request);</code>
101
103
* </pre>
102
104
*
103
105
* </li>
You can’t perform that action at this time.
0 commit comments