Skip to content

Commit 8b3ff6e

Browse files
authored
Merge pull request #9374 from rsvoboda/SmallRye.name.fix
Rename Smallrye to SmallRye
2 parents 3009214 + e387d25 commit 8b3ff6e

File tree

11 files changed

+20
-20
lines changed

11 files changed

+20
-20
lines changed

.dependabot/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ update_configs:
8787
dependency_name: "org.scala-lang:scala-compiler"
8888
- match:
8989
dependency_name: "net.alchim31.maven:scala-maven-plugin"
90-
# Smallrye
90+
# SmallRye
9191
- match:
9292
dependency_name: "io.smallrye:smallrye-jwt"
9393
- match:

docs/src/main/asciidoc/microprofile-fault-tolerance.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ cd microprofile-fault-tolerance-quickstart
5656
----
5757

5858
This command generates a Maven structure, importing the extensions for RESTEasy/JAX-RS
59-
and Smallrye Fault Tolerance, which is an implementation of the MicroProfile Fault Tolerance spec that Quarkus uses.
59+
and SmallRye Fault Tolerance, which is an implementation of the MicroProfile Fault Tolerance spec that Quarkus uses.
6060

6161
== Preparing an Application: REST Endpoint and CDI Bean
6262

docs/src/main/asciidoc/security-jwt.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ https://github.com/quarkusio/quarkus/tree/master/docs/src/main/asciidoc
66
= Quarkus - Using JWT RBAC
77

88
include::./attributes.adoc[]
9-
:extension-name: Smallrye JWT
9+
:extension-name: SmallRye JWT
1010
:mp-jwt: MicroProfile JWT RBAC
1111

