Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/config/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,15 @@ export async function validateRestApiAccess(httpClient, authManager) {
{ path: '/feeds', name: 'Feeds' }
];

// Get baseURL from httpClient for OAuth signature generation
const baseURL = httpClient.defaults.baseURL;

const results = [];
for (const endpoint of endpoints) {
try {
const headers = authManager.getAuthHeaders();
// Generate proper OAuth headers with full URL for signature
const fullUrl = `${baseURL}${endpoint.path}`;
const headers = authManager.getAuthHeaders('GET', fullUrl, { per_page: 1 });
Comment thread
coderabbitai[bot] marked this conversation as resolved.
await httpClient.get(endpoint.path, {
headers,
params: { per_page: 1 }
Expand Down
Loading