Added setting identity_type to the sample code. GitHub #169.
Merge branch 'working' into dev