の検索結果 :
×Blazor SAML シングル サインオン (SSO) このアプリケーションは、Blazor アプリケーションの SAML シングル サインオンを有効にする機能を提供します。シングル サインオンを使用すると、Blazor アプリケーションとサービスにアクセスするために 1 つのパスワードだけを使用できます。私たちのアプリケーションは、SAML 準拠のすべての ID プロバイダーと互換性があります。ここでは、Azure AD を IdP として考慮して、Blazor と Microsoft Entra ID (旧称 Azure AD) の間でシングル サインオン (SSO) を構成するためのステップバイステップ ガイドを説明します。 Blazor SSO に提供される機能の詳細については、ここをクリックしてください。 こちら.
using miniorange.saml public class Startup { public void ConfigureServices(IServiceCollection services) { services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(); services.AddControllersWithViews(); } public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { app.UseHttpsRedirection(); app.UseRouting(); app.UseAuthorization(); app.MapRazorPages(); app.UseCookiePolicy(); app.UseAuthentication(); app.UseStaticFiles(); app.UseminiOrangeSAMLSSOMiddleware(); app.Run(); } }
using Microsoft.AspNetCore.Authentication.Cookies; using miniOrange.saml; var builder = WebApplication.CreateBuilder(args); builder.Services.AddRazorPages(); // Add authentication services builder.Services.AddminiOrangeServices(Assembly.GetExecutingAssembly()); var app = builder.Build(); if (!app.Environment.IsDevelopment()) { app.UseExceptionHandler("/Error"); app.UseHsts(); } app.UseHttpsRedirection(); app.UseRouting(); app.UseAuthorization(); app.MapRazorPages(); app.UseCookiePolicy(); app.UseAuthentication(); app.UseStaticFiles(); app.UseminiOrangeSAMLSSOMiddleware(); app.Run(); app.useantiforgery()
https://<blazor-application-base-url>/?ssoaction=config
SAML SP メタデータを取得して ID プロバイダー側で構成するには、以下に詳しく説明する 2 つの方法があります。
データソースを選択
注意: 次のステップで、希望する値を入力します 表示名 をクリックし 次へ.
注意: 次のステップで、希望する値を入力します 表示名 をクリックし 次へ.
表示名を指定
証明書の構成 (プレミアム機能)
URLを構成する
識別子の構成
アクセス制御ポリシーの選択
信頼を追加する準備ができました
請求発行ポリシーの編集
ルールタイプを選択
クレームルールの構成
Windows SSO を設定するには、以下の手順に従ってください。
Windows 認証用に ADFS を構成する手順
setspn -a HTTP/##ADFS サーバー FQDN## ##ドメイン サービス アカウント##
FQDN は完全修飾ドメイン名です (例: adfs4.example.com)
ドメイン サービス アカウントは、AD のアカウントのユーザー名です。
例: setspn -a HTTP/adfs.example.com ユーザー名/ドメイン
Set-AdfsProperties -WIASupportedUserAgents ((Get-ADFSProperties | Select -ExpandProperty WIASupportedUserAgents) + "Chrome")
Get-AdfsProperties | Select -ExpandProperty WIASupportedUserAgents;
アプリケーションで SAML ID プロバイダーのメタデータを構成するには、以下に詳しく説明する 2 つの方法があります。
string name=""; string claimtype=""; string claimvalue=""; if(User.Identity.IsAuthenticated) { foreach( var claim in User.Claims) { claimtype = claim.Type; claimvalue = claim.Value; } retrive custom attributes(for eg. Retrieve Mapped 'mobileNumber' attribute of your IDP) var identity = (ClaimsIdentity)User.Identity; IEnumerable claims = identity.Claims; string mobileNumber = identity.FindFirst("mobileNumber")?.Value; }
https://blazor-application-base-url/?ssoaction=login
<a href=”https://blazor-application-base-url/?ssoaction=login”>Log
in</a>
https://blazor-application-base-url/?ssoaction=logout
<a href=”https://blazor-application-base-url/?ssoaction=logout”>Log
out</a>
IDP を構成するには、appsetting.json ファイルでサービス プロバイダーのメタデータを見つけることができます。 SP メタデータについては、以下のスクリーンショットを参照してください。
ミニオレンジ セクションで、pentityid、acsurl をコピーし、アイデンティティ プロバイダーのチームに提供します。
| idp_cert | このフィールドに IDP 証明書を入力します |
| スール | このフィールドに SSO URL を入力します |
| idp_issuer | このフィールドに IDP 発行者を入力します |
string name="";
string claimtype="";
string claimvalue="";
if(User.Identity.IsAuthenticated) {
name= User.Identity.Name;
foreach( var claim in User.Claims) {
claimtype = claim.Type;
claimValue = claim.Value;
}
}
Blazor SAML 2.0 シングル サインオン (SSO) アプリケーションは、次のような任意の ID プロバイダーで構成できます。 ADFS、Microsoft Entra ID (旧称 Azure AD)、Bitium、Centrify、G Suite、JBoss Keycloak、Okta、OneLogin、Salesforce、AWS Cognito、OpenAM、Oracle、PingFederate、PingOne、RSA SecureID、Shibboleth-2、Shibboleth-3、SimpleSAML 、WSO2、または独自のカスタム ID プロバイダーを使用する場合でも。 ID プロバイダーのリストを確認する こちら.
ID プロバイダーが見つからない場合は、 メールでお問い合わせください aspnetsupport@xecurify.com また、お客様の IDP による SSO のセットアップをお手伝いし、お客様の要件に関する迅速なガイダンス (電子メール/会議経由) を提供します。また、当社のチームがお客様の要件に応じて最適なソリューション/プランを選択するお手伝いをします。
助けが必要? 私たちはここにいます!
お問い合わせありがとうございます。
24 時間以内に当社からのご連絡がない場合は、お気軽にフォローアップ メールを送信してください。 info@xecurify.com
リクエストが失敗しました。
メールを送信してみてください info@xecurify.com
