Added support for some authentication mappings scenarios

This commit solves issues: #133, #132, #113