2017-10-05 61 views
0

爲IdentityServer4編寫我自己的IProfileService IMPL如何在GetProfileDataAsync中處理RequestedClaimTypes?

試圖弄清楚context.RequestedClaimTypes是如何操作的。

是否context.RequestedClaimTypes指示要返回的其他聲明(除了「SUB」)還是context.RequestedClaimTypes指示僅返回所請求的聲明並且不再聲明?

回答

1

RequestedClaimTypes是與客戶請求的範圍關聯的聲明類型的展開列表。

這就是客戶期望回來的 - 你實際返回的東西取決於你。