Currently, setting the OAuth2 scopes to an empty map omits the field scopes from the flow object. However, according to this guide the scopes field should contain an empty object {} when the map is empty (which it MAY be according to the spec).
This PR fixes this issue so that the scopes field is always present even when empty.
Currently, setting the OAuth2 scopes to an empty map omits the field
scopes
from the flow object. However, according to this guide thescopes
field should contain an empty object{}
when the map is empty (which it MAY be according to the spec).This PR fixes this issue so that the
scopes
field is always present even when empty.