Skip to content

Add Macaroon token support - #2200

Open
sdelamo wants to merge 3 commits into
5.1.xfrom
paperclip/mng-237-support-macaroons
Open

Add Macaroon token support#2200
sdelamo wants to merge 3 commits into
5.1.xfrom
paperclip/mng-237-support-macaroons

Address Macaroon review threads

5b935d9
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded May 22, 2026 in 59s

Annotations

Check warning on line 94 in security-macaroons/src/main/java/io/micronaut/security/token/macaroons/MacaroonTokenValidator.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace "e" with an unnamed pattern.

See more on https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-security&issues=AZ5PbP6kuPeVtyPh5334&open=AZ5PbP6kuPeVtyPh5334&pullRequest=2200

Check warning on line 27 in security-macaroons/src/main/java/io/micronaut/security/token/macaroons/MacaroonAuthenticationContext.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this class declaration to use 'record MacaroonAuthenticationContext(String location, String identifier, MacaroonSer...)'.

See more on https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-security&issues=AZ5PbP6MuPeVtyPh5330&open=AZ5PbP6MuPeVtyPh5330&pullRequest=2200

Check warning on line 26 in security-macaroons/src/main/java/io/micronaut/security/token/macaroons/MacaroonCaveat.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this class declaration to use 'record MacaroonCaveat(String value)'.

See more on https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-security&issues=AZ5PbP6cuPeVtyPh5332&open=AZ5PbP6cuPeVtyPh5332&pullRequest=2200

Check warning on line 283 in security-macaroons/src/test/java/io/micronaut/security/token/macaroons/MacaroonTokenValidatorTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-security&issues=AZ5PmqosfU8iyngQ9-Yq&open=AZ5PmqosfU8iyngQ9-Yq&pullRequest=2200

Check warning on line 284 in security-macaroons/src/test/java/io/micronaut/security/token/macaroons/MacaroonTokenValidatorTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor the code of the lambda to have only one invocation possibly throwing a runtime exception.

See more on https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-security&issues=AZ5PmqosfU8iyngQ9-Yr&open=AZ5PmqosfU8iyngQ9-Yr&pullRequest=2200

Check warning on line 286 in security-macaroons/src/test/java/io/micronaut/security/token/macaroons/MacaroonTokenValidatorTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use assertNotEquals instead.

See more on https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-security&issues=AZ5PmqosfU8iyngQ9-Ys&open=AZ5PmqosfU8iyngQ9-Ys&pullRequest=2200

Check warning on line 79 in security-macaroons/src/main/java/io/micronaut/security/token/macaroons/MacaroonClaimsCodec.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace "e" with an unnamed pattern.

See more on https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-security&issues=AZ5PbP6UuPeVtyPh5331&open=AZ5PbP6UuPeVtyPh5331&pullRequest=2200