Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth Connection issue #296

Closed
khaledbk opened this issue Jan 23, 2022 · 9 comments
Closed

OAuth Connection issue #296

khaledbk opened this issue Jan 23, 2022 · 9 comments

Comments

@khaledbk
Copy link

Hi,
I was trying to run this container in a separate server, and finally everything works great!
After while i was trying to create an Application under /oauth_apps and i got my clientId to use with my carto react app, unfortunately, i had this problem :
Screenshot from 2022-01-23 02-51-27

I wsa trying to connect to my self hosted container for this purpose, but while using the official cartodb server, i do not have the same error, and i was able to connect successfully to my react app.
I had to change the credentials.apiBaseUrl oauth.domain oauth.audience oauth.authorizeEndPoint ...

"@auth0/auth0-react": "^1.8.0",
"@carto/react-api": "^1.1.0",
"react": "^17.0.2",

Thank You !

@borja-munoz
Copy link
Contributor

Hi Khaled,

Glad to hear you could connect.

Closing this issue.

Thanks!

@khaledbk
Copy link
Author

Hi Khaled,

Glad to hear you could connect.

Closing this issue.

Thanks!

I'm still trying ...

@borja-munoz
Copy link
Contributor

I'm sorry, I thought you had been able to connect.

Could you please share some information about your environment? (i.e. which CARTO platform version you are using, 2 or 3?, which CARTO for React template?)

Thanks

@khaledbk
Copy link
Author

khaledbk commented Jan 24, 2022

@borja-munoz , i'm currently using CARTO version 3 , i created my app using npx create-react-app my-app --template @carto/base-3

This is a list of my dependencies ,

"dependencies": {
    "@auth0/auth0-react": "^1.8.0",
    "@carto/react-api": "^1.1.0",
    "@carto/react-basemaps": "^1.1.0",
    "@carto/react-core": "^1.1.0",
    "@carto/react-redux": "^1.1.0",
    "@carto/react-ui": "^1.1.0",
    "@carto/react-widgets": "^1.1.0",
    "@carto/react-workers": "^1.1.0",
    "@deck.gl/carto": "^8.6.5",
    "@emotion/react": "^11.7.1",
    "@emotion/styled": "^11.6.0",
    "@formatjs/intl-getcanonicallocales": "^1.8.0",
    "@formatjs/intl-locale": "^2.4.42",
    "@formatjs/intl-numberformat": "^7.3.1",
    "@formatjs/intl-pluralrules": "^4.2.1",
    "@material-ui/core": "^4.12.3",
    "@material-ui/icons": "^4.11.2",
    "@material-ui/lab": "^4.0.0-alpha.60",
    "@mui/icons-material": "^5.2.5",
    "@mui/material": "^5.2.7",
    "@mui/x-data-grid": "^5.2.2",
    "@reduxjs/toolkit": "^1.7.1",
    "@testing-library/jest-dom": "^5.16.1",
    "@testing-library/react": "^12.1.2",
    "@testing-library/user-event": "^13.5.0",
    "@turf/bbox-polygon": "^6.5.0",
    "@turf/boolean-intersects": "^6.5.0",
    "apexcharts": "^3.32.1",
    "deck.gl": "^8.6.5",
    "deepmerge": "^4.2.2",
    "distinct-colors": "^3.0.0",
    "echarts": "^5.2.2",
    "echarts-for-react": "^3.0.2",
    "eslint-config-prettier": "^8.3.0",
    "eslint-plugin-prettier": "^3.4.1",
    "history": "^5.2.0",
    "husky": "^7.0.4",
    "hygen": "^6.1.0",
    "lint-staged": "^11.2.6",
    "lodash": "^4.17.21",
    "prettier": "^2.5.1",
    "react": "^17.0.2",
    "react-apexcharts": "^1.3.9",
    "react-app-polyfill": "^2.0.0",
    "react-app-rewired": "^2.1.11",
    "react-dom": "^17.0.2",
    "react-is": "^17.0.2",
    "react-map-gl": "^5.3.18",
    "react-redux": "^7.2.6",
    "react-router-dom": "^6.2.1",
    "react-scripts": "^4.0.3"
  },```

Thank you 

@borja-munoz
Copy link
Contributor

Thanks, and when you refer to your self-hosted container, does it mean you are using a self-hosted version of CARTO? If yes, could you please confirm the version?

@borja-munoz borja-munoz reopened this Jan 24, 2022
@khaledbk
Copy link
Author

khaledbk commented Jan 24, 2022

currently i'm using this image https://hub.docker.com/r/sverhoeven/cartodb/ , witch use the latest cartodb version , it builds the cartodb instance using the master branch of the github.com/CartoDB/cartodb.git witch means i think the v4.45.0

@borja-munoz
Copy link
Contributor

This image is using version 2 of the CARTO platform. You cannot use the base-3 template because it is designed to work with CARTO 3. You could try to use one of the templates for CARTO 2 but we cannot guarantee it is going to work because we have not tested them against this particular image.

@khaledbk
Copy link
Author

thank you for your response i will try it now

@alasarr
Copy link
Contributor

alasarr commented Oct 22, 2022

Closing this. Feel free to reopen @khaledbk if the issue is still there

@alasarr alasarr closed this as completed Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants