Skip to content

Commit eaba526

Browse files
authored
fix typo: Autenthication -> to -> Authentication (#740)
Signed-off-by: Dmitrii Tikhomirov <[email protected]>
1 parent 19778dd commit eaba526

File tree

8 files changed

+50
-50
lines changed

8 files changed

+50
-50
lines changed

api/src/test/java/io/serverlessworkflow/api/ApiTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
import io.serverlessworkflow.api.types.CallHTTP;
2424
import io.serverlessworkflow.api.types.CallTask;
2525
import io.serverlessworkflow.api.types.HTTPArguments;
26-
import io.serverlessworkflow.api.types.OAuth2AutenthicationData;
27-
import io.serverlessworkflow.api.types.OAuth2AutenthicationData.OAuth2AutenthicationDataGrant;
26+
import io.serverlessworkflow.api.types.OAuth2AuthenticationData;
27+
import io.serverlessworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant;
2828
import io.serverlessworkflow.api.types.OAuth2AuthenticationPolicy;
2929
import io.serverlessworkflow.api.types.OAuth2AuthenticationPolicyConfiguration;
3030
import io.serverlessworkflow.api.types.OAuth2AuthenticationPropertiesEndpoints;
@@ -107,10 +107,10 @@ void testOauth2Auth() throws IOException {
107107
assertThat(endpoints.getToken()).isEqualTo("/auth/token");
108108
assertThat(endpoints.getIntrospection()).isEqualTo("/auth/introspect");
109109

110-
OAuth2AutenthicationData oauth2Data = oauth2Props.getOAuth2AutenthicationData();
110+
OAuth2AuthenticationData oauth2Data = oauth2Props.getOAuth2AuthenticationData();
111111
assertThat(oauth2Data.getAuthority().getLiteralUri())
112112
.isEqualTo(URI.create("http://keycloak/realms/fake-authority"));
113-
assertThat(oauth2Data.getGrant()).isEqualTo(OAuth2AutenthicationDataGrant.CLIENT_CREDENTIALS);
113+
assertThat(oauth2Data.getGrant()).isEqualTo(OAuth2AuthenticationDataGrant.CLIENT_CREDENTIALS);
114114
assertThat(oauth2Data.getClient().getId()).isEqualTo("workflow-runtime-id");
115115
assertThat(oauth2Data.getClient().getSecret()).isEqualTo("workflow-runtime-secret");
116116
}

fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/OAuth2AuthenticationPolicyBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public OAuth2AuthenticationPolicyBuilder endpoints(
4343
public OAuth2AuthenticationPolicy build() {
4444
final OAuth2AuthenticationPolicyConfiguration configuration =
4545
new OAuth2AuthenticationPolicyConfiguration();
46-
configuration.setOAuth2AutenthicationData(this.getAuthenticationData());
46+
configuration.setOAuth2AuthenticationData(this.getAuthenticationData());
4747
configuration.setOAuth2ConnectAuthenticationProperties(this.properties);
4848

4949
final Oauth2 oauth2 = new Oauth2();

fluent/spec/src/main/java/io/serverlessworkflow/fluent/spec/OIDCBuilder.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@
1616
package io.serverlessworkflow.fluent.spec;
1717

1818
import io.serverlessworkflow.api.types.AuthenticationPolicy;
19-
import io.serverlessworkflow.api.types.OAuth2AutenthicationData;
20-
import io.serverlessworkflow.api.types.OAuth2AutenthicationDataClient;
19+
import io.serverlessworkflow.api.types.OAuth2AuthenticationData;
20+
import io.serverlessworkflow.api.types.OAuth2AuthenticationDataClient;
2121
import io.serverlessworkflow.api.types.OAuth2AuthenticationPropertiesEndpoints;
2222
import io.serverlessworkflow.api.types.OAuth2TokenDefinition;
2323
import io.serverlessworkflow.api.types.OAuth2TokenRequest;
2424
import java.util.List;
2525
import java.util.function.Consumer;
2626

2727
public abstract class OIDCBuilder<T extends AuthenticationPolicy> {
28-
private final OAuth2AutenthicationData authenticationData;
28+
private final OAuth2AuthenticationData authenticationData;
2929

3030
OIDCBuilder() {
31-
this.authenticationData = new OAuth2AutenthicationData();
31+
this.authenticationData = new OAuth2AuthenticationData();
3232
this.authenticationData.setRequest(new OAuth2TokenRequest());
3333
}
3434

@@ -37,7 +37,7 @@ public OIDCBuilder<T> authority(String authority) {
3737
return this;
3838
}
3939

40-
public OIDCBuilder<T> grant(OAuth2AutenthicationData.OAuth2AutenthicationDataGrant grant) {
40+
public OIDCBuilder<T> grant(OAuth2AuthenticationData.OAuth2AuthenticationDataGrant grant) {
4141
this.authenticationData.setGrant(grant);
4242
return this;
4343
}
@@ -100,7 +100,7 @@ public OIDCBuilder<T> client(Consumer<OAuth2AuthenticationDataClientBuilder> cli
100100
return this;
101101
}
102102

103-
protected final OAuth2AutenthicationData getAuthenticationData() {
103+
protected final OAuth2AuthenticationData getAuthenticationData() {
104104
return authenticationData;
105105
}
106106

@@ -129,10 +129,10 @@ public OAuth2TokenDefinition build() {
129129
}
130130

131131
public static final class OAuth2AuthenticationDataClientBuilder {
132-
private final OAuth2AutenthicationDataClient client;
132+
private final OAuth2AuthenticationDataClient client;
133133

134134
OAuth2AuthenticationDataClientBuilder() {
135-
this.client = new OAuth2AutenthicationDataClient();
135+
this.client = new OAuth2AuthenticationDataClient();
136136
}
137137

138138
public OAuth2AuthenticationDataClientBuilder id(String id) {
@@ -151,12 +151,12 @@ public OAuth2AuthenticationDataClientBuilder assertion(String assertion) {
151151
}
152152

153153
public OAuth2AuthenticationDataClientBuilder authentication(
154-
OAuth2AutenthicationDataClient.ClientAuthentication authentication) {
154+
OAuth2AuthenticationDataClient.ClientAuthentication authentication) {
155155
this.client.setAuthentication(authentication);
156156
return this;
157157
}
158158

159-
public OAuth2AutenthicationDataClient build() {
159+
public OAuth2AuthenticationDataClient build() {
160160
return this.client;
161161
}
162162
}

impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/oauth/ClientSecretBasic.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
*/
1616
package io.serverlessworkflow.impl.executors.http.oauth;
1717

18-
import static io.serverlessworkflow.api.types.OAuth2AutenthicationData.OAuth2AutenthicationDataGrant.CLIENT_CREDENTIALS;
19-
import static io.serverlessworkflow.api.types.OAuth2AutenthicationData.OAuth2AutenthicationDataGrant.PASSWORD;
18+
import static io.serverlessworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.CLIENT_CREDENTIALS;
19+
import static io.serverlessworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.PASSWORD;
2020

21-
import io.serverlessworkflow.api.types.OAuth2AutenthicationData;
21+
import io.serverlessworkflow.api.types.OAuth2AuthenticationData;
2222
import io.serverlessworkflow.api.types.Oauth2;
2323
import java.util.Base64;
2424

@@ -31,8 +31,8 @@ public ClientSecretBasic(Oauth2 oauth2) {
3131
}
3232

3333
public void execute(HttpRequestBuilder requestBuilder) {
34-
OAuth2AutenthicationData authenticationData =
35-
oauth2.getOAuth2ConnectAuthenticationProperties().getOAuth2AutenthicationData();
34+
OAuth2AuthenticationData authenticationData =
35+
oauth2.getOAuth2ConnectAuthenticationProperties().getOAuth2AuthenticationData();
3636
if (authenticationData.getGrant().equals(PASSWORD)) {
3737
password(requestBuilder, authenticationData);
3838
} else if (authenticationData.getGrant().equals(CLIENT_CREDENTIALS)) {
@@ -44,7 +44,7 @@ public void execute(HttpRequestBuilder requestBuilder) {
4444
}
4545

4646
private void clientCredentials(
47-
HttpRequestBuilder requestBuilder, OAuth2AutenthicationData authenticationData) {
47+
HttpRequestBuilder requestBuilder, OAuth2AuthenticationData authenticationData) {
4848
if (authenticationData.getClient() == null
4949
|| authenticationData.getClient().getId() == null
5050
|| authenticationData.getClient().getSecret() == null) {
@@ -63,7 +63,7 @@ private void clientCredentials(
6363
}
6464

6565
private void password(
66-
HttpRequestBuilder requestBuilder, OAuth2AutenthicationData authenticationData) {
66+
HttpRequestBuilder requestBuilder, OAuth2AuthenticationData authenticationData) {
6767
if (authenticationData.getUsername() == null || authenticationData.getPassword() == null) {
6868
throw new IllegalArgumentException(
6969
"Username and password must be provided for password grant type");

impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/oauth/ClientSecretPostStep.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
*/
1616
package io.serverlessworkflow.impl.executors.http.oauth;
1717

18-
import static io.serverlessworkflow.api.types.OAuth2AutenthicationData.OAuth2AutenthicationDataGrant.CLIENT_CREDENTIALS;
19-
import static io.serverlessworkflow.api.types.OAuth2AutenthicationData.OAuth2AutenthicationDataGrant.PASSWORD;
18+
import static io.serverlessworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.CLIENT_CREDENTIALS;
19+
import static io.serverlessworkflow.api.types.OAuth2AuthenticationData.OAuth2AuthenticationDataGrant.PASSWORD;
2020

21-
import io.serverlessworkflow.api.types.OAuth2AutenthicationData;
21+
import io.serverlessworkflow.api.types.OAuth2AuthenticationData;
2222
import io.serverlessworkflow.api.types.Oauth2;
2323

2424
class ClientSecretPostStep {
@@ -29,8 +29,8 @@ public ClientSecretPostStep(Oauth2 oauth2) {
2929
}
3030

3131
public void execute(HttpRequestBuilder requestBuilder) {
32-
OAuth2AutenthicationData authenticationData =
33-
oauth2.getOAuth2ConnectAuthenticationProperties().getOAuth2AutenthicationData();
32+
OAuth2AuthenticationData authenticationData =
33+
oauth2.getOAuth2ConnectAuthenticationProperties().getOAuth2AuthenticationData();
3434

3535
if (authenticationData.getGrant().equals(PASSWORD)) {
3636
password(requestBuilder, authenticationData);
@@ -43,7 +43,7 @@ public void execute(HttpRequestBuilder requestBuilder) {
4343
}
4444

4545
private void clientCredentials(
46-
HttpRequestBuilder requestBuilder, OAuth2AutenthicationData authenticationData) {
46+
HttpRequestBuilder requestBuilder, OAuth2AuthenticationData authenticationData) {
4747
if (authenticationData.getClient() == null
4848
|| authenticationData.getClient().getId() == null
4949
|| authenticationData.getClient().getSecret() == null) {
@@ -59,7 +59,7 @@ private void clientCredentials(
5959
}
6060

6161
private void password(
62-
HttpRequestBuilder requestBuilder, OAuth2AutenthicationData authenticationData) {
62+
HttpRequestBuilder requestBuilder, OAuth2AuthenticationData authenticationData) {
6363
if (authenticationData.getUsername() == null || authenticationData.getPassword() == null) {
6464
throw new IllegalArgumentException(
6565
"Username and password must be provided for password grant type");

impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/oauth/HttpRequestBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import static io.serverlessworkflow.api.types.OAuth2TokenRequest.Oauth2TokenRequestEncoding;
1919
import static io.serverlessworkflow.api.types.OAuth2TokenRequest.Oauth2TokenRequestEncoding.APPLICATION_X_WWW_FORM_URLENCODED;
2020

21-
import io.serverlessworkflow.api.types.OAuth2AutenthicationData;
21+
import io.serverlessworkflow.api.types.OAuth2AuthenticationData;
2222
import io.serverlessworkflow.api.types.OAuth2TokenRequest;
2323
import io.serverlessworkflow.impl.TaskContext;
2424
import io.serverlessworkflow.impl.WorkflowApplication;
@@ -48,7 +48,7 @@ class HttpRequestBuilder {
4848

4949
private URI uri;
5050

51-
private OAuth2AutenthicationData.OAuth2AutenthicationDataGrant grantType;
51+
private OAuth2AuthenticationData.OAuth2AuthenticationDataGrant grantType;
5252

5353
private Oauth2TokenRequestEncoding requestContentType = APPLICATION_X_WWW_FORM_URLENCODED;
5454

@@ -81,7 +81,7 @@ HttpRequestBuilder withRequestContentType(OAuth2TokenRequest oAuth2TokenRequest)
8181
}
8282

8383
HttpRequestBuilder withGrantType(
84-
OAuth2AutenthicationData.OAuth2AutenthicationDataGrant grantType) {
84+
OAuth2AuthenticationData.OAuth2AuthenticationDataGrant grantType) {
8585
this.grantType = grantType;
8686
return this;
8787
}

impl/http/src/main/java/io/serverlessworkflow/impl/executors/http/oauth/OAuthRequestBuilder.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
*/
1616
package io.serverlessworkflow.impl.executors.http.oauth;
1717

18-
import static io.serverlessworkflow.api.types.OAuth2AutenthicationDataClient.ClientAuthentication.CLIENT_SECRET_POST;
18+
import static io.serverlessworkflow.api.types.OAuth2AuthenticationDataClient.ClientAuthentication.CLIENT_SECRET_POST;
1919

20-
import io.serverlessworkflow.api.types.OAuth2AutenthicationData;
21-
import io.serverlessworkflow.api.types.OAuth2AutenthicationDataClient;
20+
import io.serverlessworkflow.api.types.OAuth2AuthenticationData;
21+
import io.serverlessworkflow.api.types.OAuth2AuthenticationDataClient;
2222
import io.serverlessworkflow.api.types.OAuth2AuthenticationPropertiesEndpoints;
2323
import io.serverlessworkflow.api.types.Oauth2;
2424
import io.serverlessworkflow.impl.TaskContext;
@@ -36,7 +36,7 @@ public class OAuthRequestBuilder {
3636

3737
private final Oauth2 oauth2;
3838

39-
private final OAuth2AutenthicationData authenticationData;
39+
private final OAuth2AuthenticationData authenticationData;
4040

4141
private final WorkflowApplication application;
4242

@@ -51,7 +51,7 @@ public class OAuthRequestBuilder {
5151
public OAuthRequestBuilder(WorkflowApplication application, Oauth2 oauth2) {
5252
this.oauth2 = oauth2;
5353
this.authenticationData =
54-
oauth2.getOAuth2ConnectAuthenticationProperties().getOAuth2AutenthicationData();
54+
oauth2.getOAuth2ConnectAuthenticationProperties().getOAuth2AuthenticationData();
5555
this.application = application;
5656
}
5757

@@ -90,7 +90,7 @@ private void clientSecretPost(HttpRequestBuilder requestBuilder) {
9090
new ClientSecretPostStep(oauth2).execute(requestBuilder);
9191
}
9292

93-
private OAuth2AutenthicationDataClient.ClientAuthentication getClientAuthentication() {
93+
private OAuth2AuthenticationDataClient.ClientAuthentication getClientAuthentication() {
9494
if (authenticationData.getClient() == null
9595
|| authenticationData.getClient().getAuthentication() == null) {
9696
return CLIENT_SECRET_POST;
@@ -102,7 +102,7 @@ private void issuers() {
102102
issuers =
103103
oauth2
104104
.getOAuth2ConnectAuthenticationProperties()
105-
.getOAuth2AutenthicationData()
105+
.getOAuth2AuthenticationData()
106106
.getIssuers();
107107
}
108108

@@ -142,7 +142,7 @@ private void authenticationURI(HttpRequestBuilder requestBuilder) {
142142
String baseUri =
143143
oauth2
144144
.getOAuth2ConnectAuthenticationProperties()
145-
.getOAuth2AutenthicationData()
145+
.getOAuth2AuthenticationData()
146146
.getAuthority()
147147
.getLiteralUri()
148148
.toString()

types/src/main/resources/schema/workflow.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,21 +1055,21 @@ $defs:
10551055
required: [ oidc ]
10561056
oauth2AuthenticationProperties:
10571057
type: object
1058-
title: OAuth2AutenthicationData
1058+
title: OAuth2AuthenticationData
10591059
description: Inline configuration of the OAuth2 authentication policy.
10601060
properties:
10611061
authority:
10621062
$ref: '#/$defs/uriTemplate'
1063-
title: OAuth2AutenthicationDataAuthority
1063+
title: OAuth2AuthenticationDataAuthority
10641064
description: The URI that references the OAuth2 authority to use.
10651065
grant:
10661066
type: string
10671067
enum: [ authorization_code, client_credentials, password, refresh_token, 'urn:ietf:params:oauth:grant-type:token-exchange']
1068-
title: OAuth2AutenthicationDataGrant
1068+
title: OAuth2AuthenticationDataGrant
10691069
description: The grant type to use.
10701070
client:
10711071
type: object
1072-
title: OAuth2AutenthicationDataClient
1072+
title: OAuth2AuthenticationDataClient
10731073
description: The definition of an OAuth2 client.
10741074
unevaluatedProperties: false
10751075
properties:
@@ -1109,31 +1109,31 @@ $defs:
11091109
type: string
11101110
scopes:
11111111
type: array
1112-
title: OAuth2AutenthicationDataScopes
1112+
title: OAuth2AuthenticationDataScopes
11131113
description: The scopes, if any, to request the token for.
11141114
items:
11151115
type: string
11161116
audiences:
11171117
type: array
1118-
title: OAuth2AutenthicationDataAudiences
1118+
title: OAuth2AuthenticationDataAudiences
11191119
description: The audiences, if any, to request the token for.
11201120
items:
11211121
type: string
11221122
username:
11231123
type: string
1124-
title: OAuth2AutenthicationDataUsername
1124+
title: OAuth2AuthenticationDataUsername
11251125
description: The username to use. Used only if the grant type is Password.
11261126
password:
11271127
type: string
1128-
title: OAuth2AutenthicationDataPassword
1128+
title: OAuth2AuthenticationDataPassword
11291129
description: The password to use. Used only if the grant type is Password.
11301130
subject:
11311131
$ref: '#/$defs/oauth2Token'
1132-
title: OAuth2AutenthicationDataSubject
1132+
title: OAuth2AuthenticationDataSubject
11331133
description: The security token that represents the identity of the party on behalf of whom the request is being made.
11341134
actor:
11351135
$ref: '#/$defs/oauth2Token'
1136-
title: OAuth2AutenthicationDataActor
1136+
title: OAuth2AuthenticationDataActor
11371137
description: The security token that represents the identity of the acting party.
11381138
oauth2Token:
11391139
type: object

0 commit comments

Comments
 (0)