Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion okta-aspnetcore-mvc-example/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public void ConfigureServices(IServiceCollection services)
.AddOktaMvc(new OktaMvcOptions
{
// Replace these values with your Okta configuration
OktaDomain = Configuration.GetValue<string>("Okta:OktaDomain"),
OktaDomain = Configuration.GetValue<string>("Okta:OktaDomain"),
AuthorizationServerId = Configuration.GetValue<string>("Okta:AuthorizationServerId", "default"),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
AuthorizationServerId = Configuration.GetValue<string>("Okta:AuthorizationServerId", "default"),
AuthorizationServerId = Configuration.GetValue<string>("Okta:AuthorizationServerId"),

ClientId = Configuration.GetValue<string>("Okta:ClientId"),
ClientSecret = Configuration.GetValue<string>("Okta:ClientSecret"),
Scope = new List<string> { "openid", "profile", "email" },
Expand Down
1 change: 1 addition & 0 deletions okta-aspnetcore-mvc-example/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"Okta": {
"OktaDomain": "${CLI_OKTA_ORG_URL}",
"AuthorizationServerId": "${CLI_OKTA_ISSUER_ID}",
"ClientId": "${CLI_OKTA_CLIENT_ID}",
"ClientSecret": "${CLI_OKTA_CLIENT_SECRET}"
}
Expand Down