Skip to content

Commit

Permalink
added endpoint for adapter to start the oauth process
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlehansen committed Sep 14, 2017
1 parent baf01d7 commit 4b472fd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ repositories {


dependencies {
compile('no.fint:fint-audit-mongo-plugin:1.1.0')
compile('no.fint:fint-audit-mongo-plugin:1.1.1')
compile('no.fint:fint-events:1.0.0')
compile('no.fint:fint-event-model:2.0.0')
compile('no.fint:fint-springfox-extension:0.0.1')
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/no/fint/provider/events/sse/SseController.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,9 @@ public void removeSseClients() {
sseService.removeAll();
}

@ApiOperation(value = "", notes = "Adapter starts the oauth process")
@GetMapping("/auth-init")
public void authorize() {
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,12 @@ class SseControllerSpec extends MockMvcSpecification {
1 * sseService.removeAll()
response.andExpect(status().isOk())
}

def "Auth init"() {
when:
def response = mockMvc.perform(get('/sse/auth-init'))

then:
response.andExpect(status().isOk())
}
}

0 comments on commit 4b472fd

Please sign in to comment.