我在
ALTER PROC [dbo].[Friends_SelectAllV2]
AS
/* --- Test Proc ------
Execute dbo.Friends_SelectAllV2
*/
BEGIN
Select f.Id
,f.UserId
,f.DateAdded
,f.DateModified
,f.Title
,f.Bio
,f.Summary
,f.Headline
,f.Slug
,f.StatusId
,Skills = ( SELECT s.Id,
s.Name
From dbo.Skills as s inner join dbo.FriendSkills fs
on s.Id = fs.SkillId
Where f.Id = fs.FriendId
FOR JSON AUTO
),
PrimaryImage = (SELECT i.Id,
i.EntityId,
i.ImageTypeId,
i.ImageUrl
From dbo.Friends f left join dbo.Images as i
on f.PrimaryImage = i.Id
Where f.PrimaryImage = i.Id
FOR JSON PATH, WITHOUT_ARRAY_WRAPPER
)
END
中使用 Okta SSO 用户身份验证。身份验证后,它会重定向到 Amazon 负载均衡器,并且前端 URL 会加载到浏览器中。要获取用户数据,我需要获取传入的代码:
https://example.com/oauth2/idpresponse?code=xxx
可以在浏览器开发者控制台的网络选项卡中看到此 URL 以及其他 URL。有什么办法可以访问通过这个 URL 传递的代码吗?
我在前端使用 reactjs,后端使用 django-rest-framework。