Hi Hiren Bhut
I got the same error and by making few configuration changes you can get rid of this problem. go the authsources.php page in your simplesaml/config/ directory and make a change as per you want
In authsource.php
'admin:Admin123$' => array(
'uid' => array('admin'),
'eduPersonAffiliation' => array('member', 'admin'),
),
),
that bold text should be mapped in saml configuration
SAML username mapping: | eduPersonAffiliation | SAML attribute that is mapped to Moodle username - this defaults to eduPersonPrincipalName |
SAML username mapping: eduPersonAffiliation
in instead of uid=username you have to change eduPersonAffiliation and then check whether you receive it again