DORSETRIGS
Home

spring-security (183 post)


posts by category not found!

spring security - Using PreAuthenticatedAuthenticationToken

Understanding Pre Authenticated Authentication Token in Spring Security Spring Security is a powerful framework that helps secure Java applications One of its a

3 min read 08-10-2024 20
spring security - Using PreAuthenticatedAuthenticationToken
spring security - Using PreAuthenticatedAuthenticationToken

logging of spring security login/logout

Tracking User Activity How to Log Spring Security Login and Logout Events Understanding how users interact with your application is essential for security monit

3 min read 07-10-2024 20
logging of spring security login/logout
logging of spring security login/logout

Mapping user roles to oauth2 scopes/authorities

Mapping User Roles to O Auth 2 0 Scopes A Guide to Secure and Efficient Access Control O Auth 2 0 is a powerful tool for granting secure access to protected res

3 min read 07-10-2024 23
Mapping user roles to oauth2 scopes/authorities
Mapping user roles to oauth2 scopes/authorities

Spring Security allow all requests

Spring Security Allowing All Requests A Beginners Guide Problem You re setting up a Spring Boot application and need to temporarily allow all requests for devel

2 min read 07-10-2024 16
Spring Security allow all requests
Spring Security allow all requests

How to return HTTP 403 after successful authentication, but unsuccessful authorization?

Navigating the Forbidden Zone Returning HTTP 403 After Successful Authentication In the world of web development ensuring the security of your API is paramount

2 min read 07-10-2024 24
How to return HTTP 403 after successful authentication, but unsuccessful authorization?
How to return HTTP 403 after successful authentication, but unsuccessful authorization?

How to configure CORS in a Spring Boot + Spring Security application?

Securing Your Spring Boot API Mastering CORS with Spring Security Cross Origin Resource Sharing CORS is a crucial aspect of modern web development allowing webs

2 min read 07-10-2024 36
How to configure CORS in a Spring Boot + Spring Security application?
How to configure CORS in a Spring Boot + Spring Security application?

Unable to authentication a user with spring custom filter

Spring Security Authentication Headaches with Custom Filters Problem You ve built a custom filter in Spring Security to authenticate users based on unique logic

3 min read 07-10-2024 24
Unable to authentication a user with spring custom filter
Unable to authentication a user with spring custom filter

Spring Security Ant Matchers for home root / - spring boot 1.4.2 release version

Securing Your Spring Boot 1 4 2 Application with Ant Matchers A Deep Dive into Home Root Access Protecting your Spring Boot application from unauthorized access

2 min read 07-10-2024 20
Spring Security Ant Matchers for home root / - spring boot 1.4.2 release version
Spring Security Ant Matchers for home root / - spring boot 1.4.2 release version

Spring security shows "bad credentials" error instead of redirect

Spring Security Why You re Getting Bad Credentials Instead of Redirection Many Spring Security users encounter a frustrating issue instead of gracefully redirec

2 min read 07-10-2024 27
Spring security shows "bad credentials" error instead of redirect
Spring security shows "bad credentials" error instead of redirect

Spring QueryDsl pagination filter by ACL permissions

Spring Querydsl Pagination and Filtering with ACL Permissions Implementing secure pagination and filtering in your Spring Boot application can be a complex task

2 min read 06-10-2024 46
Spring QueryDsl pagination filter by ACL permissions
Spring QueryDsl pagination filter by ACL permissions

Spring Security CSRF disable is not working

Spring Security CSRF Protection Why Disabling It Might Not Be the Solution You Need Spring Securitys CSRF protection is a crucial layer of defense against cross

2 min read 06-10-2024 44
Spring Security CSRF disable is not working
Spring Security CSRF disable is not working

Spring Boot auto login Bad Credentials

Spring Boot Auto Login Demystifying the Bad Credentials Error Have you ever set up auto login in your Spring Boot application only to be greeted with the frustr

3 min read 06-10-2024 34
Spring Boot auto login Bad Credentials
Spring Boot auto login Bad Credentials

spring boot starter security not generating default password in logs

Spring Boot Security Why Your Default Password Isnt Showing in the Logs Have you ever set up Spring Boot security and found yourself scratching your head wonder

2 min read 06-10-2024 48
spring boot starter security not generating default password in logs
spring boot starter security not generating default password in logs

Configuring spring-boot-starter-oauth2-client to authenticate with Azure AD

Authenticating Spring Boot Applications with Azure Active Directory using O Auth2 This article guides you through the process of integrating your Spring Boot ap

