Skip to content

feat(pr: issue-351): integrate is4 to smalltalk reactjs app#352

Merged
live-dev999 merged 13 commits intoO2-Bionics:devfrom
live-dev999:live-dev999/issue351
May 13, 2022
Merged

feat(pr: issue-351): integrate is4 to smalltalk reactjs app#352
live-dev999 merged 13 commits intoO2-Bionics:devfrom
live-dev999:live-dev999/issue351

Conversation

@live-dev999
Copy link
Copy Markdown
Collaborator

No description provided.

@live-dev999 live-dev999 added this to the v1.0.0.4 milestone May 8, 2022
@live-dev999 live-dev999 self-assigned this May 8, 2022
AllowedGrantTypes = GrantTypes.Implicit,
AllowAccessTokensViaBrowser = true,

RedirectUris = { $"http://localhost:5003/swagger/o2c.html" },
Copy link
Copy Markdown
Collaborator

@AlbusaOxyuranus AlbusaOxyuranus May 8, 2022

Choose a reason for hiding this comment

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

You need to move it to appsettings.json

"http://localhost:3003/signin-oidc",
},

PostLogoutRedirectUris = { "http://localhost:3003/signout-oidc" },
Copy link
Copy Markdown
Collaborator

@AlbusaOxyuranus AlbusaOxyuranus May 8, 2022

Choose a reason for hiding this comment

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

You need to move it to appsettings.json

},

PostLogoutRedirectUris = { "http://localhost:3003/signout-oidc" },
AllowedCorsOrigins = { "http://localhost:3003" },
Copy link
Copy Markdown
Collaborator

@AlbusaOxyuranus AlbusaOxyuranus May 8, 2022

Choose a reason for hiding this comment

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

You need to move it to appsettings.json

AllowedScopes =
ClientId = "smalltalk_client_reactjs",
ClientName = "SmallTalk React App",
ClientUri = "http://localhost:3003",
Copy link
Copy Markdown
Collaborator

@AlbusaOxyuranus AlbusaOxyuranus May 8, 2022

Choose a reason for hiding this comment

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

You need to move it to appsettings.json

$"Please confirm your account by <a href='{HtmlEncoder.Default.Encode(callbackUrl)}'>clicking here</a>.");

Console.WriteLine(HtmlEncoder.Default.Encode(callbackUrl));
//await _emailSender.SendEmailAsync(Input.Email, "Confirm your email",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You need to uncomment it

"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:10001;http://localhost:5001"
"applicationUrl": "http://localhost:5001"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You need to revert line

"AllowedHosts": "*",
"urls": {
"ESenderUrl": "https://e-sender"
"ESenderUrl": "https://e-sender.o2bus.com"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You need to revert it

[Route("session/{sessionId}/messages")]
public async Task<IActionResult> AddAsync(long sessionId, ChatMessage chatMessage, CancellationToken ct)
{
var userId = HttpContext.User.FindFirst("sub").Value;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You need to move it to identity service(need create)

{
return Bus.Factory.CreateUsingRabbitMq(rmq =>
{
rmq.Host(new Uri("rabbitmq://rabbitmq"), "/", h =>
Copy link
Copy Markdown
Collaborator

@AlbusaOxyuranus AlbusaOxyuranus May 8, 2022

Choose a reason for hiding this comment

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

You need to move it to appsettings.json

@@ -6,7 +6,7 @@
},
"AllowedHosts": "*",
"urls": {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You need to add all envs

{
await Groups.AddToGroupAsync(Context.ConnectionId, username);
this.username = username;
// var httpContext = Context.GetHttpContext();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You need to delete it

}

#endregion
// string username;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You need to delete it

{
await _chatHub.Clients
.All
.SendAsync("OnSetOnline");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Need create normal name for var

{
return Bus.Factory.CreateUsingRabbitMq(rmq =>
{
rmq.Host(new Uri("rabbitmq://rabbitmq"), "/", h =>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You need to move it to appsettings.json

}).AddJwtBearer(options =>
{
// identity server issuing token
options.Authority = "http://localhost:5001";
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You need to move it to appsettings.json

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 9, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 73 Code Smells

No Coverage information No Coverage information
16.4% 16.4% Duplication

@live-dev999 live-dev999 merged commit 508bc53 into O2-Bionics:dev May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment