-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose raw_attributes on Profile (#204)
* On the API, we recently exposed raw_attributes, the original profile response we receive from the IdP. This update passes this data through the SDK. * Updates the SDK to 0.5.0
- Loading branch information
1 parent
ae5b6dd
commit 2d4e558
Showing
4 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ Object { | |
"Accept": "application/json, text/plain, */*", | ||
"Authorization": "Bearer sk_test_Sz3IQjepeSWaI4cMS4ms4sMuU", | ||
"Content-Type": "application/x-www-form-urlencoded;charset=utf-8", | ||
"User-Agent": "workos-node/0.4.1", | ||
"User-Agent": "workos-node/0.5.0", | ||
} | ||
`; | ||
|
||
|
@@ -29,5 +29,10 @@ Object { | |
"id": "prof_123", | ||
"idp_id": "123", | ||
"last_name": "bar", | ||
"raw_attributes": Object { | ||
"email": "[email protected]", | ||
"first_name": "foo", | ||
"last_name": "bar", | ||
}, | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,6 +94,11 @@ describe('SSO', () => { | |
email: '[email protected]', | ||
first_name: 'foo', | ||
last_name: 'bar', | ||
raw_attributes: { | ||
email: '[email protected]', | ||
first_name: 'foo', | ||
last_name: 'bar', | ||
}, | ||
}, | ||
}); | ||
|
||
|