Skip to content

GraphQL and Spring Security @PreAuthorize for Spring Boot webflux project #1311

@stasbit

Description

@stasbit

Hello team,

I was recently asked to add Security support for kotlin Spring boot webflux service. After add certain spring security dependencies, I observer that test endpoint retruns Access Denied exception.

How to reproduce

  1. Test service - https://github.com/stasbit/webflux-security-demo-service
  2. Create test JWT token(http://jwtbuilder.jamiekurtz.com) here and put it to cookie "access_token". Add Claim Type "Roles" with values 'USER, MANAGER'
  3. Send Query to getAllBooks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions