Skip to content

Commit

Permalink
fix target so it matches dspace7 (#175)
Browse files Browse the repository at this point in the history
repoPath already contains hostname and port.
use authn/shibboleth instead of shibboleth-login
  • Loading branch information
kosarko authored May 12, 2023
1 parent 47c22a3 commit 4af4fad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/aai/aai_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jQuery(document).ready(
if (instance.repoPath.charAt(instance.repoPath.length - 1) !== '/') {
instance.repoPath = instance.repoPath + '/';
}
instance.target = instance.host + instance.port + instance.repoPath;
instance.target = instance.repoPath;

//In order to use the discojuice store (improve score of used IDPs)
//Works only with "verified" SPs - ie. ufal-point, displays error on ufal-point-dev
Expand All @@ -34,7 +34,8 @@ jQuery(document).ready(
'<p style="margin: 5px; color: #607890; text-decoration: underline;"><a href="' + instance.target + 'forgot">Forgot your password?</a></p>' +
'<p style="" ><input type="submit" style="margin: 20px 2px" name="submit" value="Sign in" /></p>' +
'</form>';
instance.target = instance.target + "shibboleth-login";
// XXX there should be a better way then hardcoding this
instance.target = instance.target + "authn/shibboleth";
return instance;
})();
if (!("aai" in window)) {
Expand Down

0 comments on commit 4af4fad

Please sign in to comment.