def get_agent_id(self):
if self._django_user is not None:<EOL><INDENT>if self._use_user_id:<EOL><INDENT>identifier = self._django_user.id<EOL><DEDENT>else:<EOL><INDENT>identifier = self._django_user.get_username()<EOL><DEDENT>return Id(identifier=identifier,<EOL>namespace='<STR_LIT>',<EOL>authority='<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>return Id(identifier='<STR_LIT>',<EOL>namespace='<STR_LIT>',<EOL>authority='<STR_LIT>')<EOL><DEDENT>
Gets the ``Id`` of the ``Agent`` identified in this authentication credential.

        :return: the ``Agent Id``
        :rtype: ``osid.id.Id``

        *compliance: mandatory -- This method must be implemented.*
        *implementation notes*: The Agent should be determined at the
        time this credential is created.