Broker login story - Pyosch/powertac-server GitHub Wiki

up

1. Register with server

We assume the following:

  1. broker knows the location of the web-app beforehand.
  2. broker has an account on the web-app with an unique user name and password (user management needs to be implemented)

2. The broker talks to a REST interface of the webapp

When the broker successfully logs in (at, e.g., /login), the web-app may return the following:

  1. If a competition (how is this competition determined?) is accepting brokers, the web-app returns the location to the server's JMS endpoint, a cryptographic tag to identify itself with the server, and a time interval during which the server will accept logins.
  2. If the competition is not accepting brokers (because it may not have been started yet), the web-app returns a time-interval after which the broker should check back by logging in again

3. Startup data

Startup data includes the items under 'startup data' under 'market-data-service' on the server structure page.

Tickets include #6, #7, #11, #116

⚠️ **GitHub.com Fallback** ⚠️