Click here to Skip to main content
16,016,759 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: Syntax Error Pin
honey the codewitch15-Mar-24 14:57
mvahoney the codewitch15-Mar-24 14:57 
GeneralRe: Syntax Error Pin
dandy7217-Mar-24 13:38
dandy7217-Mar-24 13:38 
GeneralRe: Syntax Error Pin
k505415-Mar-24 7:21
mvek505415-Mar-24 7:21 
GeneralRe: Syntax Error Pin
dandy7215-Mar-24 8:19
dandy7215-Mar-24 8:19 
GeneralReinforcement Learning Pin
Jo_vb.net15-Mar-24 0:59
mvaJo_vb.net15-Mar-24 0:59 
GeneralThis is a first... Pin
Sander Rossel15-Mar-24 0:02
professionalSander Rossel15-Mar-24 0:02 
GeneralRe: This is a first... Pin
raddevus15-Mar-24 2:24
mvaraddevus15-Mar-24 2:24 
GeneralRe: This is a first... Pin
Sander Rossel15-Mar-24 3:01
professionalSander Rossel15-Mar-24 3:01 
Apparently, it works as follows:
C#
var handler = new HttpClientHandler
{
    Credentials = new NetworkCredential("username", "password", "domain") // Or use CredentialCache.DefaultCredentials for the current user
};
var client = new HttpClient(handler);
// Use the client here as you normally would.
You can do this using DI and use the IHttpClientFactory to create your clients.

You're not sending tokens, it's more like Basic Authentication.

GeneralRe: This is a first... Pin
kmoorevs15-Mar-24 6:22
kmoorevs15-Mar-24 6:22 
GeneralRe: This is a first... Pin
Sander Rossel16-Mar-24 3:42
professionalSander Rossel16-Mar-24 3:42 
JokeHow it really went down Pin
honey the codewitch14-Mar-24 23:40
mvahoney the codewitch14-Mar-24 23:40 
GeneralRe: How it really went down Pin
OriginalGriff15-Mar-24 1:04
mveOriginalGriff15-Mar-24 1:04 
GeneralRe: How it really went down Pin
jmaida15-Mar-24 15:19
jmaida15-Mar-24 15:19 
GeneralRe: How it really went down Pin
jmaida15-Mar-24 16:54
jmaida15-Mar-24 16:54 
GeneralBeware the Ides of March! Pin
Daniel Pfeffer14-Mar-24 22:00
professionalDaniel Pfeffer14-Mar-24 22:00 
GeneralRe: Beware the Ides of March! Pin
honey the codewitch15-Mar-24 9:34
mvahoney the codewitch15-Mar-24 9:34 
GeneralRe: Beware the Ides of March! Pin
PIEBALDconsult15-Mar-24 15:49
mvePIEBALDconsult15-Mar-24 15:49 
GeneralHDMI versus Display Port? Pin
Roger Wright14-Mar-24 15:56
professionalRoger Wright14-Mar-24 15:56 
GeneralRe: HDMI versus Display Port? PinPopular
Graeme_Grant14-Mar-24 17:11
mvaGraeme_Grant14-Mar-24 17:11 
GeneralRe: HDMI versus Display Port? Pin
Roger Wright14-Mar-24 19:14
professionalRoger Wright14-Mar-24 19:14 
GeneralRe: HDMI versus Display Port? Pin
Graeme_Grant14-Mar-24 19:25
mvaGraeme_Grant14-Mar-24 19:25 
GeneralRe: HDMI versus Display Port? Pin
Richard Andrew x6415-Mar-24 7:24
professionalRichard Andrew x6415-Mar-24 7:24 
GeneralRe: HDMI versus Display Port? Pin
glennPattonWork315-Mar-24 2:21
professionalglennPattonWork315-Mar-24 2:21 
GeneralRe: HDMI versus Display Port? Pin
Choroid15-Mar-24 7:14
Choroid15-Mar-24 7:14 
GeneralRe: HDMI versus Display Port? Pin
Roger Wright15-Mar-24 8:39
professionalRoger Wright15-Mar-24 8:39 

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.