Oauth 2.0 add user sys id with access token while generating
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 12:37 AM
Hello Everyone,
In the response body I want to fetch user's sys_id as well along with access token, refresh token, scope, token type and expires in.
So, It would be helpful if you let me know how can I achieve this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 12:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 02:17 AM
sys id is needed as 3rd party application will not be knowing logged in users sys id so while generating token if we get users sys id in the response along with access token refresh token then for the front end team it will be helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 03:14 AM
Hi @Krishna J
There will only be one integration user to which you can easily know. I don't see any necessity of sending it in response, that too with access and refresh tokens.
Regards,
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 02:23 AM
For integration its going to be 1 user. So every request you make or send it will be by that 1 user. You obviously know the sys_id of that user then why sent it everytime with request ? ( May be the 3rd party has multiple requestors )
In this case you can pass the sys_id in the request body why in auth token ?
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....