This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Description
I'm playing with Instagram REST API and since they use OAuth, I need to redirect to their authorization URL. In regular Spring, that can be done by returning "redirect:" + authorizationUrl. Doing the following throws exception. See SPR-15078.
@GetMapping("/")
Mono<ServerResponse> redirect() {
return ServerResponse.status(TEMPORARY_REDIRECT)
.location(URI.create(authorizationUrl))
.build();
}