Commit 19633967 authored by Matija Obreza's avatar Matija Obreza
Browse files

Include 'refresh_token' in default OAuth client

parent b91c649e
......@@ -42,8 +42,12 @@ public class CreateClientDetailsListener implements InitializingBean {
clientDetails.setClientId(DEFAULT_CLIENT_DETAILS_ID);
clientDetails.setClientSecret("0xcafebabe");
clientDetails.setScope("read,write");
clientDetails.setAuthorizedGrantTypes("authorization_code");
clientDetails.setAuthorities("ROLE_USER");
clientDetails.setAuthorizedGrantTypes("authorization_code,refresh_token");
// 50 days
clientDetails.setRefreshTokenValiditySeconds(50 * 24 * 60 * 60);
// 7 days
clientDetails.setAccessTokenValiditySeconds(7 * 24 * 60 * 60);
clientDetails.setAuthorities("USER");
clientDetailsService.addClientDetails(clientDetails);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment