Spring Security and Keycloak Integration in Spring Boot

gateway:  default-filters:    - TokenRelay
private final String AUTHORIZATION_HEADER = "Authorization";public static String getBearerTokenHeader() {  return ((ServletRequestAttributes)    RequestContextHolder.getRequestAttributes()).getRequest().getHeader( "Authorization");  }@Overridepublic void apply(RequestTemplate template) {  template.header(AUTHORIZATION_HEADER, getBearerTokenHeader());}




Software Engineer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Why you should totally switch to Kotlin

Automate Cross Account CloudFormation Deployment using AWS CodePipeline

Agile Methodologies


Questions Asked in Interview to Senior Python Developers

Dicether — New game “Plinko”


How To Copy A Page In Elementor

How To Copy A Page In Elementor

Humanoid Soccer Shooter — Endgame (3/3)

Robotis OP3 in action

To Filter: Sifting through Data (Language) & Does it Make Learning More Digestible?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rashedul Islam

Rashedul Islam

Software Engineer

More from Medium

Building a REST API E-Wallet MVP Using Spring Boot — Part 2(Business Logic, Database Layer…

Spring Boot Admin: How to use it

Securing your Spring Boot application with JWT

Microservices [Part 2] — With Maven, Spring Boot, And Docker