-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provides support for token refresh #381
base: development
Are you sure you want to change the base?
Conversation
if (!appConfigService.IsAuthenticationSchemeEnabled(JwtBearerDefaults.LocalAuthenticationScheme)) | ||
{ | ||
context.Response.StatusCode = (int)HttpStatusCode.Forbidden; | ||
await context.Response.WriteAsync("Local JWT Authentication is disable."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
disabled
CometServer/Startup.cs
Outdated
|
||
if (refreshExpirationMinutes <= 0) | ||
{ | ||
throw new ConfigurationErrorsException("The Authentication:LocalJwtBearer:RefreshExpirationMinutes setting must be strickly greater than 0"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stricktly
@@ -60,8 +60,9 @@ | |||
"IsEnabled": false, | |||
"ValidIssuer": "CDP4-COMET", | |||
"ValidAudience": "localhost:5000", | |||
"SymmetricSecurityKey": "needs-to-be-updated-with-a-secret", | |||
"TokenExpirationMinutes": 150 | |||
"SymmetricSecurityKey": "needs-to-be-updated-with-a-secret", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please make sure to update the wiki with this information
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Configuration page updated, gonna update ICD
|
||
/// <summary> | ||
/// The purpose of the <see cref="JwtTokenService"/> is to generate a JWT token based on the provided authenticated | ||
/// The purpose of the <see cref="JwtTokenService" /> is to generate a JWT token based on the provided authenticated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
incomplete sentence
Prerequisites
Description