ssc-brewery
ssc-brewery copied to clipboard
Spring Security Core Brewery
I just started the course and saw that there are some minor problems with the thymeleaf templating. The breweries page accidentaly links to 'beers' and an accidental 'mvn clean package'...
The following test in BeerRestControllerIT: @Test void deleteBeerBadCredsUrl() throws Exception{ mockMvc.perform(delete("/api/v1/beer/97df0c39-90c4-4ae0-b663-453e8e19c311") .param("apiKey","spring").header("apiSecret", "guruXXXX")) .andExpect(status().isUnauthorized()); } should be: @Test void deleteBeerBadCredsUrl() throws Exception{ mockMvc.perform(delete("/api/v1/beer/97df0c39-90c4-4ae0-b663-453e8e19c311") .param("apiKey","spring").param("apiSecret","guruXXXX")) .andExpect(status().isUnauthorized()); }
fixing issue #6
It seems like Google Authenticator skips `period` parameter in QR Code image like this: ` ` So if period is different from default (30s) Google Authenticator gives wrong Verification Code...