Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 75b0908

Browse files
authored
Add AuthorizationServerId to example
Required in order to support Okta orgs without a "default" issuer
1 parent 498a873 commit 75b0908

File tree

1 file changed

+2
-1
lines changed
  • samples-aspnetcore-3x/okta-hosted-login/okta-aspnetcore-mvc-example

1 file changed

+2
-1
lines changed

samples-aspnetcore-3x/okta-hosted-login/okta-aspnetcore-mvc-example/Startup.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public void ConfigureServices(IServiceCollection services)
3636
.AddOktaMvc(new OktaMvcOptions
3737
{
3838
// Replace these values with your Okta configuration
39-
OktaDomain = Configuration.GetValue<string>("Okta:OktaDomain"),
39+
OktaDomain = Configuration.GetValue<string>("Okta:OktaDomain"),
40+
AuthorizationServerId = Configuration.GetValue<string>("Okta:AuthorizationServerId", "default"),
4041
ClientId = Configuration.GetValue<string>("Okta:ClientId"),
4142
ClientSecret = Configuration.GetValue<string>("Okta:ClientSecret"),
4243
Scope = new List<string> { "openid", "profile", "email" },

0 commit comments

Comments
 (0)