coreui / coreui-free-react-admin-template

Open source admin template based on Bootstrap 5 and React.js
https://coreui.io/product/free-react-admin-template/
MIT License
4.54k stars 2.26k forks source link

Autho integration with core ui appending wrong url. Same working fine with normal react app. #385

Closed prateekeshwar-round closed 2 years ago

prateekeshwar-round commented 2 years ago

-Operating system - Mac OS X: 11.6.4 -Browser and version - Chrome and 103.0.5060.53

Bug while integrating https://github.com/auth0/auth0-react/ when i use loginWithRedirect or withAuthenticationRequired with coreui it redirects to wrong url and append string in between url.

Error - DOMException: Failed to execute 'assign' on 'Location': 'https://"devcisuyj1n.us.auth0.com";/authorizeaudience=https%3A%2F%2Fdevcisuyj1n.us.auth0.com%2Fapi%2Fv2%2F&client_id=%22nqQCburNgPKteVYzwVn8bbRnGAfwFLLA%22%3B&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2F&scope=openid%20profile%20email&response_type=code&response_mode=query&state=clpNZlRBMmdLT2c1S0dZQVpHSDlOM35lQ3Zxcml5b1lDMjZ3TTFnWlVzeA%3D%3D&nonce=UDJZSGZkLVdsSDVQNHJucmZPQ2ZBRWtkNm5MSVpIYms1NGUyTThDVGVYTg%3D%3D&code_challenge=W14w6v_8gq3t9EboFfl1LpxpsIcNcyqYa_QhKncuS3s&code_challenge_method=S256&auth0Client=eyJuYW1lIjoiYXV0aDAtcmVhY3QiLCJ2ZXJzaW9uIjoiMS4xMC4yIn0%3D' is not a valid URL.

coreui and react versions

"@auth0/auth0-react": "^1.10.2", "@coreui/chartjs": "^3.0.0", "@coreui/coreui": "^4.1.0", "@coreui/icons": "^2.1.0", "@coreui/icons-react": "^2.0.0", "@coreui/react": "^4.1.0", "@coreui/react-chartjs": "^2.0.0", "@coreui/utils": "^1.3.1", "@types/node": "^17.0.21", "@types/react": "^17.0.39", "@types/react-dom": "^17.0.11", "prop-types": "^15.7.2", "react": "^17.0.2", "react-admin": "^3.19.10", "react-app-polyfill": "^2.0.0", "react-dom": "^17.0.2", "react-grid-system": "^8.0.1", "react-moment": "^1.1.1", "react-redux": "^7.2.6", "react-router-dom": "^5.3.1", "react-toastify": "^8.2.0", "react-transition-group": "^4.4.2", "redux": "4.1.2",

    Thanks for any help in advance
github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions