Auth Server Use Case: Registring a server

From Peragro Tempus Wiki

Jump to: navigation, search

Contents

Precondition

  • Client must be logged in.

Main Flow

  1. Client sends a register request to auth server
  2. Auth server sends a register request with a server id to the game server
  3. Game server response with a randomly generated password
  4. Auth server creates a server account with the id and password
  5. Auth server sends response to client and game server.

Now the game server can be configured, the game server account is owned by its creator.

Alternative Flows

Server not reachable

  1. Client sends a register request to auth server
  2. Auth server sends a register request with a server id to the game server
  3. Auth server sends error message to client

Open questions

How does the game server know which user may register it?

//TODO

Security considerations

Password exposure

The password exchange between auth server and game server can be intercepted.

Network Messages

Main Flow

Test Cases

Main flow test

Client sends a RegisterServerRequestMessage with valid server address

Expected result
Auth server gets added to the list

Invalid server address

Client sends a RegisterServerRequestMessage with a wrong server address

Expected result
Auth server sends error message to client.