Security icon indicating copy to clipboard operation
Security copied to clipboard

dynamically changeable authentication based on host name

Open martindrlik opened this issue 8 years ago • 2 comments

It is possible to have multiple authentications (and options) and choose relevant one let say based on host name? For instance assume several companies hosted by application and each has their own AppId and AppSecret for Facebook authentication, or event different authentication e.g. Google.

company1.example.com // has facebook with own appId and secret
company2.example.com // has facebook with own appId and secret
company3.example.com // has facebook, google or other enabled

Note that AppId and AppSecret or what authentication can be used is unknown in the time when ConfigureServices method in the Startup.cs file is called.

martindrlik avatar May 02 '18 13:05 martindrlik

See https://github.com/aspnet/AuthSamples/pull/44

Tratcher avatar May 02 '18 13:05 Tratcher

I'm going to assume the thumbs up means you got your answer and the issue can be closed. If this isn't the case feel free to reopen it.

blowdart avatar May 03 '18 18:05 blowdart