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

My Account logout issues ? #8408

Closed
Gopal-Gurram opened this issue Sep 7, 2023 · 13 comments
Closed

My Account logout issues ? #8408

Gopal-Gurram opened this issue Sep 7, 2023 · 13 comments
Labels
waiting on feedback Waiting for original opener to respond if bug is fixed

Comments

@Gopal-Gurram
Copy link

After signing in with my account not able to log out the my account.

getting below errors?

image

I am sharing my account env variables and auth0 callback URL and logout URL.

ACCOUNT_DATABASE_URL=postgresql://postgres:@host.docker.internal:7432/blockscout?ssl=false
ACCOUNT_POOL_SIZE=50
ACCOUNT_AUTH0_DOMAIN=................
ACCOUNT_AUTH0_CLIENT_ID=...................
ACCOUNT_AUTH0_CLIENT_SECRET=............
ACCOUNT_PUBLIC_TAGS_AIRTABLE_URL=
ACCOUNT_PUBLIC_TAGS_AIRTABLE_API_KEY=
ACCOUNT_SENDGRID_API_KEY=
ACCOUNT_SENDGRID_SENDER=
ACCOUNT_SENDGRID_TEMPLATE=
ACCOUNT_CLOAK_KEY=
ACCOUNT_ENABLED=true
ACCOUNT_REDIS_URL=redis://redis_db:6379

and

image

@vbaranov
Copy link
Member

vbaranov commented Sep 7, 2023

@Gopal-Gurram it should be:

http://127.0.0.1:4000/auth/logout

in the allowed logout URLs

@vbaranov vbaranov added the waiting on feedback Waiting for original opener to respond if bug is fixed label Sep 7, 2023
@Gopal-Gurram
Copy link
Author

still the same error and it was redirecting the below URL ,

https://dev-3c5uvx24zuwoigrb.us.auth0.com/v2/logout

@vbaranov
Copy link
Member

vbaranov commented Sep 7, 2023

Login works fine at the same time, right? Are you on the latest Blockscout version?

@Gopal-Gurram
Copy link
Author

yes login works fine and i have tried with the master branch and v5.2.1 beta

@vbaranov
Copy link
Member

vbaranov commented Sep 7, 2023

Apart from this change everything looks fine. Did you try to ask in Auth0 support?

@Gopal-Gurram
Copy link
Author

yes I asked in auth0 community and they said pass the URL like this returnTo=http://127.0.0.1:4000/auth/logout. but its not taking in allowed logout URLs.

@Gopal-Gurram
Copy link
Author

In the below URL:
https://dev-3c5uvx24zuwoigrb.us.auth0.com/v2/logout?client_id=G5Z25TkDUIfqVGuX0oyCTRfVs9ergzcN&returnTo=%3A%2F%2F%2Fauth%2Flogout

after I replace the returnTo=%3A%2F%2F%2Fauth%2Flogout to returnTo=http://127.0.0.1:4000/auth/logout
Logout is working @vbaranov
But the thing is how to stop encoding the logout URL?

@vbaranov
Copy link
Member

vbaranov commented Sep 8, 2023

@Gopal-Gurram try replacing 127.0.0.1 with localhost in the Auth0 dashboard.

@Gopal-Gurram
Copy link
Author

Gopal-Gurram commented Sep 8, 2023

I am trying with domain also not working @vbaranov
The issue coming from the returnTo url encoding ?

@vbaranov
Copy link
Member

vbaranov commented Sep 8, 2023

@Gopal-Gurram could you set BLOCKSCOUT_HOST=localhost_or_domain? Will this change what is in returnTo?

@Gopal-Gurram
Copy link
Author

Gopal-Gurram commented Sep 9, 2023

After I gave the BLOCKSCOUT_HOST=localhost, it was working fine and @vbaranov one more issue about
ACCOUNT_PUBLIC_TAGS_AIRTABLE_URL=https://api.airtable.com/v0/.../Public%20Tags
ACCOUNT_PUBLIC_TAGS_AIRTABLE_API_KEY=key...
airtable is not allowing to create api key and they are allowing to use public access tokens , Can we use the public access tokens instead of api key?

@SurenFTN
Copy link

Hello @Gopal-Gurram how you solved the issue with access tokens ?

@Gopal-Gurram
Copy link
Author

We have to use the machine to machine application in Auth0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting on feedback Waiting for original opener to respond if bug is fixed
Projects
None yet
Development

No branches or pull requests

3 participants