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

UserInfo Endpoint not Accessible without Cookie #12925

Open
ridoo opened this issue Feb 19, 2025 · 0 comments
Open

UserInfo Endpoint not Accessible without Cookie #12925

ridoo opened this issue Feb 19, 2025 · 0 comments

Comments

@ridoo
Copy link
Contributor

ridoo commented Feb 19, 2025

Expected Behavior

Accessing /api/o/v4/userinfo via Bearer token does work.

Actual Behavior

Currently, a 401 is returned when no Cookie is sent along the request.

Steps to Reproduce the Problem

  1. Obtain an access token
  2. Make a curl request with Bearer token
  3. See 401 returned

Specifications

  • GeoNode version: 4.4.x (but 5.x might be affected as well)
  • Installation type (vanilla, geonode-project):
  • Installation method (manual, docker):
  • Platform:
  • Additional details: See here, the user is directly read from request:

@csrf_exempt
def user_info(request):
user = request.user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant