ADFS SAML Single Logout
A bit late but hope it helps someone. The NameID has a role to play here. Did you see this quote in the "Using AD FS 2.0 as the SAML 2.0 Identity Provider for the Service Provider Sample" readme step 3?
"Note:
· A NameIdentifier claim is not included in the outgoing claim from AD FS by default. This can be added as a Claim transformation rule. This is necessary for logout to perform correctly. "
Was the partner IDP sending a NameID and was your ADFS configured to send a NameID to the RP App? I have configured your very same setup where my IDP and RP STS are both ADFS and this works fine.
Please note the WIF SAML extensions CTP is not supported at this stage. I am assuming this is not a production setup?
Windows Server 2012 AD FS 2.1 is not required for this to work. Although it has some nice extra features coming in the 8.1 server release that might influence your upgrade decisions :)
SY.
Updated on September 18, 2022Comments
-
SY. over 1 year
I think a follow-up question based on the problem from HackerRank, and wonder if it is possible to solve by SQL.
Sample Input
Let's say that CITY has four entries: DEFG, ABC, PQRSER, and WXY
Sample Output
ABC 3 DEFG 4 PQRSER 6
I was wondering if I can use SQL to ordered length of city and city name alphabetically with the respective lengths. And if there are options for the same length city (e.g., ABC, WXY), I just want to choose the first city name, because it comes first alphabetically. Thanks!
-
Tim Biegeleisen about 6 years@DanielGale Yes.
-
Daniel Gale about 6 years@TimBiegeleisen You are correct then, aggregation is needed.
-
-
Daniel Gale about 6 yearsLEN() is used in SQL Server, but MySQL uses Length()
-
sarath s rajendran about 6 yearsI think his question is about SQL not MySql :-)
-
Daniel Gale about 6 yearsNice. I had the most of it, forgot the 'city' name as secondary order.
-
cdaiga about 6 yearsWhat you first wrote was not the answer to the question, you know it!
-
Daniel Gale about 6 yearsThe question is tagged mysql.
-
sarath s rajendran about 6 yearsHe tagged both sql and Mysql :-)
-
Daniel Gale about 6 yearsSo if two cities exist of the same length, ABC and XYZ, you do not want to see XYZ in the list?
-
Daniel Gale about 6 yearsLooks like we both omitted that cities need to be grouped by size anyway :). Better luck next time.
-
Tim Biegeleisen about 6 years
it works
... this query won't run on any other database, nor on certain versions of MySQL. Also, there is no guarantee that this will always pick the first city name. DoingSELECT *
withGROUP BY
is generally bad. -
cdaiga about 6 yearsIt will always pick the first alphabetically sorted city per the length. I don't really care if it won't run on any other database. The OP should adapt it for any other database.
-
31piy about 6 yearsWhile this code snippet may solve the question, including an explanation really helps to improve the quality of your post. Remember that you are answering the question for readers in the future, and those people might not know the reasons for your code suggestion.
-
SY. about 6 yearsThanks, but this code did not return the column of CHAR_LENGTH(city).
-
SY. about 6 yearsI wonder if I can use only one query or that would be a problem? SELECT MIN(city) AS first_city, CHAR_LENGTH(city) FROM yourTable GROUP BY CHAR_LENGTH(city) ORDER BY CHAR_LENGTH(city);