Supporting authorize-then-authenticate for wi-fi access based on an electronic identity infrastructure