Added setting identity_type to the sample code. GitHub #169.