hi sorry can y'all clear my domain setting for my ...
# ask-a-descoper
c
hi sorry can y'all clear my domain setting for my development project
s
What you mean ? Which value do you want to place there ?
Looping in @salmon-night-88354
c
yesterday omer fixed our issue by setting our domain to empty? instead of api.descope.com
there is a bug on the ui that on save it sets our domain to the wrong value
s
That bug was fixed earlier today, can you check now ?
c
I just broke it 5 min ago 😞
I thought it would be safe to update the session time
but nope
s
Can you explain the steps you took ? What you expected you value ?
@famous-mouse-8066 looping you in too
c
yeah so i dropped our session time to 3 min for our dev environment to debugging a session bug we have. then pressed save now our tokens have the Domain=api.descope.com
our expected value is our tokens should have no domain
the browser will automatically set the domain if none is set
s
if you switch to body based tokens, does it solve issue ?
c
not without extensive changes to our code base
s
I mean switch only for a min save and back to cookie
c
here is our request. notice the domain
Copy code
curl '<https://console.descope.com/console/v1/project>' \
  -X 'PUT' \
  -H 'authority: <http://console.descope.com|console.descope.com>' \
  -H 'accept: application/json, text/plain, */*' \
  -H 'accept-language: en-US,en;q=0.9' \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -H 'cookie: osano_consentmanager_uuid=84821621-8787-48d6-93d4-261238628c27; osano_consentmanager=qhqK9wLvAW8MqmRD00T0EIf9oMrnQJzYfj4R00cit0BX5bIorgikwkM6LOCfPScPa_3-tI9psyNcUbaQhVD2bRShjEPjI91C3kkswC8Cv8DDZDStGa65cQwmthOCIpxKYVa8dB4VcNLe2QwMyL5noMeLGk4qjxyMVhB6JAaq_lTt2xQRsb6DhtYXwJnVLnWLkU34GXUu6bEVWj9V1721h_HA6xr0KUdfg-wWsd7zaBjJy-XxEJdJ2YFiY0WH_GDbx57BNuettApIRXJxDVqjbOC-cIUMFxKaCtpHLA==; _gcl_au=1.1.670803015.1685135586; _rdt_uuid=1685135586492.4aaeb324-9c03-45b8-86b8-a0fc71c5d356; _fbp=fb.1.1685135586594.1228965838; _lfa=LF1.1.4afeab613dec0a8e.1685135586644; hubspotutk=7a63d6d26e086d742630b50b16f8873b; ajs_anonymous_id=0d9fca66-3b7d-4314-88fe-db1212b306e3; ajs_user_id=U2Pt29u9juFyUyFOm3wOnPAr2SvF; fpestid=lht6o-oMKR_DIrvQq6AbiIXS6fzMo9rWyGJQHN4tMcfsV15SId8akH-s0QCJUyaghC73rQ; _ga=GA1.1.1576694978.1685135586; _gcl_aw=GCL.1687310219.Cj0KCQjwnMWkBhDLARIsAHBOftoSdl9-ZkNdJue36-vZGp41KGgDn4i-gLrh4qKRzBNc4Hm6aj1SHDcaAlupEALw_wcB; _d_csrf=MTY4NzgwMTk0M3xJbTVHVWpCSFRHWm9RMEoxUm0xbFRHdFlkMVp2U0VONlIzRTFhRzVET1d0NVJsbFRTRFowUjJaTWJFazlJZ289fMZyGnX5JN9jKkiKy8WaFTxLBQfK7gtTNU9Fjzc5rhni; 
  -H 'origin: <https://app.descope.com>' \
  -H 'pragma: no-cache' \
  -H 'referer: <https://app.descope.com/>' \
  -H 'sec-ch-ua: "Not.A/Brand";v="8", "Chromium";v="114"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "Linux"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: same-site' \
  -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36' \
  -H 'x-csrf-token: N3OiKOE1eR5Dddz/uEhXzI0bo2fK4vryPTr8LhxFaOSrJ9YwVtRxBcbsPhvnTT/Qod0I/63pI8AovnvEzdpGtg==' \
  -H 'x-current-company: C2Pt2A3nwbRXdnwDz7DygNLm2i5O' \
  -H 'x-current-project: P2QcDkNlTHZlboLC1WwKSGpPGrsu' \
  --data-raw $'{"projectId":"","projectName":"Dopt (Dev)","refreshTokenExpiration":3,"refreshTokenExpirationUnit":"weeks","tokenResponseMethod":"cookie","domain":"<http://api.descope.com|api.descope.com>","archType":"multiTenant","projectSelfProvisioning":true,"inviteURL":"<http://localhost:8080/login>","id":"S2QcDkR2RoL5K1CBEHvnKCUtDZgY","version":144,"stepupTokenExpiration":3,"stepupTokenExpirationUnit":"minutes","sessionTokenExpiration":4,"sessionTokenExpirationUnit":"minutes","cookiePolicy":4,"appUrl":"<http://app.dopt.com>","customDomainID":"f453bfda-4e43-4bb1-b41d-44d2be525791","inviteTemplates":[{"emailSubject":"You have been invited to {{projectName}}","emailBody":"<b>You\'re invited to join {{projectName}}</b>\\n<br/>\\nClick on the link below to start your journey:\\n<br/>\\n<a href=\\"{{inviteUrl}}\\">{{inviteUrl}}</a>","name":"System","id":"System"}],"rotateJwt":false}' \
  --compressed ;
okay let me try that
yeah it didn't work
because the domain is always being set on the put call to the wrong domain
okay i'm going rouge i'm going to make my own the put request without the domain
s
ok, let me check about fix
c
nope didn't work even with no domain in the put it sets the wrong value... hmmm i wonder about localhost...
s
I see we can push a fix, but will take like ~1 hour is that ok ?
c
yes thank you!
s
@colossal-appointment-48082 can you try again now ?
it will show
<http://api.descope.com|api.descope.com>
in UI after save but in cookie you should see empty cookie domain
c
okay let me try!
wooo
it works thanks
👍 1
s
👍
sorry about confusion before
c
no worries thank you for the help!