The value of the scope parameter is expressed as a list of space-
delimited, case-sensitive strings. The strings are defined by the
authorization server. If the value contains multiple space-delimited
strings, their order does not matter, and each string adds an
additional access range to the requested scope.
ParameterizedTypeReference<Map<String, String>> type = new ParameterizedTypeReference<Map<String, String>>() {};
BodyExtractor<Mono<Map<String, String>>, ReactiveHttpInputMessage> delegate = BodyExtractors.toMono(type);
Error on cas access token:
JSON decoding error: Cannot deserialize instance of `java.lang.String` out of START_ARRAY token;
nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException:
Cannot deserialize instance of `java.lang.String` out of START_ARRAY token at
[Source: UNKNOWN; line: -1, column: -1] (through reference chain: java.util.LinkedHashMap["scope"])
from https://docs.apigee.com/api-platform/security/oauth/working-scopes#codeexamples-defaultcase
{
...
"scope" : "A B C", ...
}