本文介紹了ASP.NET 網頁按請求在 Azure AD 中進行身份驗證的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
限時送ChatGPT賬號..
我正在開發一個帶有自定義登錄頁面的本地 ASP.NET Web 應用程序,以對 Azure AD 中的用戶進行身份驗證.我想通過用戶名/密碼向 Azure AD 發出請求,并獲取令牌/user_info 以對用戶進行身份驗證,而不提示 Azure AD 登錄屏幕.
- 有人知道我該如何提出這個請求嗎?
- 有可能嗎?
我正在嘗試使用 OpenID 連接、OAuth、JWT.
解決方案
你可以使用
使用ROPC
,可以發送http請求獲取access_token
和id_token
.
I'm developing a local ASP.NET web application with a custom login page to authenticate users in Azure AD. I whant to make a request to Azure AD passing the username/password and get the token/user_info to authenticate the user, without prompt the Azure AD login screen.
- Somebody knows how can I make this request?
- Is it possible?
I'm trying to use OpenID connect, OAuth, JWT.
解決方案
You can use ROPC flow.
Use ROPC
, you can send http request to get access_token
and id_token
.
這篇關于ASP.NET 網頁按請求在 Azure AD 中進行身份驗證的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!