-
Notifications
You must be signed in to change notification settings - Fork 214
CreateFromResourceUrlAsync gone missing in ADAL 5.x preview 1 #1599
Comments
Change was intentional, however for certain scenarios makes sense that this is available as a static as well. @bgavrilMS ? |
@MattB-msft : Can you pls. describe the scenario where you need this? |
This is the common flow for our tools over the last several years to discover the authority and resource components for authentication. We used this method so as to not have to implement our own web request / fault mechanism.
This has been there since at least the 2.x version. Why remove it from the static interface and not supply a way to get at it.
MattB
…________________________________
From: henrikm <notifications@github.com>
Sent: Tuesday, May 14, 2019 2:26:37 PM
To: AzureAD/azure-activedirectory-library-for-dotnet
Cc: MattB; Mention
Subject: Re: [AzureAD/azure-activedirectory-library-for-dotnet] CreateFromResourceUrlAsync gone missing in ADAL 5.x preview 1 (#1599)
@MattB-msft<https://github.com/MattB-msft> : Can you pls. describe the scenario where you need this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#1599?email_source=notifications&email_token=ACQUENDJGHBEVAFUXHGOKM3PVMVA3A5CNFSM4HL6ZJXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVM2YSA#issuecomment-492416072>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ACQUENDXL5XCWTW5RO2A7L3PVMVA3ANCNFSM4HL6ZJXA>.
|
Yes, I see the problem. We refactored ADAL to use an abstraction over the http layer and we made these methods non-static to be able to inject an HttpManager. Sadly, the constructor is internal, so there is no way to use the public method. Here's what I propose:
|
@MattB-msft - you can use the following workaround until a new release is ready:
|
@MattB-msft - I was trying to write an Integration test for this helper class, but I couldn't actually find a resource that returns a 401. Typical MS resource like the graph just return an HTML message, and other resource, like Sharepoint return 403. What resource do you use this against? |
You can use this: https://disco.crm.dynamics.com/api/discovery/ note, you will still need to parse off the oauth2/authorize for 4.x+ ADAL clients. |
@MattB-msft fixed in adal 5.1.0 |
Which Version of ADAL are you using ?
ADAL5.0.1-preview => ADAL 5.0.5
Which platform has the issue?
,net462
What authentication flow has the issue?
Other? - please describe;
Repro
Expected behavior
CreateFromResourceUrlAsync is no longer present as static.. though it appears in GitHub codebase still.
Actual behavior
A clear and concise description of what happens, e.g. exception is thrown, UI freezes
Possible Solution
Looks like it got lost with this PR:
486c46c#diff-ac95f94d0b5f9e01efcf64255d0e85b1
Looks like this may have been a mistake?
You cannot create an instance of AuthenticationParameters to get at it.
The text was updated successfully, but these errors were encountered: