Questions tagged [micronaut-security]

22 questions
0
votes
1 answer

Micronaut JAR throws BeanInstantiationException, but not when running with IntelliJ

I recently packaged my Micronaut application using Maven: ./mvnw package This generates a JAR file, which I run using: java -jar /path/to/jar/app_name-0.1.jar For some reason, the application throws a…
0
votes
1 answer

How to implement micronaut dependency in grails gradle?

I'm trying to add micronaut dependency in grails build.gradle. And I found no proper solution. And getting the following error. build.gradle file dependencies { *these are the dependencies I would like to add* // …
0
votes
1 answer

Truststore system property value not taking into effect with micronaut, openjdk 17 - 'Inaccessible trust store'

I want to use custom truststore with open jdk 17 and micronaut. I want to access link similar to - https://gitlab.com/api/v4/feature_flags/unleash/42 I have added certificate belonging to the host to custom truststore. I tried to setup custom…
0
votes
1 answer

Authentication null with JUnit 5 testing Micronaut 3.3.4

Trying to protect the controller with micronaut security using JUnit testing, getting authentication as NULL. @TestMethodOrder(MethodOrderer.OrderAnnotation.class) @MicronautTest public class ProductCreateTest extends TestContainerFixture { …
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
0
votes
1 answer

Why is Logout Controller anonymous in Micronaut?

io.micronaut.security.endpoints.LogoutController is annotated by @Secured(SecurityRule.IS_ANONYMOUS) In general one would expect a user to be authenticated before logout. What am I missing?
destan
  • 4,301
  • 3
  • 35
  • 62
0
votes
1 answer

Micronaut's netty server http request missing headers

I'm trying to integrate custom authentication service with micronaut security and to do this I've implemented my own AuthenticationProvider and that works fine for basic auth, however I also need to take care of authentication tokens passed in the…
0
votes
1 answer

Micronaut Custom SecurityRule to check if user is authenticated or not?

I have below custom security rule @Singleton public class AdminHandler implements SecurityRule { @Override public SecurityRuleResult check(HttpRequest request, @Nullable RouteMatch routeMatch, @Nullable Map claims) { …
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
1
2