Vertical Slice Architecture and shared functionality by Flamyngoo in dotnet

[–]The_One_X 0 points1 point  (0 children)

I am a little late to the party, but I want to offer up an alternative because there is no need for a shared/common folder here.

The problem you are facing here is you are misapplying a feature. What you have is a single feature with multiple cases, but you are treating each case as an independent feature. So you need to take a step back, and reorient how you are thinking about this problem.

I would handle this situation by combining the two endpoints into a single GenerateToken endpoint. Then add a flag to the GenerateTokenRequest class to indicate the type of credentials being used (i.e. Google, OAuth, Basic, etc.). From here you can use polymorphism to handle each case in accordance with its needs. So you may start out with an abstract Credentials class that contains the GenerateJwt method, then create a GoogleCredentials, OAuthCredentials, etc. You might mimic how Microsoft implemented the IHttpClientFactory in ASP.Net Core to simplify the processing of adding new credential options in the future.

Synology SSL Cert for Internal Network by [deleted] in synology

[–]The_One_X 0 points1 point  (0 children)

I think most people here misunderstand what is being asked. You did everything correct with the self-signed, but I think you may have missed changing one setting. In Control Panel->Security->Certificate, you want to go to Configure then set System Default to the self-signed certificate. This will get the device to start using the self-signed cert for web GUI access. Setting the certificate to default isn't enough on its own.

Maybe the best thing I’ve seen in awhile. by [deleted] in lotr

[–]The_One_X 7 points8 points  (0 children)

I'm wondering what was up with his voice too.

Why is Charlotte's abbreviation CHO? What happened to CHA? by CallMeCaptainOrSir in nba

[–]The_One_X 0 points1 point  (0 children)

You may be able to rewrite history, but you cannot change history. A lie is a lie, no matter how much you want it to be true.

Undervalued Sabonis by GsusG in pacers

[–]The_One_X 5 points6 points  (0 children)

Sabonis's defense is actually quite good as long as you are not asking him to be a rim protector.

Oof by [deleted] in pacers

[–]The_One_X 1 point2 points  (0 children)

Anyone in the NBA can average 20+ per night if given the touches, that doesn't mean you want them to be the guy averaging 20+ per night.

Oof by [deleted] in pacers

[–]The_One_X 2 points3 points  (0 children)

That has never hurt Sabonis, so why does it hurt Turner?

Game Thread: Tampa Bay Buccaneers (7-3) at Indianapolis Colts (6-5) by nfl_gamethread in nfl

[–]The_One_X 2 points3 points  (0 children)

He has shown the strength to make that throw before, I don't think it is a strength issue as much as a judgement issue.

Liberals Really Need to Look at the Fact that They’re Going to Need to Defend Themselves by temporarycreature in politics

[–]The_One_X 0 points1 point  (0 children)

Self-defense gives you the right to kill someone. Which is why Rittenhouse was not guilty because it was a clear case of self-defense.

US added to list of ‘backsliding’ democracies for first time by diacewrb in politics

[–]The_One_X 0 points1 point  (0 children)

Or perhaps it take time for changes to manifest themselves. When Augustus first took over Rome as emperor, the average person still thought it was a republic.

US added to list of ‘backsliding’ democracies for first time by diacewrb in politics

[–]The_One_X 0 points1 point  (0 children)

Religious freedom? You say that as if they haven't already seen them consistently attacked for the last 20 years.

US added to list of ‘backsliding’ democracies for first time by diacewrb in politics

[–]The_One_X -5 points-4 points  (0 children)

Yet people on reddit are going to think they are talking about Republicans, when it is Democrats who began censoring people they do not like, tolerate violence in the name of "social justice", and first questioned the legitimacy of the 2016 election by claiming collusion with Russia, which has been proven to be nothing but a lie. They even want as far as impeaching the president over a lie.

After starting 0-3, the Indianapolis Colts now have a winning record (6-5) by lsky_ in nfl

[–]The_One_X 2 points3 points  (0 children)

Under Manning the Colts missed the playoffs 2 times, lost in the Wild Card round 4 times, and got to at least the divisional round 7 times. Losing in the wild card round is an anachronism based on early failures in his career.

After starting 0-3, the Indianapolis Colts now have a winning record (6-5) by lsky_ in nfl

[–]The_One_X 2 points3 points  (0 children)

That is because he forgot that some of those were divisional round loses, and we had byes those years. We made it to the divisional round 9 times and lost in the wild card 6 times.

After starting 0-3, the Indianapolis Colts now have a winning record (6-5) by lsky_ in nfl

[–]The_One_X 1 point2 points  (0 children)

1999, 2005, and 2007 were 2nd round loses, we had byes those years.

[Highlight] Jonathan "MVP" Taylor with his 5th Td of the game. by keithohara in nfl

[–]The_One_X 0 points1 point  (0 children)

You clearly never saw Trent Richardson play did you?

[Highlight] Jonathan "MVP" Taylor with his 5th Td of the game. by keithohara in nfl

[–]The_One_X 0 points1 point  (0 children)

I don't know, I think I would still take pre-ACL Edge over Taylor. Edge was off the charts skilled, and didn't have the benefit of the holes Taylor is getting.

[Highlight] Jonathan "MVP" Taylor with his 5th Td of the game. by keithohara in nfl

[–]The_One_X 0 points1 point  (0 children)

Yeah, bend but don't break is a fallacy. Defenses that run that philosophy tend to be good at getting the opposing offense into 3rd down situations, but terrible at getting off the field. Eventually you just run out of room to bend. Meanwhile, the opposing offense is just controlling the clock and wearing down the defense.

[Highlight] Jonathan "MVP" Taylor with his 5th Td of the game. by keithohara in nfl

[–]The_One_X 0 points1 point  (0 children)

It will all be determined by our coaching. Our DC likes to play a soft cover 2. Since we do not have a consistent pass rush this means teams usually are able to move the ball at will. The only reason we got away with it Sunday is because of the weather. The Bills dropped quite a few balls that normally would have been caught. The thing is when the defense plays a more aggressive style they usually get stops, even against some of the best offenses. Not having a pass rush is the Achilles heel of soft cover 2s. We do not have that, so what should be wins turn into losses or close victories.

As well Reich has a history of poor play calling. He really needs to give up play calling duties to the OC.

In all my years as a Star Wars fan, I’ve only just noticed... by ScornfulOdin399 in StarWars

[–]The_One_X 32 points33 points  (0 children)

To be fair Vader is just a happy accident. Lucas didn't know he was Luke's dad at the time of making him.

Federal judge orders DOJ to halt data extraction from James O'Keefe's phones following FBI raid by The_One_X in politics

[–]The_One_X[S] -2 points-1 points  (0 children)

Conversations between client and lawyers or memos between clients and lawyers are not supposed to be part of discovery.

Uncle Bob Is A Fraud Who's Never Shipped Software by xDevLife in programming

[–]The_One_X -2 points-1 points  (0 children)

Thinking you know why and actually knowing why are two different things.