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

Session automatically expires after sign in #6954

Closed
ragulkanth opened this issue Feb 15, 2021 · 1 comment
Closed

Session automatically expires after sign in #6954

ragulkanth opened this issue Feb 15, 2021 · 1 comment
Labels
question A User question which should be discussed at mailing list

Comments

@ragulkanth
Copy link

ragulkanth commented Feb 15, 2021

Expected Behavior

A sign in

Actual Behavior

Automatically logged out immediately after login

I followed the installation process from the documentation

Request

HTTP/1.1 200 OK
Server: nginx/1.14.0 (Ubuntu)
Date: Mon, 15 Feb 2021 13:06:10 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Authorization, Cookie, Accept-Language, Origin
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Frame-Options: ALLOW-FROM HTTP://10.250.178.64/
Content-Language: en
Set-Cookie: csrftoken=G646z9NzvrQM0mPDNYdmXDHHInFos4mlIuJbPY2ju132s6PiUlC1mJ05NJrlLbVf; expires=Mon, 14 Feb 2022 13:06:09 GMT; Max-Age=31449600; Path=/; SameSite=Lax
Set-Cookie: messages=""; expires=Thu, 01 Jan 1970 00:00:00 GMT; Max-Age=0; Path=/; SameSite=Lax
Set-Cookie: sessionid=nnqpipnu61erxjjyjvbpierijxgsdl7e; expires=Mon, 01 Mar 2021 13:06:09 GMT; HttpOnly; Max-Age=1209600; Path=/; SameSite=Lax
Content-Encoding: gzip

Response before redirection

HTTP/1.1 302 Found
Server: nginx/1.14.0 (Ubuntu)
Date: Mon, 15 Feb 2021 13:06:09 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 0
Connection: keep-alive
Location: /
Vary: Authorization, Cookie, Accept-Language, Origin
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Frame-Options: ALLOW-FROM HTTP://10.250.178.64/
Content-Language: en
Access-Control-Allow-Origin: *
Set-Cookie: csrftoken=G646z9NzvrQM0mPDNYdmXDHHInFos4mlIuJbPY2ju132s6PiUlC1mJ05NJrlLbVf; expires=Mon, 14 Feb 2022 13:06:09 GMT; Max-Age=31449600; Path=/; SameSite=Lax
Set-Cookie: messages="37eab4ccf70ef6b82468de5ff64e323422adb941$[[\"__json_message\"\0540\05425\054\"Successfully signed in as ragulkanth.\"]]"; HttpOnly; Path=/; SameSite=Lax
Set-Cookie: sessionid=0tdd8g97oum2yxmsrgrpog33n04ume97; HttpOnly; Path=/; SameSite=Lax

Response after redirection

HTTP/1.1 200 OK
Server: nginx/1.14.0 (Ubuntu)
Date: Mon, 15 Feb 2021 13:06:10 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Authorization, Cookie, Accept-Language, Origin
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Frame-Options: ALLOW-FROM HTTP://10.250.178.64/
Content-Language: en
Set-Cookie: csrftoken=G646z9NzvrQM0mPDNYdmXDHHInFos4mlIuJbPY2ju132s6PiUlC1mJ05NJrlLbVf; expires=Mon, 14 Feb 2022 13:06:09 GMT; Max-Age=31449600; Path=/; SameSite=Lax
Set-Cookie: messages=""; expires=Thu, 01 Jan 1970 00:00:00 GMT; Max-Age=0; Path=/; SameSite=Lax
Set-Cookie: sessionid=nnqpipnu61erxjjyjvbpierijxgsdl7e; expires=Mon, 01 Mar 2021 13:06:09 GMT; HttpOnly; Max-Age=1209600; Path=/; SameSite=Lax
Content-Encoding: gzip

What am I missing in the process??

Specifications

  • GeoNode version: 3.x branch
  • Installation method (manual, GeoNode Docker, SPCGeoNode Docker): Manual
  • Platform: Ubuntu 20.04
  • Additional details:
@afabiani
Copy link
Member

@ragulkanth most probably you are missing OAUTH2 App configuration on your DB.

Did you ingested the initial data fixtures?

Otherwise please refer to the docs here in order to understand how to create a new one.

@t-book t-book added the question A User question which should be discussed at mailing list label Feb 18, 2021
@giohappy giohappy closed this as completed Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A User question which should be discussed at mailing list
Projects
None yet
Development

No branches or pull requests

4 participants