Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Jennyf/ios broker fixes #1614

Merged
merged 3 commits into from
Jun 11, 2019
Merged

Jennyf/ios broker fixes #1614

merged 3 commits into from
Jun 11, 2019

Conversation

jennyf19
Copy link
Contributor

@jennyf19 jennyf19 commented Jun 7, 2019

add logging
fix teamId default
fix keychain w/legacy cache persistence
fix issue with null ref

Tested w/iOS device w/broker (v2) and w/ interactive/silent flows and w/ and w/out the SetIosKeychainProperty

build passed here

jennyf19 added 2 commits June 7, 2019 15:35
add logging
fix teamId default
fix keychain w/legacy cache persistance
@jennyf19 jennyf19 requested a review from henrik-me June 7, 2019 22:38
else
{
// error_domain is a required field in a failed iOS broker response
tokenResponse.Error = responseDictionary[TokenResponseClaim.ErrorDomain];
Copy link
Member

@bgavrilMS bgavrilMS Jun 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does MSAL have this logic? #Resolved

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure...will check.


In reply to: 292153534 [](ancestors = 292153534)

{
public const string CacheKeyDelimiter = "-";
private const bool _defaultSyncSetting = false;
private const SecAccessible _defaultAccessiblityPolicy = SecAccessible.AfterFirstUnlockThisDeviceOnly;
Copy link
Member

@bgavrilMS bgavrilMS Jun 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const have different style, like the one at line 45 #Resolved

@@ -36,9 +36,24 @@

namespace Microsoft.Identity.Core
{
internal class iOSTokenCacheAccessor : ITokenCacheAccessor
internal class iOSTokenCacheAccessor : ITokenCacheAccessor, ILegacyCachePersistence
Copy link
Member

@bgavrilMS bgavrilMS Jun 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for backwards compat with ADAL v3. I would rather not do this unless there are customers who cannot use MSAL directly. ADAL v3 -> ADAL v5 / MSAL never worked as far as I can tell. #Resolved

@bgavrilMS
Copy link
Member

bgavrilMS commented Jun 10, 2019

I think the extra logging and the error description changes are fine and should be commited (please do). I would not make changes the to the iOS accessor. #Resolved

@jennyf19
Copy link
Contributor Author

yeah...sure...sounds good.


In reply to: 500560924 [](ancestors = 500560924)

@jennyf19 jennyf19 merged commit 0290dc1 into dev Jun 11, 2019
@jennyf19 jennyf19 deleted the jennyf/iosBrokerFixes branch June 11, 2019 14:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iOS Broker Null Ref in TokenResponse (Key missing)
2 participants