Click here to Skip to main content
15,892,965 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Who else does this? (Everyone, right?) Pin
Ron Anders12-Sep-19 3:14
Ron Anders12-Sep-19 3:14 
GeneralRe: Who else does this? (Everyone, right?) Pin
Sander Rossel12-Sep-19 3:14
professionalSander Rossel12-Sep-19 3:14 
GeneralRe: Who else does this? (Everyone, right?) Pin
musefan12-Sep-19 3:24
musefan12-Sep-19 3:24 
GeneralRe: Who else does this? (Everyone, right?) Pin
#realJSOP12-Sep-19 3:50
mve#realJSOP12-Sep-19 3:50 
GeneralRe: Who else does this? (Everyone, right?) Pin
CodeWraith12-Sep-19 3:50
CodeWraith12-Sep-19 3:50 
GeneralRe: Who else does this? (Everyone, right?) Pin
Fever90512-Sep-19 3:59
professionalFever90512-Sep-19 3:59 
GeneralRe: Who else does this? (Everyone, right?) Pin
raddevus12-Sep-19 4:11
mvaraddevus12-Sep-19 4:11 
GeneralRe: Who else does this? (Everyone, right?) Pin
Sander Rossel12-Sep-19 4:22
professionalSander Rossel12-Sep-19 4:22 
raddevus wrote:
The auth thing is terribly crazy to me that there isn't just a reusable pluggable component that everyone would be using.
There is, but the URL's, client ID's, passwords, etc. are different each time.
So, copy paste and change those variables.
I always rename cookies, so:
C#
services.Configure<CookieAuthenticationOptions>(AzureADDefaults.CookieScheme, options =>
{
    options.Cookie.Name = "MyProject.AzureAdCookie";
});
Most stuff isn't worth putting in a library, like:
C#
services.AddAuthentication(AzureADDefaults.AuthenticationScheme)
    .AddAzureAD(options => Configuration.Bind("AzureAd", options));
But it gets copy pasted ALL the time Sigh | :sigh:

Perhaps a small library containing all that stuff..., but that's a library for four lines of code Dead | X|
C#
MyUtils.ConfigureAzureAd("MyProject.AzureAdCookie");
Creating a NuGet repository is more trouble than it's worth though.
And if the code is customer specific you can't really have packages like "Sander.Utils" around either, they expect "Company.Utils" at the least, but so does that other customer.
So not even packages are always reusable Sigh | :sigh:

It's also a bit different for Azure Function projects, etc.
raddevus wrote:
I know you are an intelligent developer
Big Grin | :-D

GeneralRe: Who else does this? (Everyone, right?) Pin
kmoorevs12-Sep-19 5:11
kmoorevs12-Sep-19 5:11 
GeneralRe: Who else does this? (Everyone, right?) Pin
Jörgen Andersson12-Sep-19 5:54
professionalJörgen Andersson12-Sep-19 5:54 
GeneralRe: Who else does this? (Everyone, right?) Pin
Gary Wheeler12-Sep-19 7:13
Gary Wheeler12-Sep-19 7:13 
GeneralMessage Closed Pin
12-Sep-19 1:59
SteakhouseLuke12-Sep-19 1:59 
GeneralRe: How often do you like to compile? Pin
Sander Rossel12-Sep-19 2:06
professionalSander Rossel12-Sep-19 2:06 
GeneralCool discovery (MSDN archive) PinPopular
Nelek12-Sep-19 0:32
protectorNelek12-Sep-19 0:32 
GeneralRe: Cool discovery Pin
Sander Rossel12-Sep-19 2:17
professionalSander Rossel12-Sep-19 2:17 
GeneralRe: Cool discovery Pin
Nelek12-Sep-19 3:34
protectorNelek12-Sep-19 3:34 
GeneralRe: Cool discovery Pin
kmoorevs12-Sep-19 5:32
kmoorevs12-Sep-19 5:32 
GeneralRe: Cool discovery Pin
Nelek12-Sep-19 9:30
protectorNelek12-Sep-19 9:30 
GeneralRe: Cool discovery Pin
dandy7212-Sep-19 7:11
dandy7212-Sep-19 7:11 
GeneralRe: Cool discovery Pin
Nelek12-Sep-19 9:43
protectorNelek12-Sep-19 9:43 
GeneralRe: Cool discovery Pin
dandy7212-Sep-19 11:11
dandy7212-Sep-19 11:11 
GeneralRe: Cool discovery Pin
Nelek12-Sep-19 20:29
protectorNelek12-Sep-19 20:29 
GeneralRe: Cool discovery Pin
Gary Wheeler12-Sep-19 7:18
Gary Wheeler12-Sep-19 7:18 
GeneralRe: Cool discovery Pin
Nelek12-Sep-19 9:45
protectorNelek12-Sep-19 9:45 
GeneralRe: Cool discovery Pin
Kent Sharkey12-Sep-19 11:45
staffKent Sharkey12-Sep-19 11:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.