Sending Post Data in authentication requests

Options
Hi,

I've got my authentication server set up, but it really likes to deal with POST requests. I've figured out a hack to get around it, but it would be great if I could send post requests.

I understand that if I want to send posts I just need to use
AuthValues.SetAuthPostData(...);
Unfortunately, I have no idea what that will do in terms of formatting.

First, I need to set the format of the post request to x-www-form-urlencoded
Then I need to add some key value pairs.

Any suggestions about how to do this? I have no idea what this text should look like and couldn't find any documentation.

Thanks,

Steve

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @steveBetl,

    The POST payload is available for you to send whatever you want from the client: string or byte[] and then from your webserver you need to parse it properly. Photon Server just relays this as is.
    So you may choose to send JSON for instance which is convenient.
    This depends on what you want to do and what your web server/app supports and expects.