fix managed_pipeline_mode and identity_type

fix managed_pipeline_mode to take int instead of string literal
added support to change identity_type