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

allow teamid to be accessible #1317

Merged
merged 2 commits into from
Oct 12, 2018
Merged

allow teamid to be accessible #1317

merged 2 commits into from
Oct 12, 2018

Conversation

jennyf19
Copy link
Contributor

@jennyf19 jennyf19 commented Oct 12, 2018

Fixes MSAL.NET #626: PublicClientApplication constructor throws exception when iPhone screen is locked

According to olga, the TeamId can be accessible always as there is no private info in it. This is to access TeamId when the phone is locked.

@@ -85,7 +85,8 @@ private string GetTeamId()
var queryRecord = new SecRecord(SecKind.GenericPassword)
{
Service = "",
Account = TeamIdKey
Account = TeamIdKey,
Accessible = SecAccessible.Always
Copy link
Contributor

@henrik-me henrik-me Oct 12, 2018

Choose a reason for hiding this comment

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

Always [](start = 43, length = 6)

I would suggest we use: _defaultAccessiblityPolicy, as that is what we use for everything else. not sure we need more than that. However Olga knows best!

Copy link
Contributor

@henrik-me henrik-me left a comment

Choose a reason for hiding this comment

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

:shipit:

@jennyf19 jennyf19 merged commit afcde0f into dev Oct 12, 2018
@jennyf19 jennyf19 deleted the jennyf/ios branch October 12, 2018 04:40
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.

None yet

2 participants