Last active
August 8, 2019 17:20
-
-
Save sabesansathananthan/4fb32df7e830685ee226e03970b165d5 to your computer and use it in GitHub Desktop.
Client Application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
class KerberosConfig { | |
@Value("${app.user-principal}") | |
private String principal; | |
@Value("${app.keytab-location}") | |
private String keytabLocation; | |
@Bean | |
public RestTemplate restTemplate() { | |
return new KerberosRestTemplate(keytabLocation, principal); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment