karutaproject / karuta-frontend

End user interface for Karuta
Other
11 stars 16 forks source link

CAS not working #209

Closed laurent6 closed 10 months ago

laurent6 commented 3 years ago

Hello,

CAS configuration is invalid. I follow the installation procedure: https://www.eportfolium.com/cooperative/application/htm/cooperative.htm to configurat cas but I've 404 error. The return casUrl is not correct.

_init.js

var application_version = "2.0";
var application_date = "2020-04-09";
//----------------------------------
var appliname = 'karuta';
var karutaname = 'karuta'; // to share the same 'karuta-core' with multiple front-end
var karuta_url = '../../../' + karutaname;
var bckname = '';
var serverBCK = "../../../karuta-backend"+bckname; // fileserver backend
var serverBCK_API = "../../../karuta-backend"+bckname+"/rest/api";
var cas_url = "https://my_cas_url";

configKaruta.properties

casCreateAccount=y
casUrlValidation=https://my_cas_url/serviceValidate

image

image

We use 2.4.1 version to frontend. How correct this issue ?

nobry commented 3 years ago

I see that the redirection address is "/karuta/karuta-backend/{...}" when it should be "/karuta-backend/{...}" Is there a redirection done somewhere?

laurent6 commented 3 years ago

We haven't other redirect in tomcat.

nobry commented 3 years ago

When clicking on the "login from CAS" from the frontpage, check if the "service" parameter in the URL has the correct format "https://{your_server}/karuta-backend/rest/api/credential/login/cas"

If there's a "karuta" too much in front, check if "serverBCK_API" in _init.js has the default value "../../../karuta-backend"+bckname+"/rest/api"