Ich mag würde wissen, was man konfigurieren, müssen für die automatische Token erneuern, bemerke ich Identity Server Version 3.0 und Javascript-Client UI-Anwendungs bin mitIdentity Server AccessTokenLifetime Eigenschaft und OIDC automaticSilentRenew in C#
Meine Client-Konfiguration ist
new Client
{
Enabled = true,
ClientName = "JS Client",
ClientId = "js",
Flow = Flows.Implicit,
AllowedScopes = new List<string>() {
"openid", "profile", "email", "api"
},
RedirectUris = new List<string>
{
"http://localhost:7000/popup.html",
"http://localhost:7000/silent-renew.html"
},
PostLogoutRedirectUris = new List<string>
{
"http://localhost:7000/index.html"
},
AllowedCorsOrigins = new List<string>
{
"http://localhost:7000"
},
AllowAccessToAllScopes = true,
AccessTokenLifetime = 60
},
die aktuelle Einstellung von Client-Wieder Lasten die Webseite auf alle 60 SekundenAccessTokenLifetime = 60
Mein Javascript OIDC Konfiguration ist
var settings = {
authority: 'https://localhost:44300',
client_id: 'js',
popup_redirect_uri: 'http://localhost:7000/popup.html',
silent_redirect_uri: 'http://localhost:7000/silent-renew.html',
post_logout_redirect_uri: 'http://localhost:7000/index.html',
response_type: 'id_token token',
scope: 'openid profile email api',
accessTokenExpiringNotificationTime: 4,
automaticSilentRenew: true,
filterProtocolClaims: true
};
Ich weiß nicht, was ist der Zweck der automaticSilentRenew: true
, weil alle 60 Sekunden, um es wieder geladen wird. Bitte helfen Sie mir, was der eigentliche Zweck von automaticSilentRenew: true
ist? Außerdem helfen Sie mir, was der richtige Weg ist, das Token zu erneuern?