3 min read 06-10-2024 53
Configuring spring-boot-starter-oauth2-client to authenticate with Azure AD
Configuring spring-boot-starter-oauth2-client to authenticate with Azure AD

Federate authorization requests with Spring Authorization Server

Federate Authorization Requests with Spring Authorization Server Streamlining Authentication Across Multiple Applications The Problem Imagine you have several a

2 min read 05-10-2024 45
Federate authorization requests with Spring Authorization Server
Federate authorization requests with Spring Authorization Server

It is possible to have sign in with user and credentials(JWT) and Oauth2 sign in with google?

Combining Worlds Integrating JWT Authentication with O Auth2 for Seamless User Experiences In todays digital landscape users demand seamless and secure access t

3 min read 05-10-2024 50
It is possible to have sign in with user and credentials(JWT) and Oauth2 sign in with google?
It is possible to have sign in with user and credentials(JWT) and Oauth2 sign in with google?

Convert JWT Authentication Principal to something more usable in spring

Ditch the JWT Principal Unlocking Usable User Data in Spring Dealing with JWT authentication in Spring can be a bit of a pain You get the JWT principal but its

2 min read 05-10-2024 39
Convert JWT Authentication Principal to something more usable in spring
Convert JWT Authentication Principal to something more usable in spring

Spring security OpenSAML 4.1.1 artifacts not found

Spring Security Open SAML 4 1 1 Troubleshooting Artifact Resolution Errors Scenario You re setting up Single Sign On SSO in your Spring Boot application using O

3 min read 05-10-2024 51
Spring security OpenSAML 4.1.1 artifacts not found
Spring security OpenSAML 4.1.1 artifacts not found

Spring SecurityContext not available when using parallelStream

Spring Security Context Disappears in Parallel Streams A Common Problem and Its Solutions Scenario You re working on a Spring Boot application that uses Spring

2 min read 05-10-2024 39
Spring SecurityContext not available when using parallelStream
Spring SecurityContext not available when using parallelStream

Spring security oauth2 login / spring cloud gateway sends 302 with XHR

Spring Security O Auth2 and Spring Cloud Gateway Navigating the 302 Redirect with XHR The Problem You re building a microservices application with Spring Cloud

3 min read 05-10-2024 48
Spring security oauth2 login / spring cloud gateway sends 302 with XHR
Spring security oauth2 login / spring cloud gateway sends 302 with XHR

SpringBoot + Spring Security OAuth2 2.0 Resource Server JWT at Startup Expectation is not calling Authorisation Server

Spring Boot Spring Security O Auth2 Why Your Resource Server Isnt Talking to the Authorization Server at Startup The Problem Silent Startup You ve meticulously

2 min read 05-10-2024 41
SpringBoot + Spring Security OAuth2 2.0 Resource Server JWT at Startup Expectation is not calling Authorisation Server
SpringBoot + Spring Security OAuth2 2.0 Resource Server JWT at Startup Expectation is not calling Authorisation Server

ProviderSettings class not found it says Cannot resolve symbol ProviderSettings

Cannot resolve symbol Provider Settings Troubleshooting the Missing Provider Settings Class Problem You re encountering an error message Cannot resolve symbol P

2 min read 05-10-2024 53
ProviderSettings class not found it says Cannot resolve symbol ProviderSettings
ProviderSettings class not found it says Cannot resolve symbol ProviderSettings

Manual login/authenticationManager - Spring security 6

Manual Login and Authentication Manager in Spring Security 6 A Practical Guide Spring Security 6 offers a robust framework for securing your applications While

2 min read 05-10-2024 38
Manual login/authenticationManager - Spring security 6
Manual login/authenticationManager - Spring security 6

Disabling Basic Auth in Spring Boot 3

Disabling Basic Authentication in Spring Boot 3 Problem Basic Authentication is a common way to secure web applications but in some situations you might need to

less than a minute read 04-10-2024 48
Disabling Basic Auth in Spring Boot 3
Disabling Basic Auth in Spring Boot 3

How to deal with CsrfAuthenticationStrategy unsetting XSRF-TOKEN cookie on authentication?

Unlocking the Mystery of XSRF TOKEN Disappearing After Authentication A Guide to CSRF Protection The Problem A Vanishing Cookie Have you ever encountered the fr

2 min read 04-10-2024 48
How to deal with CsrfAuthenticationStrategy unsetting XSRF-TOKEN cookie on authentication?
How to deal with CsrfAuthenticationStrategy unsetting XSRF-TOKEN cookie on authentication?