1212
This guide explains how your Quarkus application can utilize MicroProfile Json Web Token (link:https://jwt.io/[JWT])
@@ -298,7 +298,7 @@ nQIDAQAB
298298

299299
=== Generating a JWT
300300

301-
Often one obtains a JWT from an identity manager like https://www.keycloak.org/[Keycloak], but for this quickstart we will generate our own using the JWT generation API provided by `smallrye-jwt` (see <<generate-jwt-tokens, Generate JWT tokens with Smallrye JWT>> for more infomation) and the TokenUtils class shown in the following listing. Take this source and place it into `security-jwt-quickstart/src/test/java/org/acme/security/jwt/TokenUtils.java`.
301+
Often one obtains a JWT from an identity manager like https://www.keycloak.org/[Keycloak], but for this quickstart we will generate our own using the JWT generation API provided by `smallrye-jwt` (see <<generate-jwt-tokens, Generate JWT tokens with SmallRye JWT>> for more infomation) and the TokenUtils class shown in the following listing. Take this source and place it into `security-jwt-quickstart/src/test/java/org/acme/security/jwt/TokenUtils.java`.
302302

303303

304304
.JWT utility class
@@ -937,9 +937,9 @@ precedence:
937937
- JSON Web Key (JWK) Base64 URL encoded
938938
- JSON Web Key Set (JWKS) Base64 URL encoded
939939

940-
=== Additional Smallrye JWT configuration
940+
=== Additional SmallRye JWT configuration
941941

942-
Smallrye JWT provides more properties which can be used to customize the token processing:
942+
SmallRye JWT provides more properties which can be used to customize the token processing:
943943

944944
[cols="<m,<m,<2",options="header"]
945945
|===
@@ -951,7 +951,7 @@ Smallrye JWT provides more properties which can be used to customize the token p
951951
|smallrye.jwt.token.schemes|`Bearer`|Comma-separated list containing an alternative single or multiple schemes, for example, `DPoP`.
952952
|smallrye.jwt.token.kid|none|Key identifier. If it is set then the verification JWK key as well every JWT token must have a matching `kid` header.
953953
|smallrye.jwt.time-to-live|none|The maximum number of seconds that a JWT may be issued for use. Effectively, the difference between the expiration date of the JWT and the issued at date must not exceed this value.
954-
|smallrye.jwt.require.named-principal|`false`|If an application relies on `java.security.Principal` returning a name then a token must have a `upn` or `preferred_username` or `sub` claim set. Setting this property will result in Smallrye JWT throwing an exception if none of these claims is available for the application code to reliably deal with a non-null `Principal` name.
954+
|smallrye.jwt.require.named-principal|`false`|If an application relies on `java.security.Principal` returning a name then a token must have a `upn` or `preferred_username` or `sub` claim set. Setting this property will result in SmallRye JWT throwing an exception if none of these claims is available for the application code to reliably deal with a non-null `Principal` name.
955955
|smallrye.jwt.path.sub|none|Path to the claim containing the subject name. It starts from the top level JSON object and can contain multiple segments where each segment represents a JSON object name only, example: `realms/subject`. This property can be used if a token has no 'sub' claim but has the subject set in a different claim. Use double quotes with the namespace qualified claims.
956956
|smallrye.jwt.claims.sub|none| This property can be used to set a default sub claim value when the current token has no standard or custom `sub` claim available. Effectively this property can be used to customize `java.security.Principal` name if no `upn` or `preferred_username` or `sub` claim is set.
957957
|smallrye.jwt.path.groups|none|Path to the claim containing the groups. It starts from the top level JSON object and can contain multiple segments where each segment represents a JSON object name only, example: `realm/groups`. This property can be used if a token has no 'groups' claim but has the groups set in a different claim. Use double quotes with the namespace qualified claims.
@@ -963,7 +963,7 @@ Smallrye JWT provides more properties which can be used to customize the token p
963963
|===
964964

965965
[[generate-jwt-tokens]]
966-
== Generate JWT tokens with Smallrye JWT
966+
== Generate JWT tokens with SmallRye JWT
967967

968968
JWT claims can be signed or encrypted or signed first and the nested JWT token encrypted.
969969
Signing the claims is used most often to secure the claims. What is known today as a JWT token is typically produced by signing the claims in a JSON format using the steps described in the link:https://tools.ietf.org/html/rfc7515[JSON Web Signature] specification.
@@ -1050,7 +1050,7 @@ String jwt = Jwt.claims("/tokenClaims.json").innerSign().encrypt();
10501050
== References
10511051

10521052
* link:https://github.com/eclipse/microprofile-jwt-auth/releases/download/1.1.1/microprofile-jwt-auth-spec.html[MP JWT 1.1.1]
1053-
* link:https://github.com/smallrye/smallrye-jwt[Smallrye JWT]
1053+
* link:https://github.com/smallrye/smallrye-jwt[SmallRye JWT]
10541054
* link:https://tools.ietf.org/html/rfc7519[JSON Web Token]
10551055
* link:https://tools.ietf.org/html/rfc7515[JSON Web Signature]
10561056
* link:https://tools.ietf.org/html/rfc7516[JSON Web Encryption]

extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/configproperties/ConfigPropertiesUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static ResultHandle createConversionToFinalValue(DotName resultTypeDotName,
139139
throw new IllegalStateException("Result type " + resultTypeDotName + " is not handled");
140140
}
141141
} else if (!resultTypeDotName.equals(typeUsedToLoadValue) && DotNames.STRING.equals(typeUsedToLoadValue)) {
142-
// in this case we just need to delegate to SmallryeConfig to convert the value for us
142+
// in this case we just need to delegate to SmallRyeConfig to convert the value for us
143143
ResultHandle smallryeConfig = bytecodeCreator.checkCast(config, SmallRyeConfig.class);
144144

145145
return bytecodeCreator.invokeVirtualMethod(

extensions/smallrye-fault-tolerance/deployment/src/main/java/io/quarkus/smallrye/faulttolerance/deployment/SmallRyeFaultToleranceProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
import io.quarkus.smallrye.faulttolerance.runtime.NoopMetricRegistry;
5151
import io.quarkus.smallrye.faulttolerance.runtime.QuarkusFallbackHandlerProvider;
5252
import io.quarkus.smallrye.faulttolerance.runtime.QuarkusFaultToleranceOperationProvider;
53-
import io.quarkus.smallrye.faulttolerance.runtime.SmallryeFaultToleranceRecorder;
53+
import io.quarkus.smallrye.faulttolerance.runtime.SmallRyeFaultToleranceRecorder;
5454
import io.smallrye.faulttolerance.ExecutorFactory;
5555
import io.smallrye.faulttolerance.ExecutorProvider;
5656
import io.smallrye.faulttolerance.FaultToleranceBinding;
@@ -188,7 +188,7 @@ public void transform(TransformationContext ctx) {
188188
@BuildStep
189189
// needs to be RUNTIME_INIT because we need to read MP Config
190190
@Record(ExecutionTime.RUNTIME_INIT)
191-
void validateFaultToleranceAnnotations(SmallryeFaultToleranceRecorder recorder,
191+
void validateFaultToleranceAnnotations(SmallRyeFaultToleranceRecorder recorder,
192192
ValidationPhaseBuildItem validationPhase,
193193
BeanArchiveIndexBuildItem beanArchiveIndexBuildItem) {
194194
AnnotationStore annotationStore = validationPhase.getContext().get(BuildExtension.Key.ANNOTATION_STORE);

extensions/smallrye-fault-tolerance/runtime/src/main/java/io/quarkus/smallrye/faulttolerance/runtime/QuarkusFaultToleranceOperationProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public FaultToleranceOperation apply(CacheKey key) {
3030
};
3131

3232
/**
33-
* Called by SmallryeFaultToleranceRecorder to init the operation cache.
33+
* Called by SmallRyeFaultToleranceRecorder to init the operation cache.
3434
*/
3535
void init(Map<CacheKey, FaultToleranceOperation> operationCache) {
3636
this.operationCache.putAll(operationCache);
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import io.smallrye.faulttolerance.config.FaultToleranceOperation;
1818

1919
@Recorder
20-
public class SmallryeFaultToleranceRecorder {
20+
public class SmallRyeFaultToleranceRecorder {
2121

2222
public void createFaultToleranceOperation(Set<String> beanNames) {
2323
List<Throwable> allExceptions = new ArrayList<>();
@@ -27,7 +27,7 @@ public void createFaultToleranceOperation(Set<String> beanNames) {
2727
try {
2828
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
2929
if (classLoader == null) {
30-
classLoader = SmallryeFaultToleranceRecorder.class.getClassLoader();
30+
classLoader = SmallRyeFaultToleranceRecorder.class.getClassLoader();
3131
}
3232
Class<?> beanClass = Class.forName(beanName, true, classLoader);
3333

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* deployment configuration
88
*/
99
@ConfigRoot(name = "smallrye-jwt")
10-
public class SmallryeJWTConfig {
10+
public class SmallRyeJWTConfig {
1111

1212
/**
1313
* The MP-JWT configuration object

extensions/smallrye-jwt/deployment/src/main/java/io/quarkus/smallrye/jwt/deployment/SmallRyeJwtProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class SmallRyeJwtProcessor {
5353
private static final DotName CLAIM_NAME = DotName.createSimple(Claim.class.getName());
5454
private static final DotName CLAIMS_NAME = DotName.createSimple(Claims.class.getName());
5555

56-
SmallryeJWTConfig config;
56+
SmallRyeJWTConfig config;
5757

5858
@BuildStep
5959
CapabilityBuildItem capability() {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import io.quarkus.test.QuarkusUnitTest;
1212
import io.restassured.RestAssured;
1313

14-
public class SmallryeJwtDisabledTest {
14+
public class SmallRyeJwtDisabledTest {
1515
private static Class<?>[] testClasses = {
1616
DefaultGroupsEndpoint.class
1717
};

0 commit comments

Comments
 (0)