akveo / nebular

:boom: Customizable Angular UI Library based on Eva Design System :new_moon_with_face::sparkles:Dark Mode
https://akveo.github.io/nebular
MIT License
8.05k stars 1.51k forks source link

How to implement windows authentication ? #2225

Open zhiv2u opened 4 years ago

zhiv2u commented 4 years ago

is there any way to set the httpclient requestOptions.withCredentials = true while configuring the auth strategies?

diogofalken commented 2 years ago

Any information about this @sashaqred?

sashaqred commented 2 years ago

I'm not sure but it looks like it's not supported to do so with config. You can create your own auth strategy by extending the needed strategy. Something like export class WithCredentialsAuthStrategy extends NbPasswordAuthStrategy {...}

diogofalken commented 2 years ago

@sashaqred Thank you for your prompt response!

Creating a Interceptor that adds withCredentials: true to specified endpoints was the workaround I found.

Do you think it's worthwhile to create an issue to get this added as a config option? I noticed that you already have a headers optional config in version 9.0.0, which may be something similar.

sashaqred commented 2 years ago

Yeah, the interceptor is also a good solution. I can't compare it with pros and cons, I just glanced at sources.

You can create a feature request, sounds like a good feature request.