Giter Club home page Giter Club logo

Comments (7)

CharkiAbdelillah avatar CharkiAbdelillah commented on May 23, 2024

@kirito41dd hey
pls are you using Hoppscotch as a self-Host?

from hoppscotch.

kirito41dd avatar kirito41dd commented on May 23, 2024

@CharkiAbdelillah yes,I use the docker all-in-one method in the official documentation to deploy.

from hoppscotch.

CharkiAbdelillah avatar CharkiAbdelillah commented on May 23, 2024

@kirito41dd i use the same method but still facing a problem in the admin UI can you help me pls?

from hoppscotch.

kirito41dd avatar kirito41dd commented on May 23, 2024

@CharkiAbdelillah

  1. I used config ENABLE_SUBPATH_BASED_ACCESS=true, and some related configuration changes
  2. I changed the code for http env
--- a/packages/hoppscotch-backend/src/auth/helper.ts
+++ b/packages/hoppscotch-backend/src/auth/helper.ts
@@ -62,13 +62,13 @@ export const authCookieHandler = (

   res.cookie(AuthTokenType.ACCESS_TOKEN, authTokens.access_token, {
     httpOnly: true,
-    secure: true,
+    secure: false,
     sameSite: 'lax',
     maxAge: accessTokenValidity,
   });
   res.cookie(AuthTokenType.REFRESH_TOKEN, authTokens.refresh_token, {
     httpOnly: true,
-    secure: true,
+    secure: false,
     sameSite: 'lax',
     maxAge: refreshTokenValidity,
   });

That's all

from hoppscotch.

CharkiAbdelillah avatar CharkiAbdelillah commented on May 23, 2024

thanks @kirito41dd for your reply
but even i did secure: false, when im trying to login to admin dashboard through github it redirects me to the same page of login!

from hoppscotch.

CharkiAbdelillah avatar CharkiAbdelillah commented on May 23, 2024

@kirito41dd By the way im working locally

from hoppscotch.

kirito41dd avatar kirito41dd commented on May 23, 2024

@CharkiAbdelillah Debug the oauth process, check 302 location is right.

It's OT to discuss this topic here.

May be you can find help in Discussions

from hoppscotch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.