Server returns 403 during Authorization Code Flow

Have you tried a HttpsUrlConnection object instead of just Http?