From 61073210eaecfd3a8e3be2dc33ea34ad3e0db698 Mon Sep 17 00:00:00 2001 From: h_sharifi Date: Wed, 14 Sep 2022 11:02:44 +0430 Subject: [PATCH] #BAEL-5443: add resttemplate for logout --- .../src/main/java/com/baeldung/keycloak/SpringBoot.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spring-boot-modules/spring-boot-keycloak/src/main/java/com/baeldung/keycloak/SpringBoot.java b/spring-boot-modules/spring-boot-keycloak/src/main/java/com/baeldung/keycloak/SpringBoot.java index d67dd05fc7..90d7e774a4 100644 --- a/spring-boot-modules/spring-boot-keycloak/src/main/java/com/baeldung/keycloak/SpringBoot.java +++ b/spring-boot-modules/spring-boot-keycloak/src/main/java/com/baeldung/keycloak/SpringBoot.java @@ -2,6 +2,8 @@ package com.baeldung.keycloak; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Bean; +import org.springframework.web.client.RestTemplate; @SpringBootApplication @@ -11,4 +13,8 @@ public class SpringBoot { SpringApplication.run(SpringBoot.class, args); } + @Bean + public RestTemplate restTemplate() { + return new RestTemplate(); + } }