Skip to content

Commit df16bf4

Browse files
authored
Merge pull request #780 from ForgeRock/fix-header
fix(header): send-ping-sdk
2 parents b1546d7 + 1c154dd commit df16bf4

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

‎.changeset/crisp-papers-serve.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@forgerock/device-client': patch
3+
'@forgerock/sdk-utilities': patch
4+
---
5+
6+
fix the header to send ping-sdk instead of forgerock-sdk

‎packages/device-client/src/lib/services/index.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
2+
* Copyright (c) 2025 - 2026 Ping Identity Corporation. All rights reserved.
33
*
44
* This software may be modified and distributed under the terms
55
* of the MIT license. See the LICENSE file for details.
@@ -43,7 +43,7 @@ export const deviceService = ({ baseUrl, realmPath }: { baseUrl: string; realmPa
4343
prepareHeaders: (headers) => {
4444
headers.set('Content-Type', 'application/json');
4545
headers.set('Accept', 'application/json');
46-
headers.set('x-requested-with', 'forgerock-sdk');
46+
headers.set('x-requested-with', 'ping-sdk');
4747
headers.set('x-requested-platform', 'javascript');
4848

4949
return headers;
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
export const REQUESTED_WITH = 'forgerock-sdk' as const;
1+
/*
2+
* Copyright (c) 2025 - 2026 Ping Identity Corporation. All rights reserved.
3+
*
4+
* This software may be modified and distributed under the terms
5+
* of the MIT license. See the LICENSE file for details.
6+
*/
7+
export const REQUESTED_WITH = 'ping-sdk' as const;
28
export const X_REQUESTED_PLATFORM = 'javascript' as const;

0 commit comments

Comments
 (0)