Corrected so original applicationId is passed in createAuthorizationCodeForIdentity call