Documentation

The arguments that you can use while creating the authorization tokens and their structure are explained on our Arguments page, so we suggest checking it out first if you have not done so before.

You can create 2 different types of authorization tokens.

  1. Client-side authorization tokens
  2. Server-side authorization tokens

Creation of client-side authorization tokens

Client-side tokens are tokens that you have created without communicating with our servers about the same. They are still created in a way that allows us to know that you have created them and use them.

They are perfect for setups where every second counts and you want to spend it doing something else instead of communicating with our servers at that time.

They are created with our Server Side SDKs

Example call would be:

$token = $ziggeo->auth()->generate($arguments = array());

v1 Embedding using the same token would look like so:

<ziggeo ziggeo-client_auth="<?php echo $token; ?>"></ziggeo>

v2 Embedding using the same token would look like so:

<ziggeorecorder ziggeo-client-auth="<?php echo $token; ?>"></ziggeorecorder>
  • It is good to mention that the authorization tokens can be added to both player and recorder, so the above is just the example, whereas you would be able to use the same with ziggeoplayer just the same.

Creation of server-side authorization tokens

Server side tokens are created with the communication with our servers. That way our servers are aware of your authorization tokens right away.

They are also created with the Server Side SDKs

Example call would be:

$token = $ziggeo->authtokens()->create($arguments = array())

v1 Embedding using the same token would look like so:

<ziggeo ziggeo-server_auth="<?php echo $token; ?>"></ziggeo>

v2 Embedding using the same token would look like so:

<ziggeorecorder ziggeo-server-auth="<?php echo $token; ?>"></ziggeorecorder>
  • It is good to mention that the authorization tokens can be added to both player and recorder, so the above is just the example, whereas you would be able to use the same with ziggeoplayer just the same.

  • If you are not familiar with differences between v1 and v2 embeddings we suggest checking out our JavaScript SDK that will show you more.

Want more on authorization tokens? Check out our examples section for examples you can use.

We also recommend checking out our Authorization Tokens sandbox where you can play around with the setup as well. It can be found here.