File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments