metaregistrar / php-epp-client

Object-oriented PHP EPP Client
https://www.metaregistrar.com/docs/
MIT License
214 stars 156 forks source link

euridEpp Auth Code #111

Closed fwelvering closed 6 years ago

fwelvering commented 6 years ago

When requesting the domain info for a .eu domain the authcode is not requested. Please advise how to solve this, i use the euridEppDomainInfoRequest.

The request does not add the auth-info extension: (for some reason the code thing is not working)

`

XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX 1.0 en urn:ietf:params:xml:ns:domain-1.0 urn:ietf:params:xml:ns:contact-1.0 urn:ietf:params:xml:ns:secDNS-1.1 http://www.eurid.eu/xml/epp/domain-ext-2.1 http://www.eurid.eu/xml/epp/authInfo-1.1
<clTRID>5a0c31e8376d6</clTRID>

<info>
  <domain:info>
    <domain:name>*thedomain*.eu</domain:name>
  </domain:info>
</info>
<clTRID>5a0c31e83d552</clTRID>

`

metaregistrar commented 6 years ago

We will look into this issue and solve it as soon as possible.

metaregistrar commented 6 years ago

Hello,

I have looked into this issue, and with the latest version, if i use the euridEppInfoDomainRequest, the extension is added properly. Please make sure to use the euridEppConnection with the command parent::useExtension('authInfo-1.1');

  <command>
    <info>
      <domain:info>
        <domain:name>adfdefwerg.eu</domain:name>
      </domain:info>
    </info>
    <extension>
      <authInfo:info xmlns:authInfo="http://www.eurid.eu/xml/epp/authInfo-1.1">
        <authInfo:request></authInfo:request>
      </authInfo:info>
    </extension>
    <clTRID>5a1586072d458</clTRID>
  </command>
fwelvering commented 6 years ago

So i found the problem, i did not use the euridEppInfoDomain request. I was in the assumption this would happen automatically when using the eurid connection.

Now the extensions gives me an error, but i will try to find a solution about this first.

Error 2001: Command syntax error (line:2 column:444 cvc-complex-type.2.4.b: The content of element 'authInfo:info' is not complete. One of '{"http://www.eurid.eu/xml/epp/authInfo-1.1":request, "http://www.eurid.eu/xml/epp/authInfo-1.1":cancel}' is expected.) (2001)