Skip to content

Commit eb212a2

Browse files
committed
fix hash processing
1 parent 4cd1194 commit eb212a2

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

apps/model_catalog/src/ValidationFramework.jsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,6 @@ class ValidationFramework extends React.Component {
411411
});
412412

413413
const tokenPayload = jwtDecode(this.props.auth.token);
414-
console.log(tokenPayload);
415414
this.setState({currentUser: tokenPayload.preferred_username})
416415

417416
datastore
@@ -435,11 +434,9 @@ class ValidationFramework extends React.Component {
435434
});
436435

437436
if (window.location.hash) {
438-
439-
if (window.location.hash.includes("iss=")) {
440-
window.location.hash = window.location.hash.replace("iss=https%3A%2F%2Fiam.ebrains.eu%2Fauth%2Frealms%2Fhbp", "");
441-
}
442-
const param = window.location.hash.slice(1).replace("&", "");
437+
// at the moment, the IAM redirect is adding "=" to the end of the hash
438+
// so we strip it off.
439+
const param = window.location.hash.slice(1, -1);
443440

444441
if (param.length > 0) {
445442
let proceed = true;

0 commit comments

Comments
 (0)