Click here to Skip to main content
14,361,180 members
   

ASP.NET

 
AnswerRe: Finalize() vs Dispose() Pin
Mycroft Holmes11-Jun-19 21:01
memberMycroft Holmes11-Jun-19 21:01 
AnswerRe: Finalize() vs Dispose() Pin
Shraddha_Patel12-Nov-19 18:23
memberShraddha_Patel12-Nov-19 18:23 
QuestionI want to update users table according to ıd value Pin
Member 1064949510-Jun-19 12:38
memberMember 1064949510-Jun-19 12:38 
SuggestionRe: I want to update users table according to ıd value Pin
Richard Deeming11-Jun-19 2:16
mveRichard Deeming11-Jun-19 2:16 
QuestionHow to use treeView to save the directory tree into the SQL Server database ? Pin
Member 24584679-Jun-19 17:27
memberMember 24584679-Jun-19 17:27 
AnswerRe: How to use treeView to save the directory tree into the SQL Server database ? Pin
Richard MacCutchan9-Jun-19 22:49
protectorRichard MacCutchan9-Jun-19 22:49 
QuestionMysterious ADFS problem Pin
Super Lloyd5-Jun-19 22:19
memberSuper Lloyd5-Jun-19 22:19 
First there is a bit of configuration which I am not sure where is is set.. But is basically as follow:
  1. We got an ADFS server (AD Federation Server)
  2. It forwards authentication to 2 ("slave") servers, the company AD / Auth server and a private AD server for extra custom user
When we start the web site and go on a page marked with the [Authorize] attribute, it props the ADFS login page, which ask us to chose the AD server, then enter credential, and I can successfully login with user of either AS server.

However, when I try to do the same thing to authorize web server to web api call using an hard coded API User (we are not using JwtToken for the current user due to some other issue), getting the token as follows:
var context = new AuthenticationContext(adfsInfo.Authority, false);
var credential = new UserPasswordCredential(adfsInfo.UserName, adfsInfo.Password);
var result = await context.AcquireTokenAsync(adfsInfo.ResourceId, adfsInfo.ClientId, credential);

This
  1. works for user in the company AD server
  2. doesn't work for user in our private additional AD server. I got "invalid user or password"
where Authority is the same AD Url that I use for ADFS Web login, i.e. something like:
<a href="https://auth.dev.mycompany.com/adfs">https://auth.dev.mycompany.com/adfs</a>

What could be wrong? How could I fix it?
A new .NET Serializer
All in one Menu-Ribbon Bar
Taking over the world since 1371!

Questionweb form needs to be used for several languages Pin
dcof2-Jun-19 20:46
memberdcof2-Jun-19 20:46 
AnswerRe: web form needs to be used for several languages Pin
F-ES Sitecore3-Jun-19 2:00
mveF-ES Sitecore3-Jun-19 2:00 
Question(SOLVED) Is it possible to raise an error on filename that resides on the server? Pin
samflex29-May-19 5:36
membersamflex29-May-19 5:36 
AnswerRe: Is it possible to raise an error on filename that resides on the server? Pin
Richard Deeming29-May-19 8:16
mveRichard Deeming29-May-19 8:16 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
samflex29-May-19 10:18
membersamflex29-May-19 10:18 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
Richard Deeming30-May-19 1:16
mveRichard Deeming30-May-19 1:16 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
samflex30-May-19 5:00
membersamflex30-May-19 5:00 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
Richard Deeming30-May-19 8:31
mveRichard Deeming30-May-19 8:31 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
samflex31-May-19 4:17
membersamflex31-May-19 4:17 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
Richard Deeming31-May-19 4:26
mveRichard Deeming31-May-19 4:26 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
samflex31-May-19 4:42
membersamflex31-May-19 4:42 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
Richard Deeming31-May-19 4:50
mveRichard Deeming31-May-19 4:50 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
samflex31-May-19 5:19
membersamflex31-May-19 5:19 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
Richard Deeming31-May-19 5:33
mveRichard Deeming31-May-19 5:33 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
samflex31-May-19 5:36
membersamflex31-May-19 5:36 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
Richard Deeming31-May-19 6:19
mveRichard Deeming31-May-19 6:19 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
samflex31-May-19 7:07
membersamflex31-May-19 7:07 
GeneralRe: Is it possible to raise an error on filename that resides on the server? Pin
Richard Deeming31-May-19 7:20
mveRichard Deeming31-May-19 7:20 

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.