2121// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2222// THE SOFTWARE.
2323
24- extern NSString * MSIDErrorDescriptionKey ;
25- extern NSString * MSIDOAuthErrorKey ;
26- extern NSString * MSIDOAuthSubErrorKey ;
27- extern NSString * MSIDCorrelationIdKey ;
28- extern NSString * MSIDHTTPHeadersKey ;
29- extern NSString * MSIDHTTPResponseCodeKey ;
30- extern NSString * MSIDUserDisplayableIdkey ;
31- extern NSString * MSIDHomeAccountIdkey ;
32- extern NSString * MSIDBrokerVersionKey ;
24+ extern NSString * _Nonnull MSIDErrorDescriptionKey ;
25+ extern NSString * _Nonnull MSIDOAuthErrorKey ;
26+ extern NSString * _Nonnull MSIDOAuthSubErrorKey ;
27+ extern NSString * _Nonnull MSIDCorrelationIdKey ;
28+ extern NSString * _Nonnull MSIDHTTPHeadersKey ;
29+ extern NSString * _Nonnull MSIDHTTPResponseCodeKey ;
30+ extern NSString * _Nonnull MSIDUserDisplayableIdkey ;
31+ extern NSString * _Nonnull MSIDHomeAccountIdkey ;
32+ extern NSString * _Nonnull MSIDBrokerVersionKey ;
3333
3434/*!
3535 ADAL and MSID use different error domains and error codes.
@@ -38,10 +38,10 @@ extern NSString *MSIDBrokerVersionKey;
3838 domain mapping and error code mapping should be added to ADAuthenticationErrorConverter
3939 and MSIDErrorConveter in corresponding project.
4040 */
41- extern NSString * MSIDErrorDomain ;
42- extern NSString * MSIDOAuthErrorDomain ;
43- extern NSString * MSIDKeychainErrorDomain ;
44- extern NSString * MSIDHttpErrorCodeDomain ;
41+ extern NSString * _Nonnull MSIDErrorDomain ;
42+ extern NSString * _Nonnull MSIDOAuthErrorDomain ;
43+ extern NSString * _Nonnull MSIDKeychainErrorDomain ;
44+ extern NSString * _Nonnull MSIDHttpErrorCodeDomain ;
4545
4646/*!
4747 List of scopes that were requested from MSAL, but not granted in the response.
@@ -53,22 +53,22 @@ extern NSString *MSIDHttpErrorCodeDomain;
5353 * Requested scope is not supported for a particular account (Organizational scopes when it is a consumer account)
5454
5555 */
56- extern NSString * MSIDDeclinedScopesKey ;
56+ extern NSString * _Nonnull MSIDDeclinedScopesKey ;
5757
5858/*!
5959 List of granted scopes in case some scopes weren't granted (see MSALDeclinedScopesKey for more info)
6060 */
61- extern NSString * MSIDGrantedScopesKey ;
61+ extern NSString * _Nonnull MSIDGrantedScopesKey ;
6262
6363/*!
6464 This flag will be set if server is unavailable
6565 */
66- extern NSString * MSIDServerUnavailableStatusKey ;
66+ extern NSString * _Nonnull MSIDServerUnavailableStatusKey ;
6767
6868/*!
6969 This flag will be set if we received a valid token response, but returned data mismatched.
7070 */
71- extern NSString * MSIDInvalidTokenResultKey ;
71+ extern NSString * _Nonnull MSIDInvalidTokenResultKey ;
7272
7373/*!
7474 SSO extension failed with underlying error.
@@ -244,10 +244,10 @@ typedef NS_ENUM(NSInteger, MSIDErrorCode)
244244 MSIDErrorBrokerNotAvailable = -51814
245245};
246246
247- extern NSError * MSIDCreateError (NSString * domain , NSInteger code , NSString * errorDescription , NSString * oauthError , NSString * subError , NSError * underlyingError , NSUUID * correlationId , NSDictionary * additionalUserInfo , BOOL logErrorDescription );
247+ extern NSError * _Nonnull MSIDCreateError (NSString * _Nonnull domain , NSInteger code , NSString * _Nullable errorDescription , NSString * _Nullable oauthError , NSString * _Nullable subError , NSError * _Nullable underlyingError , NSUUID * _Nullable correlationId , NSDictionary * _Nullable additionalUserInfo , BOOL logErrorDescription );
248248
249- extern MSIDErrorCode MSIDErrorCodeForOAuthError (NSString * oauthError , MSIDErrorCode defaultCode );
249+ extern MSIDErrorCode MSIDErrorCodeForOAuthError (NSString * _Nullable oauthError , MSIDErrorCode defaultCode );
250250
251- extern NSDictionary < NSString * , NSArray * > * MSIDErrorDomainsAndCodes (void );
251+ extern NSDictionary < NSString * , NSArray * > * _Nonnull MSIDErrorDomainsAndCodes (void );
252252
253- extern void MSIDFillAndLogError (NSError * * error , MSIDErrorCode errorCode , NSString * errorDescription , NSUUID * correlationID );
253+ extern void MSIDFillAndLogError (NSError * _Nullable __autoreleasing * _Nullable error , MSIDErrorCode errorCode , NSString * _Nullable errorDescription , NSUUID * _Nullable correlationID );
0 commit comments