AzureAD / microsoft-authentication-library-for-objc

Microsoft Authentication Library (MSAL) for iOS and macOS
http://aka.ms/aadv2
MIT License
259 stars 141 forks source link

Feature request - API to allow apps to use their own NSURLSessionConfiguration #487

Open ghost opened 5 years ago

ghost commented 5 years ago

MSAL uses the default NSURLSessionConfiguration in MSIDURLSessionManager.m In our application, we need to use a custom protocol handler for https because we support two-factor authentication with a smart card. If there were an API so the app could choose a different NSURLSessionConfiguration, we could use MSAL directly without modifying it making integration much easier. This could be done with just a few lines changed in MSIDURLSessionManager.m

oldalton commented 5 years ago

@antrix1989 Is extensibility of network requests covered by configuration work?

oldalton commented 5 years ago

@danieldobalian FYI

antrix1989 commented 5 years ago

Current implementation of MSIDURLSessionManager is flexible enough to support this request, but we don't have any public API for that. We are considering adding this option to the public API.