server
Server connection and authentication.
4 functions / 7 types
Index
| Function | Description |
|---|---|
| Authenticate | Authenticate the client using the given strategy. |
| GetUserDetails | |
| Logout | |
| SetUrl | Set the URL of the fdk server the client connects to. |
| Type | Description |
|---|---|
| AuthStrategy | The authentication strategy used by Authenticate. |
| AuthStrategyKind | How the application proves who it is. |
| Authenticate | Authenticate the client using the given strategy. |
| GetUserDetails | |
| GetUserDetailsResponse | |
| Logout | |
| SetUrl | Set the URL of the fdk server the client connects to. |
Authenticate
RPC
Authenticate(request: server.Authenticate) -> google.protobuf.EmptyAuthenticate the client using the given strategy.
The server URL must already be configured via SetServerUrl. Available strategies:
session-storage:keyis a browser session-storage key holding the access token. Only supported onwasm32.transparent:keyis ignored. Marks the application as authenticated without providing a token. Useful for integrations that inject the token some other way (e.g. cookies or service workers).
Both authentication and refresh go through this statement; the work of acquiring a token (e.g. via an OAuth2 flow) is expected to happen outside of the statement system.
Service method: spatialengine.v1.server.Server.Authenticate.
Returns google.protobuf.Empty.
strategy : server.AuthStrategy
The authentication strategy to use.
GetUserDetails
RPC
GetUserDetails(request: server.GetUserDetails) -> server.GetUserDetailsResponseService method: spatialengine.v1.server.Server.GetUserDetails.
Returns server.GetUserDetailsResponse.
Logout
RPC
Logout(request: server.Logout) -> google.protobuf.EmptyService method: spatialengine.v1.server.Server.Logout.
Returns google.protobuf.Empty.
SetUrl
RPC
SetUrl(request: server.SetUrl) -> google.protobuf.EmptySet the URL of the fdk server the client connects to.
Inserts a ServerUrl resource that the login flow reads when authenticating. This replaces
the per-environment URL helpers that previously selected the server at app startup.
Service method: spatialengine.v1.server.Server.SetUrl.
Returns google.protobuf.Empty.
url : string
The server URL, e.g. https://api.spatialdrive.io.
AuthStrategy
Message
The authentication strategy used by Authenticate.
kind : server.AuthStrategyKind
Which strategy to use, as an AuthStrategyKind i32 kind.
key : string
The session-storage key holding the access token (only for session-storage).
AuthStrategyKind
Enum
How the application proves who it is.
AUTH_STRATEGY_KIND_SESSION_STORAGE = 0
key is a browser session-storage key holding the access token. Only supported on
wasm32.
AUTH_STRATEGY_KIND_TRANSPARENT = 1
key is ignored. The application is marked authenticated without a token.
Authenticate
Message
Authenticate the client using the given strategy.
The server URL must already be configured via SetServerUrl. Available strategies:
session-storage:keyis a browser session-storage key holding the access token. Only supported onwasm32.transparent:keyis ignored. Marks the application as authenticated without providing a token. Useful for integrations that inject the token some other way (e.g. cookies or service workers).
Both authentication and refresh go through this statement; the work of acquiring a token (e.g. via an OAuth2 flow) is expected to happen outside of the statement system.
strategy : server.AuthStrategy
The authentication strategy to use.
GetUserDetails
Message
GetUserDetailsResponse
Message
value optional : string
Logout
Message
SetUrl
Message
Set the URL of the fdk server the client connects to.
Inserts a ServerUrl resource that the login flow reads when authenticating. This replaces
the per-environment URL helpers that previously selected the server at app startup.
url : string
The server URL, e.g. https://api.spatialdrive.io.