I did set up ContentDelivery API and is working when I provide role as Everyone and no Auth setup. I am trying to implement OAuth here and have some questions.
My application is using OKTA authentication with OWIN Context. Sample below:
app.UseOpenIdConnectAuthentication(new OpenIdConnectAuthenticationOptions
{
ClientId = OpenIDConfiguration.ClientId,
ClientSecret = OpenIDConfiguration.ClientSecret,
Authority = OpenIDConfiguration.Authority,
RedirectUri = OpenIDConfiguration.WebAppOidcEndpoint,
PostLogoutRedirectUri = OpenIDConfiguration.PostLogoutRedirectUrl,
Scope = OpenIDConfiguration.Scope,
ResponseType = "code id_token",
..........
}
Here how and what am I supposed to use in the ApplicationUser class from the documentation
app.UseContentApiIdentityOAuthAuthorization<ApplicationUserManager<ApplicationUser>, ApplicationUser>(new ContentApiOAuthOptions()
{
RequireSsl = false,
AccessTokenExpireTimeSpan = TimeSpan.FromMinutes(41),
RefreshTokenExpireTimeSpan = TimeSpan.FromDays(14)
});