Return the authentication body.

def parse_reqtype(self):
        """Return the authentication body."""

        if self.job_args['os_auth_version'] == 'v1.0':
            return dict()
        else:
            setup = {
                'username': self.job_args.get('os_user')
            }

            # Check if any prefix items are set. A prefix should be a
            #  dictionary with keys matching the os_* credential type.
            prefixes = self.job_args.get('os_prefix')

            if self.job_args.get('os_token') is not None:
                auth_body = {
                    'auth': {
                        'token': {
                            'id': self.job_args.get('os_token')
                        }
                    }
                }
                if not self.job_args.get('os_tenant'):
                    raise exceptions.AuthenticationProblem(
                        'To use token auth you must specify the tenant id. Set'
                        ' the tenant ID with [ --os-tenant ]'
                    )
            elif self.job_args.get('os_password') is not None:
                setup['password'] = self.job_args.get('os_password')
                if prefixes:
                    prefix = prefixes.get('os_password')
                    if not prefix:
                        raise NotImplementedError(
                            'the `password` method is not implemented for this'
                            ' auth plugin'
                        )
                else:
                    prefix = 'passwordCredentials'
                auth_body = {
                    'auth': {
                        prefix: setup
                    }
                }
            elif self.job_args.get('os_apikey') is not None:
                setup['apiKey'] = self.job_args.get('os_apikey')
                if prefixes:
                    prefix = prefixes.get('os_apikey')
                    if not prefix:
                        raise NotImplementedError(
                            'the `apikey` method is not implemented for this'
                            ' auth plugin'
                        )
                else:
                    prefix = 'apiKeyCredentials'
                auth_body = {
                    'auth': {
                        prefix: setup
                    }
                }
            else:
                raise exceptions.AuthenticationProblem(
                    'No Password, APIKey, or Token Specified'
                )

            if self.job_args.get('os_tenant'):
                auth = auth_body['auth']
                auth['tenantName'] = self.job_args.get('os_tenant')

            LOG.debug('AUTH Request body: [ %s ]', auth_body)
            return auth_body