SpringBoot – Conditional Authentication

I want to do a conditional validation. Ex: If user hits,

http://localhost:8080/employees/23456789

I should look for a key(23456789)in redis and get authentication type(ex: basic) and validate.

http://localhost:8080/employees/09876098

I should look for a key(09876098)in redis and get authentication type(ex: keycloak) and validate.

How can I achieve this? Preferably with Spring Security



Read more here: https://stackoverflow.com/questions/68471994/springboot-conditional-authentication

Content Attribution

This content was originally published by Vasu Youth at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: