Tag: spring-security
-
Postman giving 401 Unauthorized upon adding graphql-java-client dependency in spring boot
-1 I am working on a spring boot project with gradle that calls an external graphQL service using GraphQLHTTP Client. For this, I imported the following dependency in my build.gradle: implementation group: ‘com.graphql-java-generator’, name: ‘graphql-java-client-dependencies’, version: ‘2.3.1’ However, when I try to hit any endpoint (API) upon addition of above dependency, I am getting 401…
-
GraphQL with Spring Boot Security returning 403
0 I have been trying to implement GraphAPI methods authorization. But, always get 403. Environment: JDK 17 Spring Boot 3.1.5 MongoDB Spring Security Graph QL OS: MacOS JDK 17 My application file looks like: import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration; import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration; import org.springframework.context.annotation.EnableAspectJAutoProxy; @SpringBootApplication(exclude = {SecurityAutoConfiguration.class, UserDetailsServiceAutoConfiguration.class}) @EnableAspectJAutoProxy public class JoblobApplication { public static…
-
Use introspection query without authentication in graphql-spring-boot-starter
5 Using the graphql-spring-boot-starter library https://github.com/graphql-java-kickstart/graphql-spring-boot, is it possible to secure all requests but allow only the graphql introspection query with authentication? The project has enabled Spring security to use OAuth2 so every request is secured. Thanks for any hint or help. spring-boot spring-security graphql graphql-java Share Improve this question Follow asked Nov 13, 2019…