Last active
February 25, 2020 04:23
-
-
Save daisukenishino2/4f8d7ba38a3041acaf2d10cf13050bb9 to your computer and use it in GitHub Desktop.
汎用認証サイトのAuthorization Code Flowをキャプチャする。
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
ほげほげ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
キャプチャの方法
概要
以下に書いたような形で、
HttpClientの類の使い方 - マイクロソフト系技術情報 Wiki
HttpClientクラス > ポイント > デバッグ・プロシキを通す。
https://techinfoofmicrosofttech.osscons.jp/index.php?HttpClient%E3%81%AE%E9%A1%9E%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9#o2f9ed91
バックエンドWebAPIへのHTTPキャプチャができます。
汎用認証サイトの設定
以下のように変更すると、キャプチャを取得可能になります。
Helper.cs
https://github.com/OpenTouryoProject/MultiPurposeAuthSite/blob/develop/root/programs/CommonLibrary/Extensions/Sts/Helper.cs#L105
↓ ↓ ↓
appsettings.json
https://github.com/OpenTouryoProject/MultiPurposeAuthSite/blob/develop/root/programs/MultiPurposeAuthSiteCore/MultiPurposeAuthSiteCore/appsettings.json#L70
↓ ↓ ↓
※ Fiddlerの問題でhostsファイルでlocalhostを別名に変更する必要がある。