Back to ziggeo.com

How can I create a server-side auth token?

You can create server-side auth tokens as follows, using e.g. Ruby:

@ziggeo = Ziggeo.new('APP_TOKEN', 'PRIVATE_KEY', 'ENCRYPTION_KEY')
@grants = {
	create: {session_owned: true},
	read: {session_owned: true},
	update: {session_owned: true},
	destroy: {session_owned: true}
}
@auth_token = @ziggeo.authtokens.create(grants: @grants.to_json)
 
Have more questions? Submit a request

Comments