#@Iain sorry if i'm asking too much, but
1 messages · Page 1 of 1 (latest)
A server can authenticate by either being hosted on a Multiplay server (https://docs.unity.com/ugs/manual/game-server-hosting/manual/welcome) or by using a service account.
The access token obtained from either of those operations can be used with cloud save or economy to perform operations as a server.
The Unity SDKs for those features do not support that so you need to do your web requests manually for these at the moment.
thanks, so if i modified players cloud save data via the REST API, and this call was from from a Multiplay Server it will be automatically authenticated and approved ?
You need to include the access token in the REST API request to cloud-save and economy.
You can obtain the access token by using the ServerAuthenticationService. This is only available if you using the Unity Server build target and are using authentication v3.0.0+
You should have access to ServerAuthenticationService.Instance.SignInWithServiceAccountAsync & ServerAuthenticationService.Instance.SignInFromServerAsync.
SignInFromServerAsync can be used from a Multiplay Server.
i'm using Authentication v3.1.0
butServerAuthenticationService doesn't exist.
are you sure it's the right name ?
switched the build to Dedicated Server (Linux) and it's still not available
Are you on the server build target?
namespace: using Unity.Services.Authentication.Server;
yes
brother, this thing doesn't exist.
Do you see this in your packages in your unity project explorer?
That assembly is enabled when either UNITY_SERVER or ENABLE_UCS_SERVER is set.
I'm not sure why it's not enabled for you.
You could try adding ENABLE_UCS_SERVER in your project scripting define symbols
i did it in a different way AND IT FINALLY WORKED, now i know how i can use REST API or whatever it's called
thanks for trying to help tho @astral quiver, you're a nice guy 
i used this script (by Code Monkey) to make it easier when i make a WebRequest