[PR #20943] [MERGED] Closes #20936: Add a REST API endpoint to validate authentication credentials #16093

Closed
opened 2025-12-30 00:25:45 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20943
Author: @jeremystretch
Created: 12/7/2025
Status: Merged
Merged: 12/7/2025
Merged by: @bctiemann

Base: featureHead: 20936-api-auth-check


📝 Commits (1)

  • ca43adf Closes #20936: Add a REST API endpoint to validate authentication credentials

📊 Changes

3 files changed (+28 additions, -1 deletions)

View changed files

📝 netbox/netbox/api/views.py (+14 -0)
📝 netbox/netbox/tests/test_api.py (+12 -0)
📝 netbox/netbox/urls.py (+2 -1)

📄 Description

Closes: #20936

Introduces AuthenticationCheckView at /api/authentication-check/ to return the user associated with the provided API token or session, if authentication succeeds.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/20943 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 12/7/2025 **Status:** ✅ Merged **Merged:** 12/7/2025 **Merged by:** [@bctiemann](https://github.com/bctiemann) **Base:** `feature` ← **Head:** `20936-api-auth-check` --- ### 📝 Commits (1) - [`ca43adf`](https://github.com/netbox-community/netbox/commit/ca43adf692ce72a8e86b97bfbd2d26c7caf85b99) Closes #20936: Add a REST API endpoint to validate authentication credentials ### 📊 Changes **3 files changed** (+28 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/api/views.py` (+14 -0) 📝 `netbox/netbox/tests/test_api.py` (+12 -0) 📝 `netbox/netbox/urls.py` (+2 -1) </details> ### 📄 Description ### Closes: #20936 Introduces AuthenticationCheckView at `/api/authentication-check/` to return the user associated with the provided API token or session, if authentication succeeds. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:25:45 +01:00
adam closed this issue 2025-12-30 00:25:45 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#16093