openIddict This server only accepts HTTPS requests (openIddict h
生產(chǎn)環(huán)境部署abp api 項(xiàng)目,其中用戶登錄授權(quán)方面使用了openIddict 模塊
進(jìn)行登錄時(shí)使用發(fā)現(xiàn)獲取token的接口無法正常返回?cái)?shù)據(jù),接口返回有如下提示: This server only accepts HTTPS requests
大概的意思就是這個(gè)openIddict獲取token的請(qǐng)求必須時(shí)https的,但是奇怪的是我域名確實(shí)是https訪問的,只有nginx 配置反向代理時(shí)使用http。沒辦法只能去官網(wǎng)文檔找不找看了。
隨后我在Google上面找到了答案 https://github.com/openiddict/openiddict-core/issues/864?

解決方案:? https://github.com/openiddict/openiddict-core/issues/864#issuecomment-783432304
使用 `DisableTransportSecurityRequirement()`解除https限制
在.net core里面這樣配置
具體解析參考
?https://github.com/openiddict/openiddict-core/issues/864?
?https://github.com/openiddict/openiddict-core/issues/864#issuecomment-783432304
【openiddict】翻譯版本文檔]?https://www.aimzhi.cn/doc/openIddict
標(biāo)簽: