define getAuthorizeUrl method in class