<p>I'm trying to authenticate a user against a (or any) PHP platform (Drupal, Symfony, Laravel,..) by having the user connect with their wallet (Eternl, Nami, ...).</p>
<p>As far as I understand, the following things need to happen:</p>
<ul>
<li>Backend provides a nonce or unique string to the client</li>
<li>Client signs a message containing the string with their wallet</li>
<li>Client sends the signature back to the server</li>
<li>Server deserializes the signature and checks if the signature is valid</li>
<li>Server issues a JWT token (or other means of authentication), the client can use in later requests</li>
</ul>
<p>There is a good example of how to do this using NodeJs and javascript (<a href="https://github.com/pyropy/web3-cardano-token" rel="nofollow noreferrer">https://github.com/pyropy/web3-cardano-token</a>). However, I can't seem to find anything that would enable me to do the same using PHP.</p>
<p>Any help would be greatly appreciated.
Thanks alot!</p>
<p><strong>Edit</strong>: Taking matters into my own hands. Currently porting <a href="https://github.com/StricaHQ/cip08" rel="nofollow noreferrer">https://github.com/StricaHQ/cip08</a> to a php library. Halfway there. Will report back when I have it in a public repo.</p>

CC BY-SA 4.0
2022-07-31T19:38:12.890Z
DId you ever get round to this?
Ian
CC BY-SA 4.0
2024-06-04T07:47:13.743Z
Any update on this?
Falcon Stakepool
<cardano-serialization-lib>
Cardano serialization lib for PHP
# Cardano serialization lib for PHP

(Asked by: username_0 on 2022-04-22)

I'm trying to authenticate a user against a (or any) PHP platform (Drupal, Symfony, Laravel,..) by having the user connect with their wallet (Eternl, Nami, ...).

As far as I understand, the following things need to happen:

* Backend provides a nonce or unique string to the client
* Client signs a message containing the string with their wallet
* Client sends the signature back to the server
* Server deserializes the signature and checks if the signature is valid
* Server issues a JWT token (or other means of authentication), the client can use in later requests

There is a good example of how to do this using NodeJs and javascript (<https://github.com/pyropy/web3-cardano-token>). However, I can't seem to find anything that would enable me to do the same using PHP.

Any help would be greatly appreciated.
Thanks alot!

**Edit**: Taking matters into my own hands. Currently porting <https://github.com/StricaHQ/cip08> to a php library. Halfway there. Will report back when I have it in a public repo.

**Tags:** cardano-serialization-lib
> **Comments:**
> **username_1**: DId you ever get round to this?  
> **username_2**: Any update on this?  

---

## 0 answers

