File tree Expand file tree Collapse file tree
experimental/fluent/func/src/main/java/io/serverlessworkflow/fluent/func/dsl
fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040import io .serverlessworkflow .fluent .spec .AbstractEventConsumptionStrategyBuilder ;
4141import io .serverlessworkflow .fluent .spec .EventFilterBuilder ;
4242import io .serverlessworkflow .fluent .spec .OAuth2AuthenticationPolicyBuilder ;
43- import io .serverlessworkflow .fluent .spec .OIDCBuilder .OAuth2AuthenticationPropertiesEndpointsBuilder ;
43+ import io .serverlessworkflow .fluent .spec .OAuth2AuthenticationPolicyBuilder .OAuth2AuthenticationPropertiesEndpointsBuilder ;
4444import io .serverlessworkflow .fluent .spec .ScheduleBuilder ;
4545import io .serverlessworkflow .fluent .spec .TimeoutBuilder ;
4646import io .serverlessworkflow .fluent .spec .WorkflowTaskBuilder ;
Original file line number Diff line number Diff line change 1717
1818import io .serverlessworkflow .api .types .OAuth2AuthenticationPolicy ;
1919import io .serverlessworkflow .api .types .OAuth2AuthenticationPolicyConfiguration ;
20+ import io .serverlessworkflow .api .types .OAuth2AuthenticationPropertiesEndpoints ;
2021import java .util .function .Consumer ;
2122
2223public final class OAuth2AuthenticationPolicyBuilder
@@ -49,4 +50,31 @@ public OAuth2AuthenticationPolicy build() {
4950 policy .setOauth2 (configuration );
5051 return policy ;
5152 }
53+
54+ public static final class OAuth2AuthenticationPropertiesEndpointsBuilder {
55+ private final OAuth2AuthenticationPropertiesEndpoints endpoints ;
56+
57+ OAuth2AuthenticationPropertiesEndpointsBuilder () {
58+ endpoints = new OAuth2AuthenticationPropertiesEndpoints ();
59+ }
60+
61+ public OAuth2AuthenticationPropertiesEndpointsBuilder token (String token ) {
62+ this .endpoints .setToken (token );
63+ return this ;
64+ }
65+
66+ public OAuth2AuthenticationPropertiesEndpointsBuilder revocation (String revocation ) {
67+ this .endpoints .setRevocation (revocation );
68+ return this ;
69+ }
70+
71+ public OAuth2AuthenticationPropertiesEndpointsBuilder introspection (String introspection ) {
72+ this .endpoints .setIntrospection (introspection );
73+ return this ;
74+ }
75+
76+ public OAuth2AuthenticationPropertiesEndpoints build () {
77+ return this .endpoints ;
78+ }
79+ }
5280}
Original file line number Diff line number Diff line change 1818import io .serverlessworkflow .api .types .AuthenticationPolicy ;
1919import io .serverlessworkflow .api .types .OAuth2AuthenticationData ;
2020import io .serverlessworkflow .api .types .OAuth2AuthenticationDataClient ;
21- import io .serverlessworkflow .api .types .OAuth2AuthenticationPropertiesEndpoints ;
2221import io .serverlessworkflow .api .types .OAuth2ConnectAuthenticationProperties ;
2322import io .serverlessworkflow .api .types .OAuth2TokenDefinition ;
2423import io .serverlessworkflow .api .types .OAuth2TokenRequest ;
@@ -168,31 +167,4 @@ public OAuth2AuthenticationDataClient build() {
168167 return this .client ;
169168 }
170169 }
171-
172- public static final class OAuth2AuthenticationPropertiesEndpointsBuilder {
173- private final OAuth2AuthenticationPropertiesEndpoints endpoints ;
174-
175- OAuth2AuthenticationPropertiesEndpointsBuilder () {
176- endpoints = new OAuth2AuthenticationPropertiesEndpoints ();
177- }
178-
179- public OAuth2AuthenticationPropertiesEndpointsBuilder token (String token ) {
180- this .endpoints .setToken (token );
181- return this ;
182- }
183-
184- public OAuth2AuthenticationPropertiesEndpointsBuilder revocation (String revocation ) {
185- this .endpoints .setRevocation (revocation );
186- return this ;
187- }
188-
189- public OAuth2AuthenticationPropertiesEndpointsBuilder introspection (String introspection ) {
190- this .endpoints .setIntrospection (introspection );
191- return this ;
192- }
193-
194- public OAuth2AuthenticationPropertiesEndpoints build () {
195- return this .endpoints ;
196- }
197- }
198170}
Original file line number Diff line number Diff line change 2222import io .serverlessworkflow .fluent .spec .EventFilterBuilder ;
2323import io .serverlessworkflow .fluent .spec .ForkTaskBuilder ;
2424import io .serverlessworkflow .fluent .spec .OAuth2AuthenticationPolicyBuilder ;
25- import io .serverlessworkflow .fluent .spec .OIDCBuilder .OAuth2AuthenticationPropertiesEndpointsBuilder ;
25+ import io .serverlessworkflow .fluent .spec .OAuth2AuthenticationPolicyBuilder .OAuth2AuthenticationPropertiesEndpointsBuilder ;
2626import io .serverlessworkflow .fluent .spec .ScheduleBuilder ;
2727import io .serverlessworkflow .fluent .spec .TaskItemListBuilder ;
2828import io .serverlessworkflow .fluent .spec .TimeoutBuilder ;
@@ -499,7 +499,7 @@ public static AuthenticationConfigurer oauth2(String secret) {
499499 * e -> e.token("/custom/token"));
500500 * }</pre>
501501 *
502- * @param authority OAuth2 authority/issuer URL
502+ * @param authority OAuth2 authority URL (the authorization server base URL)
503503 * @param grant OAuth2 grant type
504504 * @param clientId client identifier
505505 * @param clientSecret client secret
You can’t perform that action at this time.
0 commit comments