harry039804
harry039804
JCHJava Community | Help. Code. Learn.
Created by harry039804 on 1/5/2025 in #java-help
Springboot ignoring roles
Thank you that sorted it... I did remove that as it was not part of the tutorial I was watching so thought it was useless as the previous tutorial didn't actually explain its purpose... lmao
45 replies
JCHJava Community | Help. Code. Learn.
Created by harry039804 on 1/5/2025 in #java-help
Springboot ignoring roles
Like you got any links to good documentation
45 replies
JCHJava Community | Help. Code. Learn.
Created by harry039804 on 1/5/2025 in #java-help
Springboot ignoring roles
How do you know that lmao?
45 replies
JCHJava Community | Help. Code. Learn.
Created by harry039804 on 1/5/2025 in #java-help
Springboot ignoring roles
ah
45 replies
JCHJava Community | Help. Code. Learn.
Created by harry039804 on 1/5/2025 in #java-help
Springboot ignoring roles
o
45 replies
JCHJava Community | Help. Code. Learn.
Created by harry039804 on 1/5/2025 in #java-help
Springboot ignoring roles
45 replies
JCHJava Community | Help. Code. Learn.
Created by harry039804 on 1/5/2025 in #java-help
Springboot ignoring roles
sure hold on
45 replies
JCHJava Community | Help. Code. Learn.
Created by harry039804 on 1/5/2025 in #java-help
Springboot ignoring roles
100% debugging because its giving a different output without logging.level.org.springframework.security=DEBUG in application properties.
45 replies
JCHJava Community | Help. Code. Learn.
Created by harry039804 on 1/5/2025 in #java-help
Springboot ignoring roles
yes
45 replies
JCHJava Community | Help. Code. Learn.
Created by harry039804 on 1/5/2025 in #java-help
Springboot ignoring roles
2025-01-05T21:44:50.795Z DEBUG 84135 --- [restAPI] [ main] o.s.s.web.DefaultSecurityFilterChain : Will secure any request with filters: DisableEncodeUrlFilter, WebAsyncManagerIntegrationFilter, SecurityContextHolderFilter, HeaderWriterFilter, LogoutFilter, BearerTokenAuthenticationFilter, BasicAuthenticationFilter, RequestCacheAwareFilter, SecurityContextHolderAwareRequestFilter, AnonymousAuthenticationFilter, SessionManagementFilter, ExceptionTranslationFilter, AuthorizationFilter
45 replies
JCHJava Community | Help. Code. Learn.
Created by harry039804 on 1/5/2025 in #java-help
Springboot ignoring roles
Only other debug thing before it is this
45 replies
JCHJava Community | Help. Code. Learn.
Created by harry039804 on 1/5/2025 in #java-help
Springboot ignoring roles
Before is just basic startup
45 replies
JCHJava Community | Help. Code. Learn.
Created by harry039804 on 1/5/2025 in #java-help
Springboot ignoring roles
Nothing after that
45 replies
JCHJava Community | Help. Code. Learn.
Created by harry039804 on 1/5/2025 in #java-help
Springboot ignoring roles
Securing GET /admin
Authenticated token
Set SecurityContextHolder to JwtAuthenticationToken [Principal=org.springframework.security.oauth2.jwt.Jwt@bb8cefc3, Credentials=[PROTECTED], Authenticated=true, Details=WebAuthenticationDetails [RemoteIpAddress=0:0:0:0:0:0:0:1, SessionId=null], Granted Authorities=[SCOPE_ROLE_USER]]
Secured GET /admin
Securing GET /admin
Authenticated token
Set SecurityContextHolder to JwtAuthenticationToken [Principal=org.springframework.security.oauth2.jwt.Jwt@bb8cefc3, Credentials=[PROTECTED], Authenticated=true, Details=WebAuthenticationDetails [RemoteIpAddress=0:0:0:0:0:0:0:1, SessionId=null], Granted Authorities=[SCOPE_ROLE_USER]]
Secured GET /admin
45 replies
JCHJava Community | Help. Code. Learn.
Created by harry039804 on 1/5/2025 in #java-help
Springboot ignoring roles
oh mb
45 replies
JCHJava Community | Help. Code. Learn.
Created by harry039804 on 1/5/2025 in #java-help
Springboot ignoring roles
No description
45 replies
JCHJava Community | Help. Code. Learn.
Created by harry039804 on 1/5/2025 in #java-help
Springboot ignoring roles
debug = true
45 replies
JCHJava Community | Help. Code. Learn.
Created by harry039804 on 1/5/2025 in #java-help
Springboot ignoring roles
application.properties
45 replies
JCHJava Community | Help. Code. Learn.
Created by harry039804 on 1/5/2025 in #java-help
Springboot ignoring roles
I just enabled it on my
45 replies