Got authorization code to work