/uwap

UNINETT WebApp Park

Primary LanguageJavaScript

UNINETT WebApp Park

core.uwap.org

Alias /login /var/www/uwap/engine/login-core.php
Alias /simplesaml /var/www/uwap/simplesamlphp/www/

*.uwap.org

Alias /_/api /var/www/uwap/engine/api
Alias /_/js /var/www/uwap/engine/js
Alias /_/login /var/www/uwap/engine/login.php
Alias / /var/www/uwap/engine/engine.php/

The endpoints:

//api is used by the UWAP core API to communicate with the server with the same origin. //js is hosting of the Core javascript library (on same domain). May be this should be moved to common domain? /_/login endpoint to login the user, UWAP core is redirecting the user here. / engine/engin.php is processing each file and pushing it to the user.

An app runs at https://test.uwap.org/

Container HTML refers an js API:

<script type="text/javascript" src="/_/js/core.js"></script>

The script is located h ere: /var/www/uwap/engine/js

The script communicates with the endpoints under:

https://test.uwap.no/_/api/*

APIS:

For authentication, redirect to: /_/login with the return parameter.

For data requsts, AJAX to: /_/api/data.php?url=

For OAuth requests, AJAX to: /_/api/dataoauth.php?url=' If this returns status=redirect, then redirect the user.

The data APIs, is located here: /engine/api/*

Installation notes

Apache: enable mod_headers.