Skip to content

TimoBellartz/OCD-Web-Client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCD-Web-Client

This repository contains the code of the web client for the OCD service at https://github.com/rwth-acis/REST-OCD-Services

Quick Set-Up Guide

Client Configuration at Learning Layers

To set up the Learning layers OIDC login, either use an existing Learning Layers client or register your own at https://api.learning-layers.eu/auth/realms/main/account/ (You'll need a learning layers Account). The client at learning Layers has to have the following configurations:

  • The web clients login page has to be mentioned as a Redirect URI
  • The Access Type should be public and you should use Implicit Flow
  • You need to have your clients' origin, e.g. http://localhost:8090, and https://api.learning-layers.eu/* as an allowed Web Origin (Lazy People can just use * to allow any). Keep in mind that it needs to be the exact origin, an extra / may for example lead to a CORS policy block.

Adjusting the Files

You will then have to change the data-clientid field to your client id from Learning Layers and the data-redirecturi field to your web clients address. This has to be done in both.

  • login.html
  • JS/contentHandler.js

Finally, change the values of baseUrl to the services address in the following files so that requests are addressed to it:

  • JS/requestHandler.js
  • JS/simulation/requestHandler.js
  • JS/simulation/jsonRequestHandler.js

Finally, dont forget to run npm install to get all the needed packages.

Now, the web client should be able to communicate with the OCD service.

About

This repository contains the code of the Web client for the OCD service.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 75.1%
  • HTML 24.4%
  • CSS 0.5%