2017-10-10 1 views
-1

愚かな質問...例では、私の生産に すなわちhttp://localhost:5002/signin-oidcRedirectUrisは本番環境でlocalhostを使用できますか?

をlocalhostにリダイレクトユーザーの下に示すが、私は https://app.domain.com/signin-oidcにこれを変更する必要があるでしょうか?

http://docs.identityserver.io/en/release/quickstarts/6_aspnet_identity.html

new Client 
{ 
ClientId = "mvc", 
ClientName = "MVC Client", 
AllowedGrantTypes = GrantTypes.HybridAndClientCredentials, 

RequireConsent = false, 

ClientSecrets = 
{ 
    new Secret("secret".Sha256()) 
}, 

RedirectUris   = { "http://localhost:5002/signin-oidc" }, 
PostLogoutRedirectUris = { "http://localhost:5002/signout-callback-oidc" }, 

AllowedScopes = 
{ 
    IdentityServerConstants.StandardScopes.OpenId, 
    IdentityServerConstants.StandardScopes.Profile, 
    "api1" 
}, 
AllowOfflineAccess = true 
} 
+1

はい、localhostは、クライアントがWebアプリケーションの場合のみテストする必要があります。プロダクションにlocalhostリダイレクトuriを含めないでください。 –

答えて

1

リダイレクトURLがクライアントのために利用可能であるべきです。

実稼働環境で、同じマシンにないクライアントとの通信が予想される場合は、これらのURLはターゲットネットワーク経由で一般公開される必要があります。

関連する問題