Skip to Content.
Sympa Menu

cat-users - Re: [[cat-users]] API broken after upgrade of cat.eduroam.org to 2.0

cat-users AT lists.geant.org

Subject: The mailing list for users of the eduroam Configuration Assistant Tool (CAT)

List archive

Re: [[cat-users]] API broken after upgrade of cat.eduroam.org to 2.0


Chronological Thread  
  • From: Stefan Winter <address@concealed>
  • To: Zenon Mousmoulas <address@concealed>, Martin Božič <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [[cat-users]] API broken after upgrade of cat.eduroam.org to 2.0
  • Date: Fri, 5 Oct 2018 08:48:17 +0200

Hello,

> the admin api in 2.0 has changed> > For one thing the input is
> unconditionally json (rather than form data).
That's correct.

> I don't know if there's a proper doc published, but you can get an idea
> about the methods here:
>
> https://github.com/GEANT/CAT/blob/release_2_0/web/lib/admin/API.php#L72

The actual documentation is on the Wiki:

https://wiki.geant.org/display/H2eduroam/A+guide+to+eduroam+CAT+2.0+and+eduroam+Managed+IdP+for+National+Roaming+Operator+administrators#AguidetoeduroamCAT2.0andeduroamManagedIdPforNationalRoamingOperatoradministrators-UI-lessAutomatedManagement:theAdminAPI(2.0)

> The input looks like this (excerpt from an example previously posted by
> Stefan Winter to cat-devel list):
>
> {
> "ACTION": "NEWINST",
> "APIKEY": "foobar123",
> "PARAMETERS": [
> {
> "NAME": "general:instname",
> "LANG": "de",
> "VALUE": "Universit\u00e4t Logohausen 3"
> },
> [...]
> }
> }
>
> The output is also json (rather than the previous home-grown xml).

Again, Zenon is perfectly right here. It's all plain JSON now, and
attributes are either a pair with NAME/VALUE or a triplet with
NAME/LANG/VALUE for attributes which are languaguage-dependent.

Since you use Python and are already encoding in JSON internally, it
should be a quick and easy change to put this on the wire. Basically you
can simply throw away old unnecessary cruft like the "S123" grouping and
form attachments. Specifically, I suggest that you put the PEM of your
CA inline in the JSON construct rather than by ftp:// reference.

Since this is urgent for you, feel free to get in touch with me directly
off-list for any further questions.

Greetings,

Stefan Winter

--
Stefan WINTER
Ingenieur de Recherche
Fondation RESTENA - Réseau Téléinformatique de l'Education Nationale et
de la Recherche
2, avenue de l'Université
L-4365 Esch-sur-Alzette

Tel: +352 424409 1
Fax: +352 422473

PGP key updated to 4096 Bit RSA - I will encrypt all mails if the
recipient's key is known to me

http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xC0DE6A358A39DC66

Attachment: 0xC0DE6A358A39DC66.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature




Archive powered by MHonArc 2.6.19+.

Top of Page