Hi,
This might be an error in the getAuthorizationUrl, have you checked that all the parameters get filled out correctly and that nothing is null?
EDIT: If you can’t get this code to work I also found this for you to have a look at: [BEGINNER] Authentication for Java App