diff --git a/samples-aspnetcore-3x/okta-hosted-login/okta-aspnetcore-mvc-example/Startup.cs b/samples-aspnetcore-3x/okta-hosted-login/okta-aspnetcore-mvc-example/Startup.cs index e5f51f8..cac1541 100644 --- a/samples-aspnetcore-3x/okta-hosted-login/okta-aspnetcore-mvc-example/Startup.cs +++ b/samples-aspnetcore-3x/okta-hosted-login/okta-aspnetcore-mvc-example/Startup.cs @@ -36,7 +36,8 @@ public void ConfigureServices(IServiceCollection services) .AddOktaMvc(new OktaMvcOptions { // Replace these values with your Okta configuration - OktaDomain = Configuration.GetValue("Okta:OktaDomain"), + OktaDomain = Configuration.GetValue("Okta:OktaDomain"), + AuthorizationServerId = Configuration.GetValue("Okta:AuthorizationServerId"), ClientId = Configuration.GetValue("Okta:ClientId"), ClientSecret = Configuration.GetValue("Okta:ClientSecret"), Scope = new List { "openid", "profile", "email" }, diff --git a/samples-aspnetcore-3x/okta-hosted-login/okta-aspnetcore-mvc-example/appsettings.json b/samples-aspnetcore-3x/okta-hosted-login/okta-aspnetcore-mvc-example/appsettings.json index 95a6d4e..8c9a96a 100644 --- a/samples-aspnetcore-3x/okta-hosted-login/okta-aspnetcore-mvc-example/appsettings.json +++ b/samples-aspnetcore-3x/okta-hosted-login/okta-aspnetcore-mvc-example/appsettings.json @@ -9,6 +9,7 @@ "Okta": { "OktaDomain": "https://{yourOktaDomain}", "ClientId": "{ClientId}", - "ClientSecret": "{ClientSecret}" + "ClientSecret": "{ClientSecret}", + "AuthorizationServerId": "default" } }