-
Notifications
You must be signed in to change notification settings - Fork 367
ADFS Compatibility with MSAL #834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
ce00712
Move Reed's initial [PR](https://github.com/AzureAD/azure-activedirec…
MarkZuber 4ad8e79
Merge branch 'dev3x' into rewilli/adfs
9382823
Public client unit test passing
78a22db
Fix device code tests
9ef61a2
Add confidential client test
ddeaed4
Token cache test
2b4e8bb
Update paramter name in comment
e70ddf2
Clean up
8ad5be0
Make tests consistent with adfs responses
3c3d657
Minor cr fixes
b77813b
Adding support for ADFS 2019 lab accounts for testing.
95aecfb
Adding ADFS 2019 tests to fast run for appcenter
1443c5b
Slight refactor
f4efd7f
Add integration tests
068889f
Merge branch 'dev3x' into rewilli/adfs
22a94b8
CR feedback
2d0d8b7
more cr feedback
fac23e8
Client secret url read from file
044ef18
Updating client credential directory. Adding comment about running te…
ef5027a
Device code flow not supported
536650f
Merge branch 'rewilli/adfs' of https://github.com/AzureAD/microsoft-a…
939faeb
ignore device code flow tests
b3be5a3
Merge branch 'dev3x' into rewilli/adfs
382cb3b
Embedding data file with client secret into project as resource
28f23fc
Adding integration test for different account types
ba9f02b
Resolving test failures
555255d
Merge remote-tracking branch 'origin/dev3x' into rewilli/adfs
64ea8ad
Resolving null reference when extracting domain from ADFS UPN.
29b229e
Resolving cache lookup errors
e42883f
Refactoring/Addressing PR comments
288dea6
fixing issue with ADFS direct preferred username.
42a3e4d
Merge remote-tracking branch 'origin/master' into rewilli/adfs
d96152c
resolving test errors.
de446e4
Refactoring
88b5dae
Merge remote-tracking branch 'origin/master' into rewilli/adfs
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,072 changes: 534 additions & 538 deletions
1,072
src/Microsoft.Identity.Client/AppConfig/AbstractApplicationBuilder.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Globalization; | ||
using System.Net.Http; | ||
using System.Threading.Tasks; | ||
using Microsoft.Identity.Client.Core; | ||
using Microsoft.Identity.Client.Http; | ||
using Microsoft.Identity.Client.OAuth2; | ||
using Microsoft.Identity.Client.TelemetryCore; | ||
|
||
namespace Microsoft.Identity.Client.Instance | ||
{ | ||
internal class AdfsAuthority : Authority | ||
{ | ||
private readonly HashSet<string> _validForDomainsList = new HashSet<string>(); | ||
|
||
public AdfsAuthority(IServiceBundle serviceBundle, AuthorityInfo authorityInfo) | ||
: base(serviceBundle, authorityInfo) | ||
{ | ||
} | ||
|
||
//ADFS does not have a concept of a tenant ID. This prevents ADFS from supporting multiple tenants | ||
internal override string GetTenantId() | ||
trwalke marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{ | ||
return null; | ||
} | ||
|
||
internal override void UpdateTenantId(string tenantId) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.