├── .github
├── ISSUE_TEMPLATE
│ ├── bug_report.yml
│ ├── config.yml
│ ├── documentation.yml
│ └── feature_request.yml
├── config.yml
└── stale.yml
├── .gitignore
├── .gitmodules
├── CHANGELOG.md
├── CODEOWNERS
├── Images
└── keychain_example.png
├── LICENSE
├── MSAL.podspec
├── MSAL.xcworkspace
├── contents.xcworkspacedata
└── xcshareddata
│ ├── IDETemplateMacros.plist
│ ├── IDEWorkspaceChecks.plist
│ └── WorkspaceSettings.xcsettings
├── MSAL
├── .swiftlint.yml
├── MSAL Test App.entitlements
├── MSAL.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ ├── MSAL (Mac Framework).xcscheme
│ │ ├── MSAL (Mac Static Library).xcscheme
│ │ ├── MSAL (iOS Framework).xcscheme
│ │ ├── MSAL (iOS Static Library).xcscheme
│ │ ├── MSAL Mac Native Auth E2E Tests.xcscheme
│ │ ├── MSAL Test App (Mac).xcscheme
│ │ ├── MSAL Test App (iOS).xcscheme
│ │ ├── MSAL Test Automation (iOS).xcscheme
│ │ ├── MSAL iOS Native Auth E2E Tests.xcscheme
│ │ ├── unit-test-host-mac.xcscheme
│ │ └── unit-test-host.xcscheme
├── PrivacyInfo.xcprivacy
├── module.modulemap
├── resources
│ ├── ios
│ │ └── Info.plist
│ └── mac
│ │ └── Info.plist
├── src
│ ├── MSAL.pch
│ ├── MSALAccount+Internal.h
│ ├── MSALAccount.m
│ ├── MSALAccountEnumerationParameters+Private.h
│ ├── MSALAccountEnumerationParameters.m
│ ├── MSALAccountId+Internal.h
│ ├── MSALAccountId.m
│ ├── MSALAuthScheme.h
│ ├── MSALAuthScheme.m
│ ├── MSALAuthenticationSchemeBearer+Internal.h
│ ├── MSALAuthenticationSchemeBearer.m
│ ├── MSALAuthenticationSchemePop+Internal.h
│ ├── MSALAuthenticationSchemePop.m
│ ├── MSALAuthenticationSchemeProtocolInternal.h
│ ├── MSALClaimsRequest+Internal.h
│ ├── MSALClaimsRequest.m
│ ├── MSALDeviceInformation+Internal.h
│ ├── MSALDeviceInformation.m
│ ├── MSALError.m
│ ├── MSALErrorConverter+Internal.h
│ ├── MSALErrorConverter.h
│ ├── MSALErrorConverter.m
│ ├── MSALFramework.m
│ ├── MSALHttpMethod.m
│ ├── MSALIndividualClaimRequest+Internal.h
│ ├── MSALIndividualClaimRequest.m
│ ├── MSALIndividualClaimRequestAdditionalInfo+Internal.h
│ ├── MSALIndividualClaimRequestAdditionalInfo.m
│ ├── MSALInteractiveTokenParameters.m
│ ├── MSALParameters.m
│ ├── MSALPromptType.m
│ ├── MSALPromptType_Internal.h
│ ├── MSALPublicClientApplication+Internal.h
│ ├── MSALPublicClientApplication.m
│ ├── MSALPublicClientStatusNotifications.m
│ ├── MSALResult+Internal.h
│ ├── MSALResult.m
│ ├── MSALSignoutParameters.m
│ ├── MSALSilentTokenParameters.m
│ ├── MSALTelemetryApiId.h
│ ├── MSALTenantProfile+Internal.h
│ ├── MSALTenantProfile.m
│ ├── MSALTokenParameters+Internal.h
│ ├── MSALTokenParameters.m
│ ├── MSALWPJMetaData+Internal.h
│ ├── MSALWPJMetaData.m
│ ├── MSALWebviewType.m
│ ├── MSALWebviewType_Internal.h
│ ├── MSAL_Internal.h
│ ├── MSIDInteractiveRequestParameters+MSALRequest.h
│ ├── MSIDInteractiveRequestParameters+MSALRequest.m
│ ├── MSIDVersion.m
│ ├── configuration
│ │ ├── MSALCacheConfig+Internal.h
│ │ ├── MSALCacheConfig.m
│ │ ├── MSALExtraQueryParameters.h
│ │ ├── MSALExtraQueryParameters.m
│ │ ├── MSALGlobalConfig+Internal.h
│ │ ├── MSALGlobalConfig.m
│ │ ├── MSALHTTPConfig+Internal.h
│ │ ├── MSALHTTPConfig.m
│ │ ├── MSALLoggerConfig+Internal.h
│ │ ├── MSALLoggerConfig.m
│ │ ├── MSALPublicClientApplicationConfig+Internal.h
│ │ ├── MSALPublicClientApplicationConfig.m
│ │ ├── MSALSliceConfig.m
│ │ ├── MSALTelemetryConfig+Internal.h
│ │ ├── MSALTelemetryConfig.m
│ │ ├── MSALWebviewParameters.m
│ │ ├── MSALWipeCacheForAllAccountsConfig.m
│ │ └── external
│ │ │ ├── MSALExternalAccountHandler.h
│ │ │ ├── MSALExternalAccountHandler.m
│ │ │ ├── MSALSerializedADALCacheProvider+Internal.h
│ │ │ ├── MSALSerializedADALCacheProvider.m
│ │ │ └── ios
│ │ │ ├── MSALLegacySharedADALAccount.h
│ │ │ ├── MSALLegacySharedADALAccount.m
│ │ │ ├── MSALLegacySharedAccount.h
│ │ │ ├── MSALLegacySharedAccount.m
│ │ │ ├── MSALLegacySharedAccountFactory.h
│ │ │ ├── MSALLegacySharedAccountFactory.m
│ │ │ ├── MSALLegacySharedAccountsProvider+Internal.h
│ │ │ ├── MSALLegacySharedAccountsProvider.m
│ │ │ ├── MSALLegacySharedMSAAccount.h
│ │ │ ├── MSALLegacySharedMSAAccount.m
│ │ │ ├── NSString+MSALAccountIdenfiers.h
│ │ │ └── NSString+MSALAccountIdenfiers.m
│ ├── instance
│ │ ├── MSALAADAuthority.m
│ │ ├── MSALADFSAuthority.m
│ │ ├── MSALAccountsProvider.h
│ │ ├── MSALAccountsProvider.m
│ │ ├── MSALAuthority.m
│ │ ├── MSALAuthority_Internal.h
│ │ ├── MSALB2CAuthority.m
│ │ ├── MSALB2CAuthority_Internal.h
│ │ ├── MSALCIAMAuthority.m
│ │ ├── MSALDeviceInfoProvider.h
│ │ ├── MSALDeviceInfoProvider.m
│ │ ├── MSALOauth2Authority.h
│ │ ├── MSALOauth2Authority.m
│ │ ├── MSALOauth2ProviderFactory.h
│ │ ├── MSALOauth2ProviderFactory.m
│ │ ├── MSALSSOExtensionRequestHandler.h
│ │ ├── MSALSSOExtensionRequestHandler.m
│ │ └── oauth2
│ │ │ ├── MSALOauth2Provider+Internal.h
│ │ │ ├── MSALOauth2Provider.h
│ │ │ ├── MSALOauth2Provider.m
│ │ │ ├── aad
│ │ │ ├── MSALAADOauth2Provider.h
│ │ │ └── MSALAADOauth2Provider.m
│ │ │ ├── adfs
│ │ │ ├── MSALADFSOauth2Provider.h
│ │ │ └── MSALADFSOauth2Provider.m
│ │ │ ├── b2c
│ │ │ ├── MSALB2COauth2Provider.h
│ │ │ └── MSALB2COauth2Provider.m
│ │ │ └── ciam
│ │ │ ├── MSALCIAMOauth2Provider.h
│ │ │ └── MSALCIAMOauth2Provider.m
│ ├── native_auth
│ │ ├── MSALNativeAuthInternalError.swift
│ │ ├── MSALNativeAuthLogMessage.swift
│ │ ├── cache
│ │ │ ├── MSALNativeAuthCacheAccessor.swift
│ │ │ └── MSALNativeAuthCacheInterface.swift
│ │ ├── client_application_wrapper
│ │ │ └── silent_token
│ │ │ │ ├── MSALNativeAuthSilentTokenProvider.swift
│ │ │ │ ├── MSALNativeAuthSilentTokenProviding.swift
│ │ │ │ └── factory
│ │ │ │ ├── MSALNativeAuthSilentTokenProviderBuildable.swift
│ │ │ │ └── MSALNativeAuthSilentTokenProviderFactory.swift
│ │ ├── configuration
│ │ │ └── MSALNativeAuthConfiguration.swift
│ │ ├── controllers
│ │ │ ├── MSALNativeAuthBaseController.swift
│ │ │ ├── MSALNativeAuthControllerTelemetryWrapper.swift
│ │ │ ├── MSALNativeAuthTokenController.swift
│ │ │ ├── credentials
│ │ │ │ ├── MSALNativeAuthCredentialsController.swift
│ │ │ │ └── MSALNativeAuthCredentialsControlling.swift
│ │ │ ├── factories
│ │ │ │ ├── MSALNativeAuthCacheAccessorFactory.swift
│ │ │ │ ├── MSALNativeAuthControllerFactory.swift
│ │ │ │ └── MSALNativeAuthResultFactory.swift
│ │ │ ├── jit
│ │ │ │ ├── MSALNativeAuthJITController.swift
│ │ │ │ └── MSALNativeAuthJITControlling.swift
│ │ │ ├── reset_password
│ │ │ │ ├── MSALNativeAuthResetPasswordController.swift
│ │ │ │ └── MSALNativeAuthResetPasswordControlling.swift
│ │ │ ├── responses
│ │ │ │ ├── CodeRequiredGenericResult.swift
│ │ │ │ ├── JITResults.swift
│ │ │ │ ├── MFAResults.swift
│ │ │ │ ├── ResetPasswordResults.swift
│ │ │ │ ├── SignInResults.swift
│ │ │ │ └── SignUpResults.swift
│ │ │ ├── sign_in
│ │ │ │ ├── MSALNativeAuthInternalSignInParameters.swift
│ │ │ │ ├── MSALNativeAuthMFAControlling.swift
│ │ │ │ ├── MSALNativeAuthSignInController.swift
│ │ │ │ └── MSALNativeAuthSignInControlling.swift
│ │ │ └── sign_up
│ │ │ │ ├── MSALNativeAuthSignUpController.swift
│ │ │ │ └── MSALNativeAuthSignUpControlling.swift
│ │ ├── extension
│ │ │ └── Array+joinScopes.swift
│ │ ├── input_validator
│ │ │ └── MSALNativeAuthInputValidator.swift
│ │ ├── logger
│ │ │ ├── MSALLogMask.h
│ │ │ ├── MSALLogMask.m
│ │ │ ├── MSALNativeAuthLogger.swift
│ │ │ └── MSALNativeAuthLogging.swift
│ │ ├── network
│ │ │ ├── MSALNativeAuthCustomErrorSerializer.swift
│ │ │ ├── MSALNativeAuthEndpoint.swift
│ │ │ ├── MSALNativeAuthGrantType.swift
│ │ │ ├── MSALNativeAuthInternalChallengeType.swift
│ │ │ ├── MSALNativeAuthRequestConfigurator.swift
│ │ │ ├── MSALNativeAuthRequestParametersKey.swift
│ │ │ ├── MSALNativeAuthResponseCorrelatable.swift
│ │ │ ├── MSALNativeAuthResponseErrorHandler.swift
│ │ │ ├── MSALNativeAuthResponseSerializer.swift
│ │ │ ├── MSALNativeAuthUnknownCaseProtocol.swift
│ │ │ ├── MSALNativeAuthUrlRequestSerializer.swift
│ │ │ ├── errors
│ │ │ │ ├── MSALNativeAuthESTSApiErrorCodes.swift
│ │ │ │ ├── MSALNativeAuthESTSApiErrorDescriptions.swift
│ │ │ │ ├── MSALNativeAuthErrorMessage.swift
│ │ │ │ ├── MSALNativeAuthInnerError.swift
│ │ │ │ ├── MSALNativeAuthResponseError.swift
│ │ │ │ ├── MSALNativeAuthSubErrorCode.swift
│ │ │ │ ├── jit
│ │ │ │ │ ├── MSALNativeAuthJITChallengeOauth2ErrorCode.swift
│ │ │ │ │ ├── MSALNativeAuthJITChallengeResponseError.swift
│ │ │ │ │ ├── MSALNativeAuthJITContinueOauth2ErrorCode.swift
│ │ │ │ │ ├── MSALNativeAuthJITContinueResponseError.swift
│ │ │ │ │ ├── MSALNativeAuthJITIntrospectOauth2ErrorCode.swift
│ │ │ │ │ └── MSALNativeAuthJITIntrospectResponseError.swift
│ │ │ │ ├── reset_password
│ │ │ │ │ ├── MSALNativeAuthResetPasswordChallengeOauth2ErrorCode.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordChallengeResponseError.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordContinueOauth2ErrorCode.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordContinueResponseError.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordPollCompletionOauth2ErrorCode.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordPollCompletionResponseError.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordStartOauth2ErrorCode.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordStartResponseError.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordSubmitOauth2ErrorCode.swift
│ │ │ │ │ └── MSALNativeAuthResetPasswordSubmitResponseError.swift
│ │ │ │ ├── sign_in
│ │ │ │ │ ├── MSALNativeAuthSignInChallengeOauth2ErrorCode.swift
│ │ │ │ │ ├── MSALNativeAuthSignInChallengeResponseError.swift
│ │ │ │ │ ├── MSALNativeAuthSignInInitiateOauth2ErrorCode.swift
│ │ │ │ │ ├── MSALNativeAuthSignInInitiateResponseError.swift
│ │ │ │ │ ├── MSALNativeAuthSignInIntrospectOauth2ErrorCode.swift
│ │ │ │ │ └── MSALNativeAuthSignInIntrospectResponseError.swift
│ │ │ │ ├── sign_up
│ │ │ │ │ ├── MSALNativeAuthErrorBasicAttribute.swift
│ │ │ │ │ ├── MSALNativeAuthRequiredAttributeInternal.swift
│ │ │ │ │ ├── MSALNativeAuthRequiredAttributeOptions.swift
│ │ │ │ │ ├── MSALNativeAuthSignUpChallengeOauth2ErrorCode.swift
│ │ │ │ │ ├── MSALNativeAuthSignUpChallengeResponseError.swift
│ │ │ │ │ ├── MSALNativeAuthSignUpContinueOauth2ErrorCode.swift
│ │ │ │ │ ├── MSALNativeAuthSignUpContinueResponseError.swift
│ │ │ │ │ ├── MSALNativeAuthSignUpStartOauth2ErrorCode.swift
│ │ │ │ │ └── MSALNativeAuthSignUpStartResponseError.swift
│ │ │ │ └── token
│ │ │ │ │ ├── MSALNativeAuthTokenOauth2ErrorCode.swift
│ │ │ │ │ └── MSALNativeAuthTokenResponseError.swift
│ │ │ ├── jit
│ │ │ │ └── MSALNativeAuthJITRequestProvider.swift
│ │ │ ├── parameters
│ │ │ │ ├── MSALNativeAuthRequestContext.swift
│ │ │ │ ├── MSALNativeAuthRequestable.swift
│ │ │ │ ├── jit
│ │ │ │ │ ├── MSALNativeAuthJITChallengeRequestParameters.swift
│ │ │ │ │ ├── MSALNativeAuthJITContinueRequestParameters.swift
│ │ │ │ │ └── MSALNativeAuthJITIntrospectRequestParameters.swift
│ │ │ │ ├── reset_password
│ │ │ │ │ ├── MSALNativeAuthResetPasswordChallengeRequestParameters.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordContinueRequestParameters.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordPollCompletionRequestParameters.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordStartRequestParameters.swift
│ │ │ │ │ └── MSALNativeAuthResetPasswordSubmitRequestParameters.swift
│ │ │ │ ├── sign_in
│ │ │ │ │ ├── MSALNativeAuthSignInChallengeRequestParameters.swift
│ │ │ │ │ ├── MSALNativeAuthSignInInitiateRequestParameters.swift
│ │ │ │ │ └── MSALNativeAuthSignInIntrospectRequestParameters.swift
│ │ │ │ ├── sign_up
│ │ │ │ │ ├── MSALNativeAuthSignUpChallengeRequestParameters.swift
│ │ │ │ │ ├── MSALNativeAuthSignUpContinueRequestParameters.swift
│ │ │ │ │ └── MSALNativeAuthSignUpStartRequestParameters.swift
│ │ │ │ └── token
│ │ │ │ │ └── MSALNativeAuthTokenRequestParameters.swift
│ │ │ ├── reset_password
│ │ │ │ ├── MSALNativeAuthResetPasswordRequestProvider.swift
│ │ │ │ └── MSALNativeAuthResetPasswordStartRequestProviderParameters.swift
│ │ │ ├── responses
│ │ │ │ ├── MSALNativeAuthResendCodeRequestResponse.swift
│ │ │ │ ├── jit
│ │ │ │ │ ├── MSALNativeAuthJITChallengeResponse.swift
│ │ │ │ │ ├── MSALNativeAuthJITContinueResponse.swift
│ │ │ │ │ └── MSALNativeAuthJITIntrospectResponse.swift
│ │ │ │ ├── reset_password
│ │ │ │ │ ├── MSALNativeAuthResetPasswordChallengeResponse.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordContinueResponse.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordPollCompletionResponse.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordPollCompletionStatus.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordStartResponse.swift
│ │ │ │ │ └── MSALNativeAuthResetPasswordSubmitResponse.swift
│ │ │ │ ├── sign_in
│ │ │ │ │ ├── MSALNativeAuthInternalAuthenticationMethod.swift
│ │ │ │ │ ├── MSALNativeAuthSignInChallengeResponse.swift
│ │ │ │ │ ├── MSALNativeAuthSignInInitiateResponse.swift
│ │ │ │ │ └── MSALNativeAuthSignInIntrospectResponse.swift
│ │ │ │ ├── sign_up
│ │ │ │ │ ├── MSALNativeAuthSignUpChallengeResponse.swift
│ │ │ │ │ ├── MSALNativeAuthSignUpContinueResponse.swift
│ │ │ │ │ └── MSALNativeAuthSignUpStartResponse.swift
│ │ │ │ └── validator
│ │ │ │ │ ├── jit
│ │ │ │ │ ├── MSALNativeAuthJITResponseValidator.swift
│ │ │ │ │ └── validated_response
│ │ │ │ │ │ ├── MSALNativeAuthJITChallengeValidatedResponse.swift
│ │ │ │ │ │ ├── MSALNativeAuthJITContinueValidatedResponse.swift
│ │ │ │ │ │ └── MSALNativeAuthJITIntrospectValidatedResponse.swift
│ │ │ │ │ ├── reset_password
│ │ │ │ │ ├── MSALNativeAuthResetPasswordResponseValidator.swift
│ │ │ │ │ └── MSALNativeAuthResetPasswordValidatedResponses.swift
│ │ │ │ │ ├── sign_in
│ │ │ │ │ ├── MSALNativeAuthSignInResponseValidator.swift
│ │ │ │ │ └── validated_response
│ │ │ │ │ │ ├── MSALNativeAuthSignInChallengeValidatedResponse.swift
│ │ │ │ │ │ ├── MSALNativeAuthSignInInitiateValidatedResponse.swift
│ │ │ │ │ │ └── MSALNativeAuthSignInIntrospectValidatedResponse.swift
│ │ │ │ │ ├── sign_up
│ │ │ │ │ ├── MSALNativeAuthSignUpResponseValidator.swift
│ │ │ │ │ └── MSALNativeAuthSignUpValidatedResponses.swift
│ │ │ │ │ └── token
│ │ │ │ │ ├── MSALNativeAuthTokenResponseValidator.swift
│ │ │ │ │ └── validated_response
│ │ │ │ │ └── MSALNativeAuthTokenValidatedResponse.swift
│ │ │ ├── sign_in
│ │ │ │ └── MSALNativeAuthSignInRequestProvider.swift
│ │ │ ├── sign_up
│ │ │ │ ├── MSALNativeAuthSignUpContinueRequestProviderParams.swift
│ │ │ │ ├── MSALNativeAuthSignUpRequestProvider.swift
│ │ │ │ └── MSALNativeAuthSignUpStartRequestProviderParameters.swift
│ │ │ └── token
│ │ │ │ └── MSALNativeAuthTokenRequestProvider.swift
│ │ ├── public
│ │ │ ├── MSALAuthMethod.swift
│ │ │ ├── MSALNativeAuthChallengeTypes.h
│ │ │ ├── MSALNativeAuthChannelType.swift
│ │ │ ├── MSALNativeAuthPublicClientApplication+Internal.swift
│ │ │ ├── MSALNativeAuthPublicClientApplication.swift
│ │ │ ├── parameters
│ │ │ │ ├── MSALNativeAuthChallengeAuthMethodParameters.swift
│ │ │ │ ├── MSALNativeAuthGetAccessTokenParameters.swift
│ │ │ │ ├── MSALNativeAuthResetPasswordParameters.swift
│ │ │ │ ├── MSALNativeAuthSignInAfterResetPasswordParameters .swift
│ │ │ │ ├── MSALNativeAuthSignInAfterSignUpParameters.swift
│ │ │ │ ├── MSALNativeAuthSignInParameters.swift
│ │ │ │ └── MSALNativeAuthSignUpParameters.swift
│ │ │ └── state_machine
│ │ │ │ ├── MSALNativeAuthRequiredAttribute.swift
│ │ │ │ ├── delegate
│ │ │ │ ├── CredentialsDelegates.swift
│ │ │ │ ├── JITDelegates.swift
│ │ │ │ ├── MFADelegates.swift
│ │ │ │ ├── ResetPasswordDelegates.swift
│ │ │ │ ├── SignInAfterResetPasswordDelegate.swift
│ │ │ │ ├── SignInAfterSignUpDelegate.swift
│ │ │ │ ├── SignInDelegates.swift
│ │ │ │ └── SignUpDelegates.swift
│ │ │ │ ├── delegate_dispatcher
│ │ │ │ ├── CredentialsDelegateDispatcher.swift
│ │ │ │ ├── DelegateDispatcher.swift
│ │ │ │ ├── JITDelegateDispatchers.swift
│ │ │ │ ├── MFADelegateDispatchers.swift
│ │ │ │ ├── ResetPasswordDelegateDispatchers.swift
│ │ │ │ ├── SignInAfterResetPasswordDelegateDispatcher.swift
│ │ │ │ ├── SignInAfterSignUpDelegateDispatcher.swift
│ │ │ │ ├── SignInDelegateDispatchers.swift
│ │ │ │ └── SignUpDelegateDispatchers.swift
│ │ │ │ ├── error
│ │ │ │ ├── AttributesRequiredError.swift
│ │ │ │ ├── MFAGetAuthMethodsError.swift
│ │ │ │ ├── MFARequestChallengeError.swift
│ │ │ │ ├── MFASubmitChallengeError.swift
│ │ │ │ ├── MSALNativeAuthError.swift
│ │ │ │ ├── PasswordRequiredError.swift
│ │ │ │ ├── RegisterStrongAuthChallengeError.swift
│ │ │ │ ├── RegisterStrongAuthSubmitChallengeError.swift
│ │ │ │ ├── ResendCodeError.swift
│ │ │ │ ├── ResetPasswordStartError.swift
│ │ │ │ ├── RetrieveAccessTokenError.swift
│ │ │ │ ├── SignInAfterResetPasswordError.swift
│ │ │ │ ├── SignInAfterSignUpError.swift
│ │ │ │ ├── SignInStartError.swift
│ │ │ │ ├── SignUpStartError.swift
│ │ │ │ └── VerifyCodeError.swift
│ │ │ │ ├── result
│ │ │ │ ├── MSALNativeAuthRegisterStrongAuthVerificationRequiredResult.swift
│ │ │ │ ├── MSALNativeAuthTokenResult.swift
│ │ │ │ ├── MSALNativeAuthUserAccountResult+Internal.swift
│ │ │ │ └── MSALNativeAuthUserAccountResult.swift
│ │ │ │ └── state
│ │ │ │ ├── JITStates+Internal.swift
│ │ │ │ ├── JITStates.swift
│ │ │ │ ├── MFAStates+Internal.swift
│ │ │ │ ├── MFAStates.swift
│ │ │ │ ├── MSALNativeAuthBaseState.swift
│ │ │ │ ├── ResetPasswordStates+Internal.swift
│ │ │ │ ├── ResetPasswordStates.swift
│ │ │ │ ├── SignInAfterPreviousFlowBaseState+Internal.swift
│ │ │ │ ├── SignInAfterPreviousFlowBaseState.swift
│ │ │ │ ├── SignInAfterResetPasswordState.swift
│ │ │ │ ├── SignInAfterSignUpState.swift
│ │ │ │ ├── SignInStates+Internal.swift
│ │ │ │ ├── SignInStates.swift
│ │ │ │ ├── SignUpStates+Internal.swift
│ │ │ │ └── SignUpStates.swift
│ │ ├── telemetry
│ │ │ ├── MSALNativeAuthCurrentRequestTelemetry.swift
│ │ │ ├── MSALNativeAuthOperationTypes.swift
│ │ │ ├── MSALNativeAuthServerTelemetry.swift
│ │ │ ├── MSALNativeAuthTelemetryApiId.swift
│ │ │ └── MSALNativeAuthTelemetryProvider.swift
│ │ └── validation
│ │ │ └── MSALNativeAuthAuthorityProvider.swift
│ ├── public
│ │ ├── MSAL.h
│ │ ├── MSALAADAuthority.h
│ │ ├── MSALADFSAuthority.h
│ │ ├── MSALAccount.h
│ │ ├── MSALAccountEnumerationParameters.h
│ │ ├── MSALAccountId.h
│ │ ├── MSALAuthenticationSchemeBearer.h
│ │ ├── MSALAuthenticationSchemePop.h
│ │ ├── MSALAuthenticationSchemeProtocol.h
│ │ ├── MSALAuthority.h
│ │ ├── MSALB2CAuthority.h
│ │ ├── MSALCIAMAuthority.h
│ │ ├── MSALClaimsRequest.h
│ │ ├── MSALDefinitions.h
│ │ ├── MSALDeviceInformation.h
│ │ ├── MSALError.h
│ │ ├── MSALHttpMethod.h
│ │ ├── MSALIndividualClaimRequest.h
│ │ ├── MSALIndividualClaimRequestAdditionalInfo.h
│ │ ├── MSALInteractiveTokenParameters.h
│ │ ├── MSALJsonDeserializable.h
│ │ ├── MSALJsonSerializable.h
│ │ ├── MSALParameters.h
│ │ ├── MSALPublicClientApplication+SingleAccount.h
│ │ ├── MSALPublicClientApplication.h
│ │ ├── MSALPublicClientStatusNotifications.h
│ │ ├── MSALRedirectUri.h
│ │ ├── MSALResult.h
│ │ ├── MSALSignoutParameters.h
│ │ ├── MSALSilentTokenParameters.h
│ │ ├── MSALTenantProfile.h
│ │ ├── MSALTokenParameters.h
│ │ ├── MSALWPJMetaData.h
│ │ ├── MSALWebviewParameters.h
│ │ ├── configuration
│ │ │ ├── MSALGlobalConfig.h
│ │ │ ├── MSALPublicClientApplicationConfig.h
│ │ │ ├── global
│ │ │ │ ├── MSALHTTPConfig.h
│ │ │ │ ├── MSALLoggerConfig.h
│ │ │ │ └── MSALTelemetryConfig.h
│ │ │ └── publicClientApplication
│ │ │ │ ├── MSALSliceConfig.h
│ │ │ │ └── cache
│ │ │ │ ├── MSALCacheConfig.h
│ │ │ │ ├── MSALExternalAccountProviding.h
│ │ │ │ ├── MSALSerializedADALCacheProvider.h
│ │ │ │ └── MSALWipeCacheForAllAccountsConfig.h
│ │ └── ios
│ │ │ └── cache
│ │ │ └── MSALLegacySharedAccountsProvider.h
│ ├── telemetry
│ │ ├── MSALTelemetryEventsObservingProxy.h
│ │ └── MSALTelemetryEventsObservingProxy.m
│ └── util
│ │ ├── MSALRedirectUri+Internal.h
│ │ ├── MSALRedirectUri.m
│ │ ├── MSALRedirectUriVerifier.h
│ │ └── MSALRedirectUriVerifier.m
├── test
│ ├── NSString+MSALTestUtil.h
│ ├── NSString+MSALTestUtil.m
│ ├── XCTestCase+HelperMethods.h
│ ├── XCTestCase+HelperMethods.m
│ ├── app
│ │ ├── MSALStressTestHelper.h
│ │ ├── MSALStressTestHelper.m
│ │ ├── MSALTestAppSettings.h
│ │ ├── MSALTestAppSettings.m
│ │ ├── ios
│ │ │ ├── Launch Screen.storyboard
│ │ │ ├── MSALCacheItemDetailViewController.h
│ │ │ ├── MSALCacheItemDetailViewController.m
│ │ │ ├── MSALTestAppAcquireLayoutBuilder.h
│ │ │ ├── MSALTestAppAcquireLayoutBuilder.m
│ │ │ ├── MSALTestAppAcquireTokenViewController.h
│ │ │ ├── MSALTestAppAcquireTokenViewController.m
│ │ │ ├── MSALTestAppAcquireTokenViewController.storyboard
│ │ │ ├── MSALTestAppAsymmetricKey.h
│ │ │ ├── MSALTestAppAsymmetricKey.m
│ │ │ ├── MSALTestAppAuthorityTypeViewController.h
│ │ │ ├── MSALTestAppAuthorityTypeViewController.m
│ │ │ ├── MSALTestAppAuthorityViewController.h
│ │ │ ├── MSALTestAppAuthorityViewController.m
│ │ │ ├── MSALTestAppB2CAuthorityViewController.h
│ │ │ ├── MSALTestAppB2CAuthorityViewController.m
│ │ │ ├── MSALTestAppCacheViewController.h
│ │ │ ├── MSALTestAppCacheViewController.m
│ │ │ ├── MSALTestAppDelegate.h
│ │ │ ├── MSALTestAppDelegate.m
│ │ │ ├── MSALTestAppLogViewController.h
│ │ │ ├── MSALTestAppLogViewController.m
│ │ │ ├── MSALTestAppProfileViewController.h
│ │ │ ├── MSALTestAppProfileViewController.m
│ │ │ ├── MSALTestAppScopesViewController.h
│ │ │ ├── MSALTestAppScopesViewController.m
│ │ │ ├── MSALTestAppSettingViewController.h
│ │ │ ├── MSALTestAppSettingViewController.m
│ │ │ ├── MSALTestAppSettingsViewController.h
│ │ │ ├── MSALTestAppSettingsViewController.m
│ │ │ ├── MSALTestAppTelemetryViewController.h
│ │ │ ├── MSALTestAppTelemetryViewController.m
│ │ │ ├── MSALTestAppUserViewController.h
│ │ │ ├── MSALTestAppUserViewController.m
│ │ │ ├── main.m
│ │ │ └── resources
│ │ │ │ ├── Images.xcassets
│ │ │ │ ├── AppIcon.appiconset
│ │ │ │ │ ├── Contents.json
│ │ │ │ │ ├── adal_purple_icon-1024.png
│ │ │ │ │ ├── adal_purple_icon-20@2x.png
│ │ │ │ │ ├── adal_purple_icon-20@3x.png
│ │ │ │ │ ├── adal_purple_icon-29.png
│ │ │ │ │ ├── adal_purple_icon-29@2x.png
│ │ │ │ │ ├── adal_purple_icon-29@3x.png
│ │ │ │ │ ├── adal_purple_icon-40@2x.png
│ │ │ │ │ ├── adal_purple_icon-40@3x.png
│ │ │ │ │ ├── adal_purple_icon-60@2x.png
│ │ │ │ │ ├── adal_purple_icon-60@3x.png
│ │ │ │ │ ├── adal_purple_icon-83.5@2x.png
│ │ │ │ │ └── adal_purple_icon.png
│ │ │ │ └── Contents.json
│ │ │ │ └── Info.plist
│ │ ├── mac
│ │ │ ├── Assets.xcassets
│ │ │ │ ├── AppIcon.appiconset
│ │ │ │ │ └── Contents.json
│ │ │ │ └── Contents.json
│ │ │ ├── Base.lproj
│ │ │ │ └── Main.storyboard
│ │ │ ├── Info.plist
│ │ │ ├── MSALAcquireTokenViewController.h
│ │ │ ├── MSALAcquireTokenViewController.m
│ │ │ ├── MSALAppDelegate.h
│ │ │ ├── MSALAppDelegate.m
│ │ │ ├── MSALCacheViewController.h
│ │ │ ├── MSALCacheViewController.m
│ │ │ ├── MSALMacTestApp.entitlements
│ │ │ ├── MSALScopesViewController.h
│ │ │ ├── MSALScopesViewController.m
│ │ │ └── main.m
│ │ └── vision
│ │ │ ├── ContentView.swift
│ │ │ ├── MSALTestAppView.swift
│ │ │ ├── MSALTestAppVisionViewController.swift
│ │ │ ├── MSAL_Test_App-Bridging-Header.h
│ │ │ ├── MSAL_Test_App.swift
│ │ │ └── resources
│ │ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.solidimagestack
│ │ │ │ ├── Back.solidimagestacklayer
│ │ │ │ │ ├── Content.imageset
│ │ │ │ │ │ └── Contents.json
│ │ │ │ │ └── Contents.json
│ │ │ │ ├── Contents.json
│ │ │ │ ├── Front.solidimagestacklayer
│ │ │ │ │ ├── Content.imageset
│ │ │ │ │ │ └── Contents.json
│ │ │ │ │ └── Contents.json
│ │ │ │ └── Middle.solidimagestacklayer
│ │ │ │ │ ├── Content.imageset
│ │ │ │ │ └── Contents.json
│ │ │ │ │ └── Contents.json
│ │ │ └── Contents.json
│ │ │ ├── Info.plist
│ │ │ ├── MSAL Test App (visionOS).entitlements
│ │ │ └── Preview Content
│ │ │ └── Preview Assets.xcassets
│ │ │ └── Contents.json
│ ├── automation
│ │ ├── ios
│ │ │ ├── Launch Screen.storyboard
│ │ │ ├── MSALAutoAppDelegate.h
│ │ │ ├── MSALAutoAppDelegate.m
│ │ │ ├── MSALAutomation.entitlements
│ │ │ ├── actions
│ │ │ │ ├── MSALAutomationAcquireTokenAction.h
│ │ │ │ ├── MSALAutomationAcquireTokenAction.m
│ │ │ │ ├── MSALAutomationAcquireTokenSilentAction.h
│ │ │ │ ├── MSALAutomationAcquireTokenSilentAction.m
│ │ │ │ ├── MSALAutomationBaseAction.h
│ │ │ │ ├── MSALAutomationBaseAction.m
│ │ │ │ ├── MSALAutomationExpireATAction.h
│ │ │ │ ├── MSALAutomationExpireATAction.m
│ │ │ │ ├── MSALAutomationInvalidateRTAction.h
│ │ │ │ ├── MSALAutomationInvalidateRTAction.m
│ │ │ │ ├── MSALAutomationReadAccountsAction.h
│ │ │ │ ├── MSALAutomationReadAccountsAction.m
│ │ │ │ ├── MSALAutomationRemoveAccountAction.h
│ │ │ │ └── MSALAutomationRemoveAccountAction.m
│ │ │ ├── main.m
│ │ │ ├── resources
│ │ │ │ ├── Images.xcassets
│ │ │ │ │ ├── AppIcon.appiconset
│ │ │ │ │ │ └── Contents.json
│ │ │ │ │ └── Contents.json
│ │ │ │ └── Info.plist
│ │ │ └── util
│ │ │ │ ├── MSALResult+Automation.h
│ │ │ │ ├── MSALResult+Automation.m
│ │ │ │ ├── MSALUser+Automation.h
│ │ │ │ ├── MSALUser+Automation.m
│ │ │ │ ├── MSIDTokenCacheItem+Automation.h
│ │ │ │ └── MSIDTokenCacheItem+Automation.m
│ │ └── tests
│ │ │ ├── MSALADFSBaseUITest.h
│ │ │ ├── MSALADFSBaseUITest.m
│ │ │ ├── MSALBaseAADUITest.h
│ │ │ ├── MSALBaseAADUITest.m
│ │ │ ├── MSALBaseUITest.h
│ │ │ ├── MSALBaseUITest.m
│ │ │ ├── MSALBaseiOSUITest.h
│ │ │ ├── MSALBaseiOSUITest.m
│ │ │ ├── MSALTestsConfig.h
│ │ │ ├── MSALTestsConfig.m
│ │ │ ├── MSALUITests.swift
│ │ │ ├── NSDictionary+MSALiOSUITests.h
│ │ │ ├── NSDictionary+MSALiOSUITests.m
│ │ │ ├── XCUIElement+MSALiOSUITests.h
│ │ │ ├── XCUIElement+MSALiOSUITests.m
│ │ │ ├── interactive
│ │ │ ├── Info.plist
│ │ │ ├── MSALAADBasicInteractiveTests.m
│ │ │ ├── MSALAADMultiUserTests.m
│ │ │ ├── MSALADFSv3FederatedTests.m
│ │ │ ├── MSALADFSv4FederatedTests.m
│ │ │ ├── MSALB2CInteractiveTests.m
│ │ │ ├── MSALCIAMAuthorityTests.m
│ │ │ ├── MSALCacheRemovalTests.m
│ │ │ ├── MSALChinaCloudUITests.m
│ │ │ ├── MSALGuestUserTests.m
│ │ │ ├── MSALMSABasicInteractiveTests.m
│ │ │ ├── MSALNationalCloudUITest.h
│ │ │ ├── MSALNationalCloudUITest.m
│ │ │ ├── MSALPingUITests.m
│ │ │ ├── MSALShibUITests.m
│ │ │ └── MSALUSGovUITests.m
│ │ │ └── multiapp
│ │ │ ├── MSALDotNetCacheCoexistenceTests.m
│ │ │ ├── MSALMultiAppCacheCoexistenceTests.m
│ │ │ ├── MSALNonUnifiedADALCoexistenceCacheTests.m
│ │ │ └── MSALUnifiedADALCacheCoexistenceTests.m
│ ├── integration
│ │ └── native_auth
│ │ │ ├── MockAPIHandlerTest.swift
│ │ │ ├── common
│ │ │ ├── MSALNativeAuthIntegrationBaseTests.swift
│ │ │ ├── MockAPIHandler.swift
│ │ │ └── Model.swift
│ │ │ ├── end_to_end
│ │ │ ├── AuthorityURLFormat.swift
│ │ │ ├── ClientIdType.swift
│ │ │ ├── MSALNativeAuthEndToEndBaseTestCase.swift
│ │ │ ├── MSALNativeAuthEndToEndPasswordTestCase.swift
│ │ │ ├── credentials
│ │ │ │ ├── CredentialsDelegateSpies.swift
│ │ │ │ └── MSALNativeAuthUserAccountEndToEndTests.swift
│ │ │ ├── mfa
│ │ │ │ ├── JITDelegateSpies.swift
│ │ │ │ ├── MFADelegateSpies.swift
│ │ │ │ ├── MSALNativeAuthSignInJITEndToEndTests.swift
│ │ │ │ └── MSALNativeAuthSignInWithMFAEndToEndTests.swift
│ │ │ ├── mock
│ │ │ │ └── AttributesStub.swift
│ │ │ ├── otp_code_retriever
│ │ │ │ └── MSALNativeAuthEmailCodeRetriever.swift
│ │ │ ├── reset_password
│ │ │ │ ├── MSALNativeAuthResetPasswordEndToEndTests.swift
│ │ │ │ └── ResetPasswordDelegateSpies.swift
│ │ │ ├── sign_in
│ │ │ │ ├── MSALNativeAuthSignInUserNameAndPasswordEndToEndTests.swift
│ │ │ │ ├── MSALNativeAuthSignInUsernameEndToEndTests.swift
│ │ │ │ └── SignInDelegateSpies.swift
│ │ │ ├── sign_out
│ │ │ │ └── MSALNativeAuthSignOutEndToEndTests.swift
│ │ │ └── sign_up
│ │ │ │ ├── MSALNativeAuthSignUpUsernameAndPasswordEndToEndTests.swift
│ │ │ │ ├── MSALNativeAuthSignUpUsernameEndToEndTests.swift
│ │ │ │ └── SignUpDelegateSpies.swift
│ │ │ └── requests
│ │ │ ├── jit
│ │ │ ├── MSALNativeAuthJITChallengeIntegrationTests.swift
│ │ │ ├── MSALNativeAuthJITContinueIntegrationTests.swift
│ │ │ └── MSALNativeAuthJITIntrospectIntegrationTests.swift
│ │ │ ├── reset_password
│ │ │ ├── MSALNativeAuthResetPasswordChallengeIntegrationTests.swift
│ │ │ ├── MSALNativeAuthResetPasswordContinueIntegrationTests.swift
│ │ │ ├── MSALNativeAuthResetPasswordPollCompletionIntegrationTests.swift
│ │ │ ├── MSALNativeAuthResetPasswordStartIntegrationTests.swift
│ │ │ └── MSALNativeAuthResetPasswordSubmitIntegrationTests.swift
│ │ │ ├── sign_in
│ │ │ ├── MSALNativeAuthSignInChallengeIntegrationTests.swift
│ │ │ ├── MSALNativeAuthSignInInitiateIntegrationTests.swift
│ │ │ └── MSALNativeAuthSignInIntrospectIntegrationTests.swift
│ │ │ ├── sign_up
│ │ │ ├── MSALNativeAuthSignUpChallengeIntegrationTests.swift
│ │ │ ├── MSALNativeAuthSignUpContinueIntegrationTests.swift
│ │ │ └── MSALNativeAuthSignUpStartIntegrationTests.swift
│ │ │ └── token
│ │ │ └── MSALNativeAuthTokenIntegrationTests.swift
│ ├── testplan
│ │ ├── MSAL Mac Native Auth E2E Tests.xctestplan
│ │ ├── MSAL iOS Native Auth E2E Tests.xctestplan
│ │ ├── NativeAuthEndToEndTestPlan Mac.xctestplan
│ │ └── NativeAuthEndToEndTestPlan.xctestplan
│ └── unit
│ │ ├── MSALAADAuthorityTests.m
│ │ ├── MSALAccountIdTests.m
│ │ ├── MSALAccountTests.m
│ │ ├── MSALAccountsProviderTests.m
│ │ ├── MSALAcquireTokenTests.m
│ │ ├── MSALAuthSchemeTests.m
│ │ ├── MSALB2CPolicyTests.m
│ │ ├── MSALClaimsRequestTests.m
│ │ ├── MSALDeviceInfoProviderTests.m
│ │ ├── MSALErrorConverterTests.m
│ │ ├── MSALExternalAccountHandlerTests.m
│ │ ├── MSALOauth2FactoryProducerTests.m
│ │ ├── MSALPublicClientApplicationAccountUpdateTests.m
│ │ ├── MSALPublicClientApplicationConfigTests.m
│ │ ├── MSALPublicClientApplicationTests.m
│ │ ├── MSALResultTests.m
│ │ ├── MSALTelemetryAggregatedTests.m
│ │ ├── MSALTelemetryTests.m
│ │ ├── ios
│ │ ├── external-cache
│ │ │ ├── MSALLegacySharedADALAccountTests.m
│ │ │ ├── MSALLegacySharedAccountFactoryTests.m
│ │ │ ├── MSALLegacySharedAccountTestUtil.h
│ │ │ ├── MSALLegacySharedAccountTestUtil.m
│ │ │ ├── MSALLegacySharedAccountTests.m
│ │ │ ├── MSALLegacySharedAccountsProviderTests.m
│ │ │ ├── MSALLegacySharedMSAAccountTests.m
│ │ │ └── NSStringAccountIdentifiersTest.m
│ │ └── unit-test-host
│ │ │ ├── AppDelegate.h
│ │ │ ├── AppDelegate.m
│ │ │ ├── Assets.xcassets
│ │ │ └── AppIcon.appiconset
│ │ │ │ └── Contents.json
│ │ │ ├── Base.lproj
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── Main.storyboard
│ │ │ ├── Info.plist
│ │ │ ├── ViewController.h
│ │ │ ├── ViewController.m
│ │ │ └── main.m
│ │ ├── mac
│ │ └── unit-test-host
│ │ │ ├── AppDelegate.h
│ │ │ ├── AppDelegate.m
│ │ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ └── Contents.json
│ │ │ └── Contents.json
│ │ │ ├── Base.lproj
│ │ │ └── Main.storyboard
│ │ │ ├── Info.plist
│ │ │ ├── ViewController.h
│ │ │ ├── ViewController.m
│ │ │ └── main.m
│ │ ├── mocks
│ │ ├── MSALMockExternalAccountHandler.h
│ │ └── MSALMockExternalAccountHandler.m
│ │ ├── native_auth
│ │ ├── MSALNativeAuthTestCase.swift
│ │ ├── cache
│ │ │ └── MSALNativeAuthCacheAccessorTest.swift
│ │ ├── controllers
│ │ │ ├── MSALNativeAuthBaseControllerTests.swift
│ │ │ ├── MSALNativeAuthCredentialsControllerTests.swift
│ │ │ ├── MSALNativeAuthJITControllerTests.swift
│ │ │ ├── MSALNativeAuthMFAControllerTests.swift
│ │ │ ├── MSALNativeAuthResetPasswordControllerTests.swift
│ │ │ ├── MSALNativeAuthSignInControllerTests.swift
│ │ │ ├── MSALNativeAuthSignUpControllerTests.swift
│ │ │ └── factories
│ │ │ │ └── MSALNativeAuthResultFactoryTests.swift
│ │ ├── input_validator
│ │ │ └── MSALNativeAuthInputValidatorTest.swift
│ │ ├── logger
│ │ │ ├── MSALLogMaskTests.m
│ │ │ └── MSALNativeLoggingTests.swift
│ │ ├── mock
│ │ │ ├── MSALNativeAuthCacheMocks.swift
│ │ │ ├── MSALNativeAuthConfigStubs.swift
│ │ │ ├── MSALNativeAuthCredentialsControllerMock.swift
│ │ │ ├── MSALNativeAuthFactoriesMocks.swift
│ │ │ ├── MSALNativeAuthHTTPRequestMock.swift
│ │ │ ├── MSALNativeAuthJITControllerMock.swift
│ │ │ ├── MSALNativeAuthNetworkMocks.swift
│ │ │ ├── MSALNativeAuthResetPasswordControllerMock.swift
│ │ │ ├── MSALNativeAuthSignInControllerMock.swift
│ │ │ ├── MSALNativeAuthSignUpControllerMock.swift
│ │ │ ├── MSALNativeAuthSignUpControllerSpy.swift
│ │ │ ├── MSALNativeAuthSignUpRequestProviderMock.swift
│ │ │ ├── MSALNativeAuthSignUpResponseValidatorMock.swift
│ │ │ ├── MSALNativeAuthSilentTokenProviderFactoryConfigTester.swift
│ │ │ ├── MSALNativeAuthSilentTokenProviderFactoryMock.swift
│ │ │ ├── MSALNativeAuthSilentTokenProviderMock.swift
│ │ │ ├── MSALNativeAuthUserAccountResultStub.swift
│ │ │ ├── ResetPasswordTestValidatorHelpers.swift
│ │ │ ├── SignInTestsValidatorHelpers.swift
│ │ │ ├── SignUpTestsValidatorHelpers.swift
│ │ │ ├── delegate
│ │ │ │ ├── CredentialsDelegateSpies.swift
│ │ │ │ ├── JITDelegatesSpies.swift
│ │ │ │ ├── MFADelegatesSpies.swift
│ │ │ │ ├── ResetPasswordDelegateSpies.swift
│ │ │ │ ├── SignInDelegatesSpies.swift
│ │ │ │ └── SignUpDelegateSpies.swift
│ │ │ └── reset_password
│ │ │ │ ├── MSALNativeAuthResetPasswordControllerSpy.swift
│ │ │ │ ├── MSALNativeAuthResetPasswordRequestProviderMock.swift
│ │ │ │ └── MSALNativeAuthResetPasswordResponseValidatorMock.swift
│ │ ├── network
│ │ │ ├── MSALNativeAuthCustomErrorSerializerTests.swift
│ │ │ ├── MSALNativeAuthEndpointTests.swift
│ │ │ ├── MSALNativeAuthRequestConfiguratorTests.swift
│ │ │ ├── MSALNativeAuthRequestErrorHandlerTests.swift
│ │ │ ├── MSALNativeAuthRequestableTests.swift
│ │ │ ├── MSALNativeAuthResponseCorrelatableTests.swift
│ │ │ ├── MSALNativeAuthResponseSerializerTests.swift
│ │ │ ├── MSALNativeAuthSignUpRequestProviderTests.swift
│ │ │ ├── MSALNativeAuthUnknownCaseProtocolTests.swift
│ │ │ ├── MSALNativeAuthUrlRequestSerializerTests.swift
│ │ │ ├── errors
│ │ │ │ ├── MSALNativeAuthESTSApiErrorDescriptionsTests.swift
│ │ │ │ ├── MSALNativeAuthSubErrorCodeTests.swift
│ │ │ │ ├── reset_password
│ │ │ │ │ ├── MSALNativeAuthResetPasswordChallengeOauth2ErrorCodeTests.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordChallengeResponseErrorTests.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordContinueOauth2ErrorCodeTests.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordContinueResponseErrorTests.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordPollCompletionOauth2ErrorCodeTests.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordPollCompletionResponseErrorTests.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordStartOauth2ErrorCodeTests.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordSubmitOauth2ErrorCodeTests.swift
│ │ │ │ │ └── MSALNativeAuthResetPasswordSubmitResponseErrorTests.swift
│ │ │ │ └── sign_up
│ │ │ │ │ ├── MSALNativeAuthErrorRequiredAttributesTests.swift
│ │ │ │ │ ├── MSALNativeAuthSignUpChallengeOauth2ErrorCodeTests.swift
│ │ │ │ │ ├── MSALNativeAuthSignUpChallengeResponseErrorTests.swift
│ │ │ │ │ ├── MSALNativeAuthSignUpContinueOauth2ErrorCodeTests.swift
│ │ │ │ │ ├── MSALNativeAuthSignUpContinueResponseErrorTests.swift
│ │ │ │ │ ├── MSALNativeAuthSignUpStartOauth2ErrorCodeTests.swift
│ │ │ │ │ └── MSALNativeAuthSignUpStartResponseErrorTests.swift
│ │ │ ├── parameters
│ │ │ │ ├── MSALNativeAuthRequestContextTests.swift
│ │ │ │ ├── reset_password
│ │ │ │ │ ├── MSALNativeAuthResetPasswordChallengeRequestParametersTest.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordContinueRequestParametersTest.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordPollCompletionRequestParametersTest.swift
│ │ │ │ │ ├── MSALNativeAuthResetPasswordStartRequestParametersTest.swift
│ │ │ │ │ └── MSALNativeAuthResetPasswordSubmitRequestParametersTest.swift
│ │ │ │ ├── sign_in
│ │ │ │ │ ├── MSALNativeAuthSignInChallengeRequestParametersTest.swift
│ │ │ │ │ └── MSALNativeAuthSignInInitiateRequestParametersTest.swift
│ │ │ │ ├── sign_up
│ │ │ │ │ ├── MSALNativeAuthSignUpChallengeRequestParametersTest.swift
│ │ │ │ │ ├── MSALNativeAuthSignUpContinueRequestParametersTest.swift
│ │ │ │ │ └── MSALNativeAuthSignUpStartRequestParametersTest.swift
│ │ │ │ └── token
│ │ │ │ │ └── MSALNativeAuthTokenRequestParametersTest.swift
│ │ │ ├── requests
│ │ │ │ └── sign_in
│ │ │ │ │ ├── MSALNativeAuthSignInChallengeRequestTests.swift
│ │ │ │ │ └── MSALNativeAuthSignInTokenRequestTests.swift
│ │ │ └── responses
│ │ │ │ └── validator
│ │ │ │ ├── MSALNativeAuthJITResponseValidatorTests.swift
│ │ │ │ ├── MSALNativeAuthResetPasswordResponseValidatorTests.swift
│ │ │ │ ├── MSALNativeAuthResetPasswordStartValidatedErrorTypeTests.swift
│ │ │ │ ├── MSALNativeAuthSignInInitiateValidatedErrorTypeTests.swift
│ │ │ │ ├── MSALNativeAuthSignInResponseValidatorTests.swift
│ │ │ │ ├── MSALNativeAuthSignUpResponseValidatorTests.swift
│ │ │ │ ├── MSALNativeAuthTokenResponseValidatorTests.swift
│ │ │ │ └── MSALNativeAuthTokenValidatedErrorTypeTests.swift
│ │ ├── public
│ │ │ ├── MSALNativeAuthPublicClientApplicationTest.swift
│ │ │ ├── MSALNativeAuthUserAccountResultTests.swift
│ │ │ ├── delegate
│ │ │ │ ├── DispatchAccessTokenRetrieveCompletedTests.swift
│ │ │ │ ├── SignInAfterSignUpDelegateDispatcherTests.swift
│ │ │ │ ├── jit
│ │ │ │ │ ├── JITRequestChallengeDelegateDispatcherTests.swift
│ │ │ │ │ └── JITSubmitChallengeDelegateDispatcherTests.swift
│ │ │ │ ├── mfa
│ │ │ │ │ ├── MFAGetAuthMethodsDelegateDispatcherTests.swift
│ │ │ │ │ ├── MFASendChallengeDelegateDispatcherTests.swift
│ │ │ │ │ └── MFASubmitChallengeDelegateDispatcherTests.swift
│ │ │ │ ├── reset_password
│ │ │ │ │ ├── ResetPasswordRequiredDelegateDispatcherTests.swift
│ │ │ │ │ ├── ResetPasswordResendCodeDelegateDispatcherTests.swift
│ │ │ │ │ ├── ResetPasswordStartDelegateDispatcherTests.swift
│ │ │ │ │ ├── ResetPasswordVerifyCodeDelegateDispatcherTests.swift
│ │ │ │ │ └── SignInAfterResetPasswordDelegateDispatcherTests.swift
│ │ │ │ ├── sign_in
│ │ │ │ │ ├── SignInAfterSignUpDelegateDispatcherTests.swift
│ │ │ │ │ ├── SignInPasswordRequiredDelegateDispatcherTests.swift
│ │ │ │ │ ├── SignInPasswordStartDelegateDispatcherTests.swift
│ │ │ │ │ ├── SignInResendCodeDelegateDispatcherTests.swift
│ │ │ │ │ ├── SignInStartDelegateDispatcherTests.swift
│ │ │ │ │ └── SignInVerifyCodeDelegateDispatcherTests.swift
│ │ │ │ └── sign_up
│ │ │ │ │ ├── SignUpAttributesRequiredDelegateDispatcherTests.swift
│ │ │ │ │ ├── SignUpPasswordRequiredDelegateDispatcherTests.swift
│ │ │ │ │ ├── SignUpPasswordStartDelegateDispatcherTests.swift
│ │ │ │ │ ├── SignUpResendCodeDelegateDispatcherTests.swift
│ │ │ │ │ ├── SignUpStartDelegateDispatcherTests.swift
│ │ │ │ │ └── SignUpVerifyCodeDelegateDispatcherTests.swift
│ │ │ ├── error
│ │ │ │ ├── AttributesRequiredErrorTests.swift
│ │ │ │ ├── MFAGetAuthMethodsErrorTests.swift
│ │ │ │ ├── MFARequestChallengeErrorTests.swift
│ │ │ │ ├── MFASubmitChallengeErrorTests.swift
│ │ │ │ ├── PasswordRequiredErrorTests.swift
│ │ │ │ ├── ResendCodeErrorTests.swift
│ │ │ │ ├── ResetPasswordStartErrorTests.swift
│ │ │ │ ├── RetrieveAccessTokenErrorTests.swift
│ │ │ │ ├── SignInAfterResetPasswordErrorTests.swift
│ │ │ │ ├── SignInAfterSignUpErrorTests.swift
│ │ │ │ ├── SignInStartErrorTests.swift
│ │ │ │ ├── SignUpStartErrorTests.swift
│ │ │ │ └── VerifyCodeErrorTests.swift
│ │ │ └── state_machine
│ │ │ │ ├── jit
│ │ │ │ ├── RegisterStrongAuthStateTests.swift
│ │ │ │ └── RegisterStrongAuthVerificationRequiredStateTests.swift
│ │ │ │ ├── mfa
│ │ │ │ ├── AwaitingMFAStateTests.swift
│ │ │ │ └── MFARequiredStateTests.swift
│ │ │ │ ├── reset_password
│ │ │ │ ├── ResetPasswordCodeSentStateTests.swift
│ │ │ │ └── ResetPasswordRequiredStateTests.swift
│ │ │ │ ├── sign_in
│ │ │ │ ├── SignInAfterResetPasswordTests.swift
│ │ │ │ ├── SignInAfterSignUpStateTests.swift
│ │ │ │ ├── SignInCodeRequiredStateTests.swift
│ │ │ │ └── SignInPasswordRequiredStateTests.swift
│ │ │ │ └── sign_up
│ │ │ │ ├── SignUpAttributesRequiredStateTests.swift
│ │ │ │ ├── SignUpCodeSentStateTests.swift
│ │ │ │ └── SignUpPasswordRequiredStateTests.swift
│ │ ├── telemetry
│ │ │ ├── MSALNativeAuthCurrentRequestTelemetryTests.swift
│ │ │ └── MSALNativeAuthTelemetryProviderTests.swift
│ │ └── utils
│ │ │ └── MSALNativeAuthTelemetryTestDispatcher.swift
│ │ ├── resources
│ │ ├── OpenIdConfiguration.json
│ │ ├── OpenIdConfigurationMissingFields.json
│ │ ├── ios
│ │ │ └── Info.plist
│ │ └── mac
│ │ │ └── Info.plist
│ │ └── utils
│ │ ├── MSALDevicePopManagerUtil.h
│ │ ├── MSALDevicePopManagerUtil.m
│ │ ├── MSALTestCacheTokenResponse.h
│ │ ├── MSALTestCacheTokenResponse.m
│ │ ├── MSALTestCase.h
│ │ ├── MSALTestCase.m
│ │ ├── MSALTestConstants.h
│ │ ├── MSALTestURLSessionDataTask.h
│ │ ├── MSALTestURLSessionDataTask.m
│ │ ├── MSIDTestURLResponse+MSAL.h
│ │ ├── MSIDTestURLResponse+MSAL.m
│ │ ├── MSIDTestURLSession+MSAL.h
│ │ ├── MSIDTestURLSession+MSAL.m
│ │ └── ios
│ │ ├── MSALFakeViewController.h
│ │ ├── MSALFakeViewController.m
│ │ ├── SFSafariViewController+TestOverrides.h
│ │ └── SFSafariViewController+TestOverrides.m
├── unit-test-host.entitlements
└── xcconfig
│ ├── msal__automation_app__ios.xcconfig
│ ├── msal__common.xcconfig
│ ├── msal__common__framework__ios.xcconfig
│ ├── msal__common__framework__mac.xcconfig
│ ├── msal__common__ios.xcconfig
│ ├── msal__common__mac.xcconfig
│ ├── msal__debug.xcconfig
│ ├── msal__framework__ios.xcconfig
│ ├── msal__framework__mac.xcconfig
│ ├── msal__release.xcconfig
│ ├── msal__static__lib__ios.xcconfig
│ ├── msal__static__lib__mac.xcconfig
│ ├── msal__test_app__ios.xcconfig
│ ├── msal__test_app__mac.xcconfig
│ ├── msal__test_app__vision.xcconfig
│ ├── msal__ui_test__ios.xcconfig
│ ├── msal__unit_test__ios.xcconfig
│ ├── msal__unit_test__mac.xcconfig
│ └── msal__unit_test_host__ios.xcconfig
├── PULL_REQUEST_TEMPLATE.md
├── Package.swift
├── README.md
├── ReleaseArchive.sh
├── Samples
└── ios
│ ├── SampleApp.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
│ ├── SampleApp
│ ├── SampleAppiOS.xcodeproj
│ │ ├── project.pbxproj
│ │ ├── project.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ │ └── IDEWorkspaceChecks.plist
│ │ └── xcshareddata
│ │ │ └── xcschemes
│ │ │ └── SampleAppiOS.xcscheme
│ ├── SampleAppiOS
│ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ └── Contents.json
│ │ │ ├── Contents.json
│ │ │ └── sign-in-with-microsoft-light.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ └── sign-in-with-microsoft-light.png
│ │ ├── Base.lproj
│ │ │ └── LaunchScreen.storyboard
│ │ ├── Info.plist
│ │ ├── SampleAppDelegate.h
│ │ ├── SampleAppDelegate.m
│ │ ├── SampleAppErrors.h
│ │ ├── SampleAppErrors.m
│ │ ├── SampleAppiOS.entitlements
│ │ ├── SampleBaseViewController.h
│ │ ├── SampleBaseViewController.m
│ │ ├── SampleCalendarUtil.h
│ │ ├── SampleCalendarUtil.m
│ │ ├── SampleGraphRequest.h
│ │ ├── SampleGraphRequest.m
│ │ ├── SampleLoginViewController.h
│ │ ├── SampleLoginViewController.m
│ │ ├── SampleMSALUtil.h
│ │ ├── SampleMSALUtil.m
│ │ ├── SampleMainView.xib
│ │ ├── SampleMainViewController.h
│ │ ├── SampleMainViewController.m
│ │ ├── SamplePhotoUtil.h
│ │ ├── SamplePhotoUtil.m
│ │ ├── main.m
│ │ └── no_photo.png
│ └── SampleLoginView.xib
│ └── SampleAppiOS-Swift
│ ├── SampleAppiOS-Swift.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── SampleAppiOS-Swift.xcscheme
│ └── SampleAppiOS-Swift
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ └── Contents.json
│ ├── Contents.json
│ ├── no_photo.imageset
│ │ ├── Contents.json
│ │ └── no_photo.png
│ └── sign-in-with-microsoft-light.imageset
│ │ ├── Contents.json
│ │ └── sign-in-with-microsoft-light.png
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ ├── SampleAppErrors.swift
│ ├── SampleAppiOS-Swift.entitlements
│ ├── SampleCalendarEvent.swift
│ ├── SampleCalendarUtil.swift
│ ├── SampleGraphRequest.swift
│ ├── SampleGraphScopes.swift
│ ├── SampleLoginViewController.swift
│ ├── SampleMSALAuthentication.swift
│ ├── SampleMainViewController.swift
│ └── SamplePhotoUtil.swift
├── TestRubyFile.rb
├── azure_pipelines
├── automation.yml
├── broker_submodule_check.yml
├── changelogs.yml
├── msal-release-ado-trigger.yml
├── pr-validation.yml
├── scripts
│ └── get_automation_conf_file.py
└── templates
│ └── tests-with-conf-file.yml
├── build.py
├── build_docs.sh
├── cgmanifest.json
├── device_guids.py
├── docs
├── MSAL_2x_Migration_Guide.md
└── access_token-pop.md
└── spm-integration-test.sh
/.github/ISSUE_TEMPLATE/config.yml:
--------------------------------------------------------------------------------
1 | # *OPTIONAL* Disables the ability to open blank issues without selecting a template
2 | blank_issues_enabled: false
3 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/documentation.yml:
--------------------------------------------------------------------------------
1 | name: Documentation
2 | description: Issues with documentation for the library.
3 | labels: 'documentation-update-needed'
4 | body:
5 |
6 | - type: input
7 | attributes:
8 | label: Documentation Location
9 | description: "Please provide a link to the documentation related to this issue."
10 | placeholder: "learn.microsoft.com"
11 | validations:
12 | required: true
13 |
14 | - type: textarea
15 | attributes:
16 | label: Description
17 | description: "Please briefly describe your issue."
18 | placeholder: "Describe the issue clearly, including any errors or missing details."
19 | validations:
20 | required: true
21 |
22 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.yml:
--------------------------------------------------------------------------------
1 | name: Feature request
2 | description: Suggest a new feature for the library.
3 | labels: 'feature-unconfirmed'
4 | body:
5 | - type: markdown
6 | attributes:
7 | value: |
8 | ## Before Submitting Your Issue
9 | Our GitHub issues are meant exclusively for bug reports and feature requests. For questions about using MSAL for iOS and macOS, please refer to the [common issues and FAQ](https://github.com/AzureAD/microsoft-authentication-library-for-objc/wiki#getting-help-common-issues-and-faq). If your question is not addressed there, we encourage you to utilize Chat with Copilot for further assistance.
10 |
11 | If this feature is essential for your app in production, please create a support ticket with your Microsoft representative.
12 |
13 | - type: textarea
14 | attributes:
15 | label: Description
16 | description: "Please briefly describe the feature you are requesting."
17 | validations:
18 | required: true
19 |
--------------------------------------------------------------------------------
/.github/config.yml:
--------------------------------------------------------------------------------
1 | requestInfoReplyComment: >
2 | Please add additional information about this issue or PR. Please be as descriptive as possible.
3 |
4 | # *OPTIONAL* Label to be added to Issues and Pull Requests with insufficient information given
5 | requestInfoLabelToAdd: needs-information
6 |
7 | # *OPTIONAL* Require Issues to contain more information than what is provided in the issue templates
8 | # Will fail if the issue's body is equal to a provided template
9 | checkIssueTemplate: true
10 |
11 | # *OPTIONAL* Require Pull Requests to contain more information than what is provided in the PR template
12 | # Will fail if the pull request's body is equal to the provided template
13 | checkPullRequestTemplate: true
14 |
15 | # *OPTIONAL* Only warn about insufficient information on these events type
16 | # Keys must be lowercase. Valid values are 'issue' and 'pullRequest'
17 | requestInfoOn:
18 | pullRequest: true
19 | issue: true
20 |
--------------------------------------------------------------------------------
/.github/stale.yml:
--------------------------------------------------------------------------------
1 | # Number of days of inactivity before an issue becomes stale
2 | daysUntilStale: 14
3 | # Number of days of inactivity before a stale issue is closed
4 | daysUntilClose: 14
5 | # Issues with these labels will never be considered stale
6 | exemptLabels:
7 | - internal
8 | - feature
9 | - enhancement
10 | - bug
11 | # Label to use when marking an issue as stale
12 | staleLabel: stale-issue
13 | # Comment to post when marking an issue as stale. Set to `false` to disable
14 | markComment: >
15 | This issue has been automatically marked as stale because it has not had
16 | recent activity. Please provide additional information if requested. Thank you
17 | for your contributions.
18 | # Comment to post when closing a stale issue. Set to `false` to disable
19 | closeComment: false
20 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | xcuserdata
2 | MSAL.xcscmblueprint
3 | .DS_Store
4 | *.pyc
5 | ## Build generated
6 | build/
7 | DerivedData/
8 |
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "MSAL/IdentityCore"]
2 | path = MSAL/IdentityCore
3 | url = https://github.com/AzureAD/microsoft-authentication-library-common-for-objc
4 |
--------------------------------------------------------------------------------
/Images/keychain_example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AzureAD/microsoft-authentication-library-for-objc/ee78453807f998cf76e200e0f27af6beac684d8d/Images/keychain_example.png
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) Microsoft Corporation
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/MSAL.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/MSAL.xcworkspace/xcshareddata/IDETemplateMacros.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | FILEHEADER
7 |
8 | // Copyright (c) Microsoft Corporation.
9 | // All rights reserved.
10 | //
11 | // This code is licensed under the MIT License.
12 | //
13 | // Permission is hereby granted, free of charge, to any person obtaining a copy
14 | // of this software and associated documentation files(the "Software"), to deal
15 | // in the Software without restriction, including without limitation the rights
16 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
17 | // copies of the Software, and to permit persons to whom the Software is
18 | // furnished to do so, subject to the following conditions :
19 | //
20 | // The above copyright notice and this permission notice shall be included in
21 | // all copies or substantial portions of the Software.
22 | //
23 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
29 | // THE SOFTWARE.
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/MSAL.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/MSAL.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/MSAL/.swiftlint.yml:
--------------------------------------------------------------------------------
1 | included:
2 | - src/native_auth
3 |
4 |
5 | line_length:
6 | warning: 150
7 |
8 | type_name:
9 | max_length: 60
10 |
11 | function_parameter_count:
12 | warning: 7
13 |
14 | disabled_rules:
15 | - todo
16 | - empty_enum_arguments
17 |
--------------------------------------------------------------------------------
/MSAL/MSAL Test App.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | keychain-access-groups
6 |
7 | $(AppIdentifierPrefix)com.microsoft.MSALTestApp
8 | $(AppIdentifierPrefix)com.microsoft.adalcache
9 | $(AppIdentifierPrefix)com.microsoft.workplacejoin
10 | $(AppIdentifierPrefix)com.microsoft.ssoseeding
11 | $(AppIdentifierPrefix)com.microsoft.workplacejoin.v2
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/MSAL/MSAL.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/MSAL/MSAL.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/MSAL/resources/ios/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 2.1.0
19 | CFBundleVersion
20 | $(CURRENT_PROJECT_VERSION)
21 | NSPrincipalClass
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/MSAL/resources/mac/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 2.1.0
19 | CFBundleVersion
20 | $(CURRENT_PROJECT_VERSION)
21 | NSHumanReadableCopyright
22 | Copyright © 2017 Microsoft. All rights reserved.
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/MSAL/src/MSALAccountEnumerationParameters+Private.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | #import "MSALAccountEnumerationParameters.h"
26 |
27 | NS_ASSUME_NONNULL_BEGIN
28 |
29 | @interface MSALAccountEnumerationParameters ()
30 |
31 | @property (nonatomic, readwrite) BOOL ignoreSignedInStatus;
32 |
33 | @end
34 |
35 | NS_ASSUME_NONNULL_END
36 |
--------------------------------------------------------------------------------
/MSAL/src/MSALAuthScheme.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import "MSIDConstants.h"
29 |
30 | extern NSString *MSALStringForAuthScheme(MSALAuthScheme authScheme);
31 | extern MSIDAuthScheme MSIDAuthSchemeForAuthScheme(MSALAuthScheme authScheme);
32 | extern NSString *MSALParameterStringForAuthScheme(MSALAuthScheme authScheme);
33 |
--------------------------------------------------------------------------------
/MSAL/src/MSALAuthenticationSchemeBearer+Internal.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 |
26 | #import "MSALAuthenticationSchemeBearer.h"
27 | #import "MSALAuthenticationSchemeProtocolInternal.h"
28 |
29 | NS_ASSUME_NONNULL_BEGIN
30 |
31 | @interface MSALAuthenticationSchemeBearer ()
32 |
33 | @end
34 |
35 | NS_ASSUME_NONNULL_END
36 |
--------------------------------------------------------------------------------
/MSAL/src/MSALAuthenticationSchemePop+Internal.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 |
26 | #import "MSALAuthenticationSchemePop.h"
27 | #import "MSALAuthenticationSchemeProtocolInternal.h"
28 |
29 | NS_ASSUME_NONNULL_BEGIN
30 |
31 | @interface MSALAuthenticationSchemePop ()
32 |
33 | @end
34 |
35 | NS_ASSUME_NONNULL_END
36 |
--------------------------------------------------------------------------------
/MSAL/src/MSALDeviceInformation+Internal.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation.
2 | // All rights reserved.
3 | //
4 | // This code is licensed under the MIT License.
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files(the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions :
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 |
24 | #import "MSALDeviceInformation.h"
25 |
26 | @class MSIDDeviceInfo;
27 |
28 | NS_ASSUME_NONNULL_BEGIN
29 |
30 | @interface MSALDeviceInformation()
31 |
32 | @property (nonatomic, readwrite) MSALDeviceMode deviceMode;
33 |
34 | - (instancetype)initWithMSIDDeviceInfo:(MSIDDeviceInfo *)deviceInfo;
35 |
36 | - (void)addRegisteredDeviceMetadataInformation:(NSDictionary *)deviceInfoMetadata;
37 |
38 | @end
39 |
40 | NS_ASSUME_NONNULL_END
41 |
--------------------------------------------------------------------------------
/MSAL/src/MSALFramework.m:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 |
--------------------------------------------------------------------------------
/MSAL/src/MSALParameters.m:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import "MSALParameters.h"
29 |
30 | @implementation MSALParameters
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/MSAL/src/MSALWPJMetaData+Internal.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 |
26 | #import "MSALWPJMetaData.h"
27 |
28 | @class MSALWPJMetaData;
29 |
30 | NS_ASSUME_NONNULL_BEGIN
31 |
32 | @interface MSALWPJMetaData()
33 |
34 | - (void)addRegisteredDeviceMetadataInformation:(NSDictionary *)deviceInfoMetadata;
35 |
36 | @end
37 |
38 | NS_ASSUME_NONNULL_END
39 |
--------------------------------------------------------------------------------
/MSAL/src/configuration/MSALCacheConfig+Internal.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import "MSALCacheConfig.h"
29 |
30 | @interface MSALCacheConfig ()
31 |
32 | + (instancetype)defaultConfig;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/MSAL/src/configuration/MSALHTTPConfig+Internal.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import "MSALHTTPConfig.h"
29 |
30 | @interface MSALHTTPConfig ()
31 |
32 | + (instancetype)sharedInstance;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/MSAL/src/configuration/MSALLoggerConfig+Internal.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import "MSALLoggerConfig.h"
29 |
30 | @interface MSALLoggerConfig ()
31 |
32 | + (instancetype)sharedInstance;
33 |
34 | @property (nonatomic, copy) MSALLogCallback callback;
35 |
36 | @end
37 |
--------------------------------------------------------------------------------
/MSAL/src/configuration/MSALTelemetryConfig+Internal.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import "MSALTelemetryConfig.h"
29 |
30 | @interface MSALTelemetryConfig ()
31 |
32 | + (instancetype)sharedInstance;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/MSAL/src/configuration/external/MSALSerializedADALCacheProvider+Internal.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation.
2 | // All rights reserved.
3 | //
4 | // This code is licensed under the MIT License.
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files(the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions :
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 |
24 | #import
25 | #import "MSALSerializedADALCacheProvider.h"
26 | #import "MSIDTokenCacheDataSource.h"
27 |
28 | NS_ASSUME_NONNULL_BEGIN
29 |
30 | @interface MSALSerializedADALCacheProvider (Internal)
31 |
32 | - (id)msidTokenCacheDataSource;
33 |
34 | @end
35 |
36 | NS_ASSUME_NONNULL_END
37 |
--------------------------------------------------------------------------------
/MSAL/src/configuration/external/ios/MSALLegacySharedADALAccount.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation.
2 | // All rights reserved.
3 | //
4 | // This code is licensed under the MIT License.
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files(the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions :
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 |
24 | #import
25 | #import "MSALAccount.h"
26 | #import "MSALLegacySharedAccount.h"
27 |
28 | NS_ASSUME_NONNULL_BEGIN
29 |
30 | @interface MSALLegacySharedADALAccount : MSALLegacySharedAccount
31 |
32 | @end
33 |
34 | NS_ASSUME_NONNULL_END
35 |
--------------------------------------------------------------------------------
/MSAL/src/configuration/external/ios/MSALLegacySharedMSAAccount.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation.
2 | // All rights reserved.
3 | //
4 | // This code is licensed under the MIT License.
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files(the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions :
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 |
24 | #import
25 | #import "MSALLegacySharedAccount.h"
26 | #import "MSALAccount.h"
27 |
28 | NS_ASSUME_NONNULL_BEGIN
29 |
30 | @interface MSALLegacySharedMSAAccount : MSALLegacySharedAccount
31 |
32 | @end
33 |
34 | NS_ASSUME_NONNULL_END
35 |
--------------------------------------------------------------------------------
/MSAL/src/configuration/external/ios/NSString+MSALAccountIdenfiers.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation.
2 | // All rights reserved.
3 | //
4 | // This code is licensed under the MIT License.
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files(the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions :
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 |
24 | #import
25 |
26 | NS_ASSUME_NONNULL_BEGIN
27 |
28 | @interface NSString (MSALAccountIdenfiers)
29 |
30 | - (nullable NSString *)msalStringAsGUID;
31 | - (nullable NSData *)msalStringAsGUIDData;
32 | - (nullable NSString *)msalGUIDAsShortString;
33 |
34 | @end
35 |
36 | NS_ASSUME_NONNULL_END
37 |
--------------------------------------------------------------------------------
/MSAL/src/instance/MSALOauth2Authority.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import "MSALAuthority.h"
29 |
30 | NS_ASSUME_NONNULL_BEGIN
31 |
32 | @interface MSALOauth2Authority : MSALAuthority
33 |
34 | @end
35 |
36 | NS_ASSUME_NONNULL_END
37 |
--------------------------------------------------------------------------------
/MSAL/src/instance/oauth2/aad/MSALAADOauth2Provider.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import "MSALOauth2Provider.h"
29 |
30 | NS_ASSUME_NONNULL_BEGIN
31 |
32 | @interface MSALAADOauth2Provider : MSALOauth2Provider
33 |
34 | @end
35 |
36 | NS_ASSUME_NONNULL_END
37 |
--------------------------------------------------------------------------------
/MSAL/src/instance/oauth2/adfs/MSALADFSOauth2Provider.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import "MSALOauth2Provider.h"
29 |
30 | NS_ASSUME_NONNULL_BEGIN
31 |
32 | @interface MSALADFSOauth2Provider : MSALOauth2Provider
33 |
34 | @end
35 |
36 | NS_ASSUME_NONNULL_END
37 |
--------------------------------------------------------------------------------
/MSAL/src/instance/oauth2/b2c/MSALB2COauth2Provider.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import "MSALOauth2Provider.h"
29 |
30 | NS_ASSUME_NONNULL_BEGIN
31 |
32 | @interface MSALB2COauth2Provider : MSALOauth2Provider
33 |
34 | @end
35 |
36 | NS_ASSUME_NONNULL_END
37 |
--------------------------------------------------------------------------------
/MSAL/src/instance/oauth2/ciam/MSALCIAMOauth2Provider.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | #import "MSALOauth2Provider.h"
26 |
27 | NS_ASSUME_NONNULL_BEGIN
28 |
29 | @interface MSALCIAMOauth2Provider : MSALOauth2Provider
30 |
31 | @end
32 |
33 | NS_ASSUME_NONNULL_END
34 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/MSALNativeAuthLogMessage.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | enum MSALNativeAuthLogMessage {
28 | static let privatePreviewLog =
29 | "Warning ⚠️: this API is experimental. It may be changed in the future without notice. Do not use in production applications."
30 | }
31 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/client_application_wrapper/silent_token/factory/MSALNativeAuthSilentTokenProviderBuildable.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | protocol MSALNativeAuthSilentTokenProviderBuildable {
26 | func makeSilentTokenProvider(configuration: MSALPublicClientApplicationConfig,
27 | challengeTypes: MSALNativeAuthChallengeTypes) throws -> MSALNativeAuthSilentTokenProviding?
28 | }
29 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/controllers/credentials/MSALNativeAuthCredentialsControlling.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | protocol MSALNativeAuthCredentialsControlling {
28 | typealias RefreshTokenCredentialControllerResponse =
29 | MSALNativeAuthControllerTelemetryWrapper>
30 |
31 | func retrieveUserAccountResult(context: MSALNativeAuthRequestContext) -> MSALNativeAuthUserAccountResult?
32 | }
33 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/controllers/responses/CodeRequiredGenericResult.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | enum CodeRequiredGenericResult {
28 | case codeRequired(newState: State, sentTo: String, channelTargetType: MSALNativeAuthChannelType, codeLength: Int)
29 | case error(error: Error, newState: State?)
30 | }
31 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/extension/Array+joinScopes.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | extension Array where Element: StringProtocol {
28 | func joinScopes() -> String {
29 | return self.joined(separator: " ")
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/MSALNativeAuthGrantType.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | enum MSALNativeAuthGrantType: String {
26 | case password
27 | case otp = "passwordless_otp"
28 | case oobCode = "oob"
29 | case refreshToken = "refresh_token"
30 | case continuationToken = "continuation_token"
31 | case attributes
32 | }
33 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/MSALNativeAuthInternalChallengeType.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | enum MSALNativeAuthInternalChallengeType: String, Decodable {
26 | case oob
27 | case password
28 | case otp
29 | case redirect
30 | }
31 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/errors/MSALNativeAuthESTSApiErrorCodes.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | // This enum contains all the handled error cases from eSTS in error_codes
26 | enum MSALNativeAuthESTSApiErrorCodes: Int {
27 | case userNotFound = 50034
28 | case invalidCredentials = 50126
29 | case userNotHaveAPassword = 500222
30 | case invalidRequestParameter = 90100
31 | case resetPasswordRequired = 50142
32 | case invalidVerificationContact = 901001
33 | }
34 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/errors/MSALNativeAuthESTSApiErrorDescriptions.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | // This enum contains all the handled error cases from eSTS in error_descriptions
28 | enum MSALNativeAuthESTSApiErrorDescriptions: String, CaseIterable {
29 | case usernameParameterIsEmptyOrNotValid = "username parameter is empty or not valid"
30 | case clientIdParameterIsEmptyOrNotValid = "client_id parameter is empty or not valid"
31 | }
32 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/errors/MSALNativeAuthInnerError.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | struct MSALNativeAuthInnerError: Decodable, Equatable {
28 | let error: String?
29 | let errorDescription: String?
30 | enum CodingKeys: String, CodingKey {
31 | case error
32 | case errorDescription = "error_description"
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/errors/jit/MSALNativeAuthJITChallengeOauth2ErrorCode.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | enum MSALNativeAuthJITChallengeOauth2ErrorCode: String, Decodable, MSALNativeAuthUnknownCaseProtocol {
28 | case invalidRequest = "invalid_request"
29 | case unknown
30 | }
31 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/errors/jit/MSALNativeAuthJITContinueOauth2ErrorCode.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | enum MSALNativeAuthJITContinueOauth2ErrorCode: String, Decodable, MSALNativeAuthUnknownCaseProtocol {
28 | case invalidGrant = "invalid_grant"
29 | case unknown
30 | }
31 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/errors/jit/MSALNativeAuthJITIntrospectOauth2ErrorCode.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | enum MSALNativeAuthJITIntrospectOauth2ErrorCode: String, Decodable, MSALNativeAuthUnknownCaseProtocol {
28 | case unknown
29 | }
30 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/errors/reset_password/MSALNativeAuthResetPasswordSubmitOauth2ErrorCode.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | enum MSALNativeAuthResetPasswordSubmitOauth2ErrorCode: String, Decodable, MSALNativeAuthUnknownCaseProtocol {
28 | case invalidRequest = "invalid_request"
29 | case unauthorizedClient = "unauthorized_client"
30 | case expiredToken = "expired_token"
31 | case invalidGrant = "invalid_grant"
32 | case unknown
33 | }
34 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/errors/sign_in/MSALNativeAuthSignInIntrospectOauth2ErrorCode.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | enum MSALNativeAuthSignInIntrospectOauth2ErrorCode: String, Decodable, MSALNativeAuthUnknownCaseProtocol {
28 | case invalidRequest = "invalid_request"
29 | case expiredToken = "expired_token"
30 | case unknown
31 | }
32 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/errors/sign_up/MSALNativeAuthErrorBasicAttribute.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | class MSALNativeAuthErrorBasicAttribute: NSObject, Decodable {
28 | let name: String
29 |
30 | init(name: String) {
31 | self.name = name
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/errors/sign_up/MSALNativeAuthRequiredAttributeOptions.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | class MSALNativeAuthRequiredAttributeOptions: Decodable {
28 | let regex: String?
29 | }
30 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/reset_password/MSALNativeAuthResetPasswordStartRequestProviderParameters.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | struct MSALNativeAuthResetPasswordStartRequestProviderParameters {
28 | let username: String
29 | let context: MSALNativeAuthRequestContext
30 | }
31 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/responses/MSALNativeAuthResendCodeRequestResponse.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | struct MSALNativeAuthResendCodeRequestResponse: Decodable, MSALNativeAuthResponseCorrelatable {
28 |
29 | // MARK: - Variables
30 | let continuationToken: String
31 | var correlationId: UUID?
32 | }
33 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/responses/jit/MSALNativeAuthJITContinueResponse.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | struct MSALNativeAuthJITContinueResponse: Decodable, MSALNativeAuthResponseCorrelatable {
28 |
29 | // MARK: - Variables
30 | let continuationToken: String?
31 | var correlationId: UUID?
32 | }
33 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/responses/jit/MSALNativeAuthJITIntrospectResponse.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | struct MSALNativeAuthJITIntrospectResponse: Decodable, MSALNativeAuthResponseCorrelatable {
28 |
29 | // MARK: - Variables
30 | let continuationToken: String?
31 | let methods: [MSALNativeAuthInternalAuthenticationMethod]?
32 | var correlationId: UUID?
33 | }
34 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/responses/reset_password/MSALNativeAuthResetPasswordContinueResponse.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | struct MSALNativeAuthResetPasswordContinueResponse: Decodable, MSALNativeAuthResponseCorrelatable {
28 |
29 | // MARK: - Variables
30 | let continuationToken: String
31 | let expiresIn: Int
32 | var correlationId: UUID?
33 | }
34 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/responses/reset_password/MSALNativeAuthResetPasswordPollCompletionResponse.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | struct MSALNativeAuthResetPasswordPollCompletionResponse: Decodable, MSALNativeAuthResponseCorrelatable {
28 |
29 | // MARK: - Variables
30 | let status: MSALNativeAuthResetPasswordPollCompletionStatus
31 | let continuationToken: String?
32 | let expiresIn: Int?
33 | var correlationId: UUID?
34 | }
35 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/responses/reset_password/MSALNativeAuthResetPasswordPollCompletionStatus.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | enum MSALNativeAuthResetPasswordPollCompletionStatus: String, Decodable {
28 | case succeeded
29 | case inProgress = "in_progress"
30 | case failed
31 | case notStarted = "not_started"
32 | }
33 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/responses/reset_password/MSALNativeAuthResetPasswordStartResponse.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | struct MSALNativeAuthResetPasswordStartResponse: Decodable, MSALNativeAuthResponseCorrelatable {
28 |
29 | // MARK: - Variables
30 | let continuationToken: String?
31 | let challengeType: MSALNativeAuthInternalChallengeType?
32 | var correlationId: UUID?
33 | }
34 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/responses/reset_password/MSALNativeAuthResetPasswordSubmitResponse.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | struct MSALNativeAuthResetPasswordSubmitResponse: Decodable, MSALNativeAuthResponseCorrelatable {
28 |
29 | // MARK: - Variables
30 | let continuationToken: String
31 | let pollInterval: Int
32 | var correlationId: UUID?
33 | }
34 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/responses/sign_in/MSALNativeAuthSignInInitiateResponse.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | struct MSALNativeAuthSignInInitiateResponse: Decodable, MSALNativeAuthResponseCorrelatable {
28 |
29 | // MARK: - Variables
30 | let continuationToken: String?
31 | let challengeType: MSALNativeAuthInternalChallengeType?
32 | var correlationId: UUID?
33 | }
34 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/responses/sign_in/MSALNativeAuthSignInIntrospectResponse.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | struct MSALNativeAuthSignInIntrospectResponse: Decodable, MSALNativeAuthResponseCorrelatable {
28 |
29 | // MARK: - Variables
30 | let continuationToken: String?
31 | let methods: [MSALNativeAuthInternalAuthenticationMethod]?
32 | let challengeType: MSALNativeAuthInternalChallengeType?
33 | var correlationId: UUID?
34 | }
35 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/responses/sign_up/MSALNativeAuthSignUpContinueResponse.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | struct MSALNativeAuthSignUpContinueResponse: Decodable, MSALNativeAuthResponseCorrelatable {
28 | let continuationToken: String?
29 | let expiresIn: Int?
30 | var correlationId: UUID?
31 | }
32 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/responses/sign_up/MSALNativeAuthSignUpStartResponse.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | struct MSALNativeAuthSignUpStartResponse: Decodable, MSALNativeAuthResponseCorrelatable {
28 | let continuationToken: String?
29 | let challengeType: MSALNativeAuthInternalChallengeType?
30 | var correlationId: UUID?
31 | }
32 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/network/sign_up/MSALNativeAuthSignUpStartRequestProviderParameters.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | struct MSALNativeAuthSignUpStartRequestProviderParameters {
26 | let username: String
27 | let password: String?
28 | let attributes: [String: Any]?
29 | let context: MSALNativeAuthRequestContext
30 | }
31 |
--------------------------------------------------------------------------------
/MSAL/src/native_auth/public/state_machine/state/MSALNativeAuthBaseState.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | import Foundation
26 |
27 | /// Base class for Native Auth states
28 | @objc
29 | public class MSALNativeAuthBaseState: NSObject {
30 | let continuationToken: String
31 | let correlationId: UUID
32 |
33 | init(continuationToken: String, correlationId: UUID) {
34 | self.continuationToken = continuationToken
35 | self.correlationId = correlationId
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/MSAL/src/public/MSALHttpMethod.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | extern NSString *MSALParameterStringForHttpMethod(MSALHttpMethod httpMethod);
29 |
--------------------------------------------------------------------------------
/MSAL/src/telemetry/MSALTelemetryEventsObservingProxy.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation.
2 | // All rights reserved.
3 | //
4 | // This code is licensed under the MIT License.
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files(the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions :
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 |
24 | #import
25 | #import "MSIDTelemetryEventsObserving.h"
26 |
27 | NS_ASSUME_NONNULL_BEGIN
28 |
29 | @interface MSALTelemetryEventsObservingProxy : NSObject
30 |
31 | @property (nonatomic, copy, nullable) MSALTelemetryCallback telemetryCallback;
32 |
33 | @end
34 |
35 | NS_ASSUME_NONNULL_END
36 |
--------------------------------------------------------------------------------
/MSAL/test/NSString+MSALTestUtil.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 | #import "MSALAuthority.h"
30 | #import "MSALAuthority_Internal.h"
31 |
32 | @interface NSString (MSALTestUtil)
33 |
34 | - (MSALAuthority *)msalAuthority;
35 |
36 | @end
37 |
--------------------------------------------------------------------------------
/MSAL/test/app/ios/MSALCacheItemDetailViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 |
26 | #import
27 |
28 | NS_ASSUME_NONNULL_BEGIN
29 |
30 | @interface MSALCacheItemDetailViewController : UIViewController
31 |
32 | @property (atomic) id cacheItem;
33 |
34 | @end
35 |
36 | NS_ASSUME_NONNULL_END
37 |
--------------------------------------------------------------------------------
/MSAL/test/app/ios/MSALTestAppAcquireTokenViewController.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 |
30 | @interface MSALTestAppAcquireTokenViewController : UIViewController
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/MSAL/test/app/ios/MSALTestAppB2CAuthorityViewController.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import "MSALTestAppAuthorityViewController.h"
29 |
30 | @interface MSALTestAppB2CAuthorityViewController : MSALTestAppAuthorityViewController
31 |
32 | + (instancetype)sharedController;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/MSAL/test/app/ios/MSALTestAppCacheViewController.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 |
30 | @interface MSALTestAppCacheViewController : UITableViewController
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/MSAL/test/app/ios/MSALTestAppDelegate.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 |
30 | @interface MSALTestAppDelegate : UIResponder
31 |
32 | @property (strong, nonatomic) UIWindow *window;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/MSAL/test/app/ios/MSALTestAppLogViewController.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 |
30 | @interface MSALTestAppLogViewController : UIViewController
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/MSAL/test/app/ios/MSALTestAppProfileViewController.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import "MSALTestAppSettingViewController.h"
29 |
30 | @interface MSALTestAppProfileViewController : MSALTestAppSettingViewController
31 | {
32 | NSDictionary *_profiles;
33 | }
34 |
35 | + (instancetype)sharedController;
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/MSAL/test/app/ios/MSALTestAppScopesViewController.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 |
30 | @interface MSALTestAppScopesViewController : UIViewController
31 |
32 | + (instancetype)sharedController;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/MSAL/test/app/ios/MSALTestAppSettingsViewController.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 |
30 | @interface MSALTestAppSettingsViewController : UIViewController
31 |
32 | @end
33 |
--------------------------------------------------------------------------------
/MSAL/test/app/ios/MSALTestAppUserViewController.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import "MSALTestAppSettingViewController.h"
29 |
30 | @interface MSALTestAppUserViewController : MSALTestAppSettingViewController
31 |
32 | + (instancetype)sharedController;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/MSAL/test/app/ios/main.m:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 | #import "MSALTestAppDelegate.h"
30 |
31 | int main(int argc, char * argv[]) {
32 | @autoreleasepool {
33 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([MSALTestAppDelegate class]));
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AzureAD/microsoft-authentication-library-for-objc/ee78453807f998cf76e200e0f27af6beac684d8d/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-1024.png
--------------------------------------------------------------------------------
/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AzureAD/microsoft-authentication-library-for-objc/ee78453807f998cf76e200e0f27af6beac684d8d/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-20@2x.png
--------------------------------------------------------------------------------
/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AzureAD/microsoft-authentication-library-for-objc/ee78453807f998cf76e200e0f27af6beac684d8d/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-20@3x.png
--------------------------------------------------------------------------------
/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AzureAD/microsoft-authentication-library-for-objc/ee78453807f998cf76e200e0f27af6beac684d8d/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-29.png
--------------------------------------------------------------------------------
/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AzureAD/microsoft-authentication-library-for-objc/ee78453807f998cf76e200e0f27af6beac684d8d/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-29@2x.png
--------------------------------------------------------------------------------
/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AzureAD/microsoft-authentication-library-for-objc/ee78453807f998cf76e200e0f27af6beac684d8d/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-29@3x.png
--------------------------------------------------------------------------------
/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AzureAD/microsoft-authentication-library-for-objc/ee78453807f998cf76e200e0f27af6beac684d8d/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-40@2x.png
--------------------------------------------------------------------------------
/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AzureAD/microsoft-authentication-library-for-objc/ee78453807f998cf76e200e0f27af6beac684d8d/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-40@3x.png
--------------------------------------------------------------------------------
/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AzureAD/microsoft-authentication-library-for-objc/ee78453807f998cf76e200e0f27af6beac684d8d/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-60@2x.png
--------------------------------------------------------------------------------
/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AzureAD/microsoft-authentication-library-for-objc/ee78453807f998cf76e200e0f27af6beac684d8d/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-60@3x.png
--------------------------------------------------------------------------------
/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AzureAD/microsoft-authentication-library-for-objc/ee78453807f998cf76e200e0f27af6beac684d8d/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon-83.5@2x.png
--------------------------------------------------------------------------------
/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AzureAD/microsoft-authentication-library-for-objc/ee78453807f998cf76e200e0f27af6beac684d8d/MSAL/test/app/ios/resources/Images.xcassets/AppIcon.appiconset/adal_purple_icon.png
--------------------------------------------------------------------------------
/MSAL/test/app/ios/resources/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/MSAL/test/app/mac/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "mac",
5 | "size" : "16x16",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "mac",
10 | "size" : "16x16",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "mac",
15 | "size" : "32x32",
16 | "scale" : "1x"
17 | },
18 | {
19 | "idiom" : "mac",
20 | "size" : "32x32",
21 | "scale" : "2x"
22 | },
23 | {
24 | "idiom" : "mac",
25 | "size" : "128x128",
26 | "scale" : "1x"
27 | },
28 | {
29 | "idiom" : "mac",
30 | "size" : "128x128",
31 | "scale" : "2x"
32 | },
33 | {
34 | "idiom" : "mac",
35 | "size" : "256x256",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "mac",
40 | "size" : "256x256",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "mac",
45 | "size" : "512x512",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "mac",
50 | "size" : "512x512",
51 | "scale" : "2x"
52 | }
53 | ],
54 | "info" : {
55 | "version" : 1,
56 | "author" : "xcode"
57 | }
58 | }
--------------------------------------------------------------------------------
/MSAL/test/app/mac/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/MSAL/test/app/mac/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIconFile
10 |
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleVersion
22 | 1
23 | LSMinimumSystemVersion
24 | $(MACOSX_DEPLOYMENT_TARGET)
25 | NSHumanReadableCopyright
26 | Copyright © 2019 Microsoft. All rights reserved.
27 | NSMainStoryboardFile
28 | Main
29 | NSPrincipalClass
30 | NSApplication
31 |
32 |
33 |
--------------------------------------------------------------------------------
/MSAL/test/app/mac/MSALAppDelegate.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 |
30 | @interface MSALAppDelegate : NSObject
31 |
32 | @end
33 |
34 |
--------------------------------------------------------------------------------
/MSAL/test/app/mac/MSALCacheViewController.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 |
30 | NS_ASSUME_NONNULL_BEGIN
31 |
32 | @interface MSALCacheViewController : NSViewController
33 |
34 | @end
35 |
36 | NS_ASSUME_NONNULL_END
37 |
--------------------------------------------------------------------------------
/MSAL/test/app/mac/MSALMacTestApp.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 | com.apple.security.application-groups
8 |
9 | UBF8T346G9.com.microsoft.entrabroker
10 |
11 | com.apple.security.files.user-selected.read-only
12 |
13 | com.apple.security.network.client
14 |
15 | keychain-access-groups
16 |
17 | $(AppIdentifierPrefix)com.microsoft.MSALMacTestApp
18 | $(AppIdentifierPrefix)com.microsoft.identity.universalstorage
19 | $(AppIdentifierPrefix)com.microsoft.ssoseeding
20 | $(AppIdentifierPrefix)com.microsoft.workplacejoin.v2
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/MSAL/test/app/mac/main.m:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 |
30 | int main(int argc, const char * argv[]) {
31 | return NSApplicationMain(argc, argv);
32 | }
33 |
--------------------------------------------------------------------------------
/MSAL/test/app/vision/ContentView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 |
26 | import SwiftUI
27 | import RealityKit
28 |
29 | struct ContentView: View {
30 | var body: some View {
31 |
32 | VStack {
33 | MSALTestAppView()
34 | }
35 |
36 | }
37 | }
38 |
39 | #Preview(windowStyle: .automatic) {
40 | ContentView()
41 | }
42 |
--------------------------------------------------------------------------------
/MSAL/test/app/vision/MSAL_Test_App-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 |
26 | #ifndef MSAL_Test_App_Bridging_Header_h
27 | #define MSAL_Test_App_Bridging_Header_h
28 |
29 | #import
30 |
31 | #endif /* MSAL_Test_App_Bridging_Header_h */
32 |
--------------------------------------------------------------------------------
/MSAL/test/app/vision/resources/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "vision",
5 | "scale" : "2x"
6 | }
7 | ],
8 | "info" : {
9 | "author" : "xcode",
10 | "version" : 1
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/MSAL/test/app/vision/resources/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/MSAL/test/app/vision/resources/Assets.xcassets/AppIcon.solidimagestack/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | },
6 | "layers" : [
7 | {
8 | "filename" : "Front.solidimagestacklayer"
9 | },
10 | {
11 | "filename" : "Middle.solidimagestacklayer"
12 | },
13 | {
14 | "filename" : "Back.solidimagestacklayer"
15 | }
16 | ]
17 | }
18 |
--------------------------------------------------------------------------------
/MSAL/test/app/vision/resources/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Content.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "vision",
5 | "scale" : "2x"
6 | }
7 | ],
8 | "info" : {
9 | "author" : "xcode",
10 | "version" : 1
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/MSAL/test/app/vision/resources/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/MSAL/test/app/vision/resources/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "vision",
5 | "scale" : "2x"
6 | }
7 | ],
8 | "info" : {
9 | "author" : "xcode",
10 | "version" : 1
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/MSAL/test/app/vision/resources/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/MSAL/test/app/vision/resources/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/MSAL/test/app/vision/resources/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleURLTypes
6 |
7 |
8 | CFBundleURLName
9 | $(PRODUCT_BUNDLE_IDENTIFIER)
10 | CFBundleURLSchemes
11 |
12 | msauth.com.microsoft.MSALTestApp
13 |
14 |
15 |
16 | LSApplicationQueriesSchemes
17 |
18 | msauthv3
19 | msauthv2
20 |
21 | UIApplicationSceneManifest
22 |
23 | UIApplicationPreferredDefaultSceneSessionRole
24 | UIWindowSceneSessionRoleApplication
25 | UIApplicationSupportsMultipleScenes
26 |
27 | UISceneConfigurations
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/MSAL/test/app/vision/resources/MSAL Test App (visionOS).entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | keychain-access-groups
6 |
7 | $(AppIdentifierPrefix)com.microsoft.MSALTestApp
8 | $(AppIdentifierPrefix)com.microsoft.adalcache
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/MSAL/test/app/vision/resources/Preview Content/Preview Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/MSAL/test/automation/ios/MSALAutoAppDelegate.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 |
30 | @interface MSALAutoAppDelegate : UIResponder
31 |
32 | @property (strong, nonatomic) UIWindow *window;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/MSAL/test/automation/ios/MSALAutomation.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | keychain-access-groups
6 |
7 | $(AppIdentifierPrefix)com.microsoft.MSALAutomationApp
8 | $(AppIdentifierPrefix)com.microsoft.adalcache
9 | $(AppIdentifierPrefix)com.microsoft.workplacejoin
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/MSAL/test/automation/ios/main.m:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 | #import "MSALAutoAppDelegate.h"
30 |
31 | int main(int argc, char * argv[]) {
32 | @autoreleasepool {
33 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([MSALAutoAppDelegate class]));
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/MSAL/test/automation/ios/resources/Images.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/MSAL/test/automation/ios/util/MSALResult+Automation.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 |
30 | @interface MSALResult (Automation)
31 |
32 | - (NSDictionary *)itemAsDictionary;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/MSAL/test/automation/ios/util/MSALUser+Automation.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 |
30 | @interface MSALAccount (Automation)
31 |
32 | - (NSDictionary *)itemAsDictionary;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/MSAL/test/automation/ios/util/MSIDTokenCacheItem+Automation.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import "MSIDCredentialCacheItem.h"
29 |
30 | @interface MSIDCredentialCacheItem (Automation)
31 |
32 | - (NSDictionary *)itemAsDictionary;
33 |
34 | @end
35 |
36 |
--------------------------------------------------------------------------------
/MSAL/test/automation/tests/MSALADFSBaseUITest.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation.
2 | // All rights reserved.
3 | //
4 | // This code is licensed under the MIT License.
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files(the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions :
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 |
24 | #import "MSALBaseAADUITest.h"
25 |
26 | @interface MSALADFSBaseUITest : MSALBaseAADUITest
27 |
28 | - (NSString *)runSharedADFSInteractiveLoginWithRequest:(MSIDAutomationTestRequest *)request
29 | closeResultView:(BOOL)closeResultView;
30 |
31 | - (NSString *)runSharedADFSInteractiveLoginWithRequest:(MSIDAutomationTestRequest *)request;
32 |
33 | @end
34 |
--------------------------------------------------------------------------------
/MSAL/test/automation/tests/MSALUITests.swift:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation.
2 | // All rights reserved.
3 | //
4 | // This code is licensed under the MIT License.
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files(the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions :
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 |
24 | import Foundation
25 |
--------------------------------------------------------------------------------
/MSAL/test/automation/tests/NSDictionary+MSALiOSUITests.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation.
2 | // All rights reserved.
3 | //
4 | // This code is licensed under the MIT License.
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files(the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions :
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 |
24 | #import
25 |
26 | @interface NSDictionary (MSALiOSUITests)
27 |
28 | - (NSString *)toJsonString;
29 |
30 | @end
31 |
--------------------------------------------------------------------------------
/MSAL/test/automation/tests/NSDictionary+MSALiOSUITests.m:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation.
2 | // All rights reserved.
3 | //
4 | // This code is licensed under the MIT License.
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files(the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions :
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 |
24 | #import "NSDictionary+MSALiOSUITests.h"
25 |
26 | @implementation NSDictionary (MSALiOSUITests)
27 |
28 | - (NSString *)toJsonString
29 | {
30 | NSData *jsonData = [NSJSONSerialization dataWithJSONObject:self options:0 error:nil];
31 | return [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
32 | }
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/MSAL/test/automation/tests/XCUIElement+MSALiOSUITests.h:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation.
2 | // All rights reserved.
3 | //
4 | // This code is licensed under the MIT License.
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files(the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions :
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 |
24 | #import
25 |
26 | @interface XCUIElement (MSALiOSUITests)
27 |
28 | - (void)clearText;
29 | - (void)forceTap;
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/MSAL/test/automation/tests/interactive/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/MSAL/test/automation/tests/multiapp/MSALDotNetCacheCoexistenceTests.m:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation.
2 | // All rights reserved.
3 | //
4 | // This code is licensed under the MIT License.
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files(the "Software"), to deal
8 | // in the Software without restriction, including without limitation the rights
9 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
10 | // copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions :
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 | // THE SOFTWARE.
23 |
24 | #import "MSALBaseAADUITest.h"
25 |
26 | @interface MSALDotNetCacheCoexistenceTests : MSALBaseAADUITest
27 |
28 | @end
29 |
30 | @implementation MSALDotNetCacheCoexistenceTests
31 |
32 | // TODO in the future
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/MSAL/test/integration/native_auth/end_to_end/AuthorityURLFormat.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 |
26 | import Foundation
27 |
28 | enum AuthorityURLFormat {
29 | case tenantSubdomainShortVersion
30 | case tenantSubdomainLongVersion
31 | case tenantSubdomainTenantId
32 | }
33 |
--------------------------------------------------------------------------------
/MSAL/test/integration/native_auth/end_to_end/ClientIdType.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 |
26 | import Foundation
27 |
28 | enum ClientIdType {
29 | case password
30 | case passwordAndAttributes
31 | case code
32 | case codeAndAttributes
33 | }
34 |
--------------------------------------------------------------------------------
/MSAL/test/testplan/MSAL Mac Native Auth E2E Tests.xctestplan:
--------------------------------------------------------------------------------
1 | {
2 | "configurations" : [
3 | {
4 | "id" : "7F1E1B34-AEF9-431F-B9CE-D295BED40820",
5 | "name" : "Test Scheme Action",
6 | "options" : {
7 |
8 | }
9 | }
10 | ],
11 | "defaultOptions" : {
12 | "maximumTestRepetitions" : 5,
13 | "testRepetitionMode" : "retryOnFailure"
14 | },
15 | "testTargets" : [
16 | {
17 | "target" : {
18 | "containerPath" : "container:MSAL.xcodeproj",
19 | "identifier" : "DE1BD0F52C3C282900B0888E",
20 | "name" : "MSAL Mac Native Auth E2E Tests"
21 | }
22 | }
23 | ],
24 | "version" : 1
25 | }
26 |
--------------------------------------------------------------------------------
/MSAL/test/testplan/MSAL iOS Native Auth E2E Tests.xctestplan:
--------------------------------------------------------------------------------
1 | {
2 | "configurations" : [
3 | {
4 | "id" : "1186CC98-3243-4507-A72B-4E3670FF0E7A",
5 | "name" : "Test Scheme Action",
6 | "options" : {
7 |
8 | }
9 | }
10 | ],
11 | "defaultOptions" : {
12 | "maximumTestRepetitions" : 5,
13 | "testRepetitionMode" : "retryOnFailure"
14 | },
15 | "testTargets" : [
16 | {
17 | "target" : {
18 | "containerPath" : "container:MSAL.xcodeproj",
19 | "identifier" : "28CED2E72C21E0F9004320D1",
20 | "name" : "MSAL iOS Native Auth E2E Tests"
21 | }
22 | }
23 | ],
24 | "version" : 1
25 | }
26 |
--------------------------------------------------------------------------------
/MSAL/test/unit/ios/unit-test-host/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 |
30 | @interface AppDelegate : UIResponder
31 |
32 | @property (strong, nonatomic) UIWindow *window;
33 |
34 |
35 | @end
36 |
37 |
--------------------------------------------------------------------------------
/MSAL/test/unit/ios/unit-test-host/ViewController.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 |
30 | @interface ViewController : UIViewController
31 |
32 |
33 | @end
34 |
35 |
--------------------------------------------------------------------------------
/MSAL/test/unit/ios/unit-test-host/main.m:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 | #import "AppDelegate.h"
30 |
31 | int main(int argc, char * argv[]) {
32 | @autoreleasepool {
33 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/MSAL/test/unit/mac/unit-test-host/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 |
30 | @interface AppDelegate : NSObject
31 |
32 |
33 | @end
34 |
35 |
--------------------------------------------------------------------------------
/MSAL/test/unit/mac/unit-test-host/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "mac",
5 | "size" : "16x16",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "mac",
10 | "size" : "16x16",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "mac",
15 | "size" : "32x32",
16 | "scale" : "1x"
17 | },
18 | {
19 | "idiom" : "mac",
20 | "size" : "32x32",
21 | "scale" : "2x"
22 | },
23 | {
24 | "idiom" : "mac",
25 | "size" : "128x128",
26 | "scale" : "1x"
27 | },
28 | {
29 | "idiom" : "mac",
30 | "size" : "128x128",
31 | "scale" : "2x"
32 | },
33 | {
34 | "idiom" : "mac",
35 | "size" : "256x256",
36 | "scale" : "1x"
37 | },
38 | {
39 | "idiom" : "mac",
40 | "size" : "256x256",
41 | "scale" : "2x"
42 | },
43 | {
44 | "idiom" : "mac",
45 | "size" : "512x512",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "mac",
50 | "size" : "512x512",
51 | "scale" : "2x"
52 | }
53 | ],
54 | "info" : {
55 | "version" : 1,
56 | "author" : "xcode"
57 | }
58 | }
--------------------------------------------------------------------------------
/MSAL/test/unit/mac/unit-test-host/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/MSAL/test/unit/mac/unit-test-host/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIconFile
10 |
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleVersion
22 | 1
23 | LSMinimumSystemVersion
24 | $(MACOSX_DEPLOYMENT_TARGET)
25 | NSHumanReadableCopyright
26 | Copyright © 2019 Microsoft. All rights reserved.
27 | NSMainStoryboardFile
28 | Main
29 | NSPrincipalClass
30 | NSApplication
31 |
32 |
33 |
--------------------------------------------------------------------------------
/MSAL/test/unit/mac/unit-test-host/ViewController.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 |
30 | @interface ViewController : NSViewController
31 |
32 |
33 | @end
34 |
35 |
--------------------------------------------------------------------------------
/MSAL/test/unit/mac/unit-test-host/main.m:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 |
30 | int main(int argc, const char * argv[]) {
31 | return NSApplicationMain(argc, argv);
32 | }
33 |
--------------------------------------------------------------------------------
/MSAL/test/unit/resources/OpenIdConfiguration.json:
--------------------------------------------------------------------------------
1 | {
2 | "authorization_endpoint": "https://login.microsoftonline.com/6babcaad-604b-40ac-a9d7-9fd97c0b779f/oauth2/authorize",
3 | "token_endpoint": "https://login.microsoftonline.com/6babcaad-604b-40ac-a9d7-9fd97c0b779f/oauth2/token",
4 | "token_endpoint_auth_methods_supported": [ "client_secret_post", "private_key_jwt" ],
5 | "jwks_uri": "https://login.microsoftonline.com/common/discovery/keys",
6 | "response_modes_supported": [ "query", "fragment", "form_post" ],
7 | "subject_types_supported": [ "pairwise" ],
8 | "id_token_signing_alg_values_supported": [ "RS256" ],
9 | "http_logout_supported": true,
10 | "response_types_supported": [ "code", "id_token", "code id_token", "token id_token", "token" ],
11 | "scopes_supported": [ "openid" ],
12 | "issuer": "https://sts.windows.net/6babcaad-604b-40ac-a9d7-9fd97c0b779f/",
13 | "claims_supported": [ "sub", "iss", "cloud_instance_name", "aud", "exp", "iat", "auth_time", "acr", "amr", "nonce", "email", "given_name", "family_name", "nickname" ],
14 | "check_session_iframe": "https://login.microsoftonline.com/6babcaad-604b-40ac-a9d7-9fd97c0b779f/oauth2/checksession",
15 | "end_session_endpoint": "https://login.microsoftonline.com/6babcaad-604b-40ac-a9d7-9fd97c0b779f/oauth2/logout",
16 | "userinfo_endpoint": "https://login.microsoftonline.com/6babcaad-604b-40ac-a9d7-9fd97c0b779f/openid/userinfo"
17 | }
18 |
--------------------------------------------------------------------------------
/MSAL/test/unit/resources/OpenIdConfigurationMissingFields.json:
--------------------------------------------------------------------------------
1 | {
2 | "authorization_endpoint": "https://login.microsoftonline.com/6babcaad-604b-40ac-a9d7-9fd97c0b779f/oauth2/authorize",
3 | "token_endpoint_auth_methods_supported": [ "client_secret_post", "private_key_jwt" ],
4 | "jwks_uri": "https://login.microsoftonline.com/common/discovery/keys",
5 | "response_modes_supported": [ "query", "fragment", "form_post" ],
6 | "subject_types_supported": [ "pairwise" ],
7 | "id_token_signing_alg_values_supported": [ "RS256" ],
8 | "http_logout_supported": true,
9 | "response_types_supported": [ "code", "id_token", "code id_token", "token id_token", "token" ],
10 | "scopes_supported": [ "openid" ],
11 | "issuer": "https://sts.windows.net/6babcaad-604b-40ac-a9d7-9fd97c0b779f/",
12 | "claims_supported": [ "sub", "iss", "cloud_instance_name", "aud", "exp", "iat", "auth_time", "acr", "amr", "nonce", "email", "given_name", "family_name", "nickname" ],
13 | "check_session_iframe": "https://login.microsoftonline.com/6babcaad-604b-40ac-a9d7-9fd97c0b779f/oauth2/checksession",
14 | "end_session_endpoint": "https://login.microsoftonline.com/6babcaad-604b-40ac-a9d7-9fd97c0b779f/oauth2/logout",
15 | "userinfo_endpoint": "https://login.microsoftonline.com/6babcaad-604b-40ac-a9d7-9fd97c0b779f/openid/userinfo"
16 | }
17 |
--------------------------------------------------------------------------------
/MSAL/test/unit/resources/ios/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/MSAL/test/unit/resources/mac/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/MSAL/test/unit/utils/MSALDevicePopManagerUtil.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) Microsoft Corporation.
3 | // All rights reserved.
4 | //
5 | // This code is licensed under the MIT License.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files(the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions :
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 |
26 |
27 | #import
28 | #import "MSIDDevicePopManager.h"
29 | #import "MSIDAssymetricKeyKeychainGenerator.h"
30 |
31 |
32 | @interface MSALDevicePopManagerUtil : NSObject
33 |
34 | + (MSIDDevicePopManager *)test_initWithValidCacheConfig;
35 |
36 | + (MSIDAssymetricKeyKeychainGenerator *)keyGeneratorWithConfig:(MSIDCacheConfig *)cacheConfig;
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/MSAL/test/unit/utils/MSIDTestURLSession+MSAL.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 | #import "MSIDTestURLSession.h"
30 |
31 | typedef void (^MSALTestHttpCompletionBlock)(NSData *data, NSURLResponse *response, NSError *error);
32 |
33 | @interface MSIDTestURLSession (MSAL)
34 |
35 | @end
36 |
--------------------------------------------------------------------------------
/MSAL/unit-test-host.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | keychain-access-groups
6 |
7 | $(AppIdentifierPrefix)com.microsoft.unit-test-host
8 | $(AppIdentifierPrefix)com.microsoft.adalcache
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/MSAL/xcconfig/msal__automation_app__ios.xcconfig:
--------------------------------------------------------------------------------
1 | #include "msal__common__ios.xcconfig"
2 |
3 | INFOPLIST_FILE = test/automation/ios/resources/info.plist;
4 | PRODUCT_BUNDLE_IDENTIFIER = com.microsoft.MSALAutomationApp;
5 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
6 | PRODUCT_NAME = MSAL Automation App;
7 | USER_HEADER_SEARCH_PATHS = $IDCORE_PATH/tests/automation/** $IDCORE_PATH/src/**;
8 |
--------------------------------------------------------------------------------
/MSAL/xcconfig/msal__common.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../IdentityCore/IdentityCore/xcconfig/identitycore__common.xcconfig"
2 |
3 | GCC_PREFIX_HEADER = src/MSAL.pch
4 | IDCORE_PATH = IdentityCore/IdentityCore
5 | USER_HEADER_SEARCH_PATHS = $(inherited) $IDCORE_PATH/src/**
6 |
7 | OTHER_CFLAGS=$(inherited) -fstack-protector-strong
8 |
9 |
--------------------------------------------------------------------------------
/MSAL/xcconfig/msal__common__framework__ios.xcconfig:
--------------------------------------------------------------------------------
1 | CURRENT_PROJECT_VERSION = 1;
2 | DYLIB_COMPATIBILITY_VERSION = 1;
3 | DYLIB_CURRENT_VERSION = 1;
4 | DYLIB_INSTALL_NAME_BASE = @rpath;
5 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
6 | VERSIONING_SYSTEM = "apple-generic";
7 | VERSION_INFO_PREFIX = "";
8 |
--------------------------------------------------------------------------------
/MSAL/xcconfig/msal__common__framework__mac.xcconfig:
--------------------------------------------------------------------------------
1 | DEFINES_MODULE = YES;
2 | COMBINE_HIDPI_IMAGES = YES;
3 | CURRENT_PROJECT_VERSION = 1;
4 | DYLIB_COMPATIBILITY_VERSION = 1;
5 | DYLIB_CURRENT_VERSION = 1;
6 | DYLIB_INSTALL_NAME_BASE = @rpath;
7 | FRAMEWORK_VERSION = A;
8 | VERSIONING_SYSTEM = "apple-generic";
9 | VERSION_INFO_PREFIX = "";
10 |
--------------------------------------------------------------------------------
/MSAL/xcconfig/msal__common__ios.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../IdentityCore/IdentityCore/xcconfig/identitycore__common__ios.xcconfig"
2 | ARCHS[sdk=iphoneos*] = $(ARCHS_STANDARD)
3 | ARCHS[sdk=xros*] = $(ARCHS_STANDARD)
4 |
--------------------------------------------------------------------------------
/MSAL/xcconfig/msal__common__mac.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../IdentityCore/IdentityCore/xcconfig/identitycore__common__mac.xcconfig"
2 |
--------------------------------------------------------------------------------
/MSAL/xcconfig/msal__debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "msal__common.xcconfig"
2 | #include "../IdentityCore/IdentityCore/xcconfig/identitycore__debug.xcconfig"
3 |
--------------------------------------------------------------------------------
/MSAL/xcconfig/msal__framework__ios.xcconfig:
--------------------------------------------------------------------------------
1 | #include "msal__common__ios.xcconfig"
2 | #include "msal__common__framework__ios.xcconfig"
3 |
4 | DEFINES_MODULE = YES;
5 | INFOPLIST_FILE = resources/ios/Info.plist;
6 | PRODUCT_BUNDLE_IDENTIFIER = com.microsoft.MSAL;
7 | PRODUCT_NAME = MSAL;
8 |
9 |
--------------------------------------------------------------------------------
/MSAL/xcconfig/msal__framework__mac.xcconfig:
--------------------------------------------------------------------------------
1 | #include "msal__common__mac.xcconfig"
2 | #include "msal__common__framework__mac.xcconfig"
3 |
4 | DEFINES_MODULE = YES;
5 | INFOPLIST_FILE = resources/mac/Info.plist;
6 | PRODUCT_BUNDLE_IDENTIFIER = com.microsoft.MSAL;
7 | PRODUCT_NAME = MSAL;
8 |
--------------------------------------------------------------------------------
/MSAL/xcconfig/msal__release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "msal__common.xcconfig"
2 | #include "../IdentityCore/IdentityCore/xcconfig/identitycore__release.xcconfig"
3 |
--------------------------------------------------------------------------------
/MSAL/xcconfig/msal__static__lib__ios.xcconfig:
--------------------------------------------------------------------------------
1 | #include "msal__framework__ios.xcconfig"
2 |
3 | // Force the linker to resolve symbols.
4 | GENERATE_MASTER_OBJECT_FILE = YES
5 |
6 | ARCHS = $(ARCHS_STANDARD)
7 |
8 | // Activate full bitcode on release configuration for real devices.
9 | OTHER_CFLAGS[config=Release][sdk=iphoneos*] = $(OTHER_CFLAGS) -fembed-bitcode
10 |
11 | // Build static library.
12 | MACH_O_TYPE = staticlib
13 |
--------------------------------------------------------------------------------
/MSAL/xcconfig/msal__static__lib__mac.xcconfig:
--------------------------------------------------------------------------------
1 | #include "msal__framework__mac.xcconfig"
2 |
3 | // Force the linker to resolve symbols.
4 | GENERATE_MASTER_OBJECT_FILE = YES
5 |
6 | // Build static library.
7 | MACH_O_TYPE = staticlib
8 |
--------------------------------------------------------------------------------
/MSAL/xcconfig/msal__test_app__ios.xcconfig:
--------------------------------------------------------------------------------
1 | #include "msal__common__ios.xcconfig"
2 |
3 | INFOPLIST_FILE = test/app/ios/resources/Info.plist;
4 | PRODUCT_BUNDLE_IDENTIFIER = com.microsoft.MSALTestApp;
5 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
6 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
7 | PRODUCT_NAME = MSAL Test App;
8 | OTHER_LDFLAGS = "-ObjC";
9 |
10 |
--------------------------------------------------------------------------------
/MSAL/xcconfig/msal__test_app__mac.xcconfig:
--------------------------------------------------------------------------------
1 | #include "msal__common__mac.xcconfig"
2 |
3 | INFOPLIST_FILE = test/app/mac/resources/Info.plist;
4 | PRODUCT_BUNDLE_IDENTIFIER = com.microsoft.MSALTestApp;
5 | PRODUCT_NAME = MSAL Test App;
6 |
--------------------------------------------------------------------------------
/MSAL/xcconfig/msal__test_app__vision.xcconfig:
--------------------------------------------------------------------------------
1 | #include "msal__common__ios.xcconfig"
2 |
3 | INFOPLIST_FILE = test/app/vision/resources/Info.plist
4 | PRODUCT_BUNDLE_IDENTIFIER = com.microsoft.MSALTestApp
5 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
6 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage
7 | PRODUCT_NAME = MSAL Test App
8 | OTHER_LDFLAGS = "-ObjC"
9 |
--------------------------------------------------------------------------------
/MSAL/xcconfig/msal__ui_test__ios.xcconfig:
--------------------------------------------------------------------------------
1 | #include "msal__common__ios.xcconfig"
2 |
3 | INFOPLIST_FILE = test/unit/resources/ios/Info.plist;
4 | PRODUCT_BUNDLE_IDENTIFIER = com.microsoft.InteractiveiOSTests;
5 | PRODUCT_NAME = "InteractiveiOSTests";
6 | USER_HEADER_SEARCH_PATHS = $IDCORE_PATH/tests/automation/** $IDCORE_PATH/src/**;
7 |
--------------------------------------------------------------------------------
/MSAL/xcconfig/msal__unit_test__ios.xcconfig:
--------------------------------------------------------------------------------
1 | #include "msal__common__ios.xcconfig"
2 |
3 | INFOPLIST_FILE = test/automation/tests/interactive/Info.plist;
4 | PRODUCT_BUNDLE_IDENTIFIER = com.microsoft.MSAL-iOS-Unit-Tests;
5 | PRODUCT_NAME = "MSAL-iOS-UI-Tests";
6 | GCC_WARN_UNUSED_PARAMETER = NO
7 |
--------------------------------------------------------------------------------
/MSAL/xcconfig/msal__unit_test__mac.xcconfig:
--------------------------------------------------------------------------------
1 | #include "msal__common__mac.xcconfig"
2 | #include "msal__common__framework__mac.xcconfig"
3 |
4 | INFOPLIST_FILE = test/unit/resources/mac/Info.plist;
5 | PRODUCT_BUNDLE_IDENTIFIER = com.microsoft.MSAL-Mac-Unit-Tests;
6 | PRODUCT_NAME = "MSAL-Mac-Unit-Tests"
7 | GCC_WARN_UNUSED_PARAMETER = NO
8 |
--------------------------------------------------------------------------------
/MSAL/xcconfig/msal__unit_test_host__ios.xcconfig:
--------------------------------------------------------------------------------
1 | #include "msal__common__ios.xcconfig"
2 |
3 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
4 | INFOPLIST_FILE = test/unit/ios/unit-test-host/Info.plist;
5 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
6 | PRODUCT_BUNDLE_IDENTIFIER = com.microsoft.unit-test-host;
7 | PRODUCT_NAME = unit-test-host;
8 | GCC_WARN_UNUSED_PARAMETER = NO
9 |
--------------------------------------------------------------------------------
/PULL_REQUEST_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | ## Proposed changes
2 |
3 | Describe what this PR is trying to do.
4 |
5 | ## Type of change
6 |
7 | - [ ] Feature work
8 | - [ ] Bug fix
9 | - [ ] Documentation
10 | - [ ] Engineering change
11 | - [ ] Test
12 | - [ ] Logging/Telemetry
13 |
14 | ## Risk
15 |
16 | - [ ] High – Errors could cause MAJOR regression of many scenarios. (Example: new large features or high level infrastructure changes)
17 | - [ ] Medium – Errors could cause regression of 1 or more scenarios. (Example: somewhat complex bug fixes, small new features)
18 | - [ ] Small – No issues are expected. (Example: Very small bug fixes, string changes, or configuration settings changes)
19 |
20 | ## Additional information
21 |
22 |
--------------------------------------------------------------------------------
/Package.swift:
--------------------------------------------------------------------------------
1 | // swift-tools-version:5.3
2 |
3 | import PackageDescription
4 |
5 | let package = Package(
6 | name: "MSAL",
7 | platforms: [
8 | .macOS(.v10_15),.iOS(.v14)
9 | ],
10 | products: [
11 | .library(
12 | name: "MSAL",
13 | targets: ["MSAL"]),
14 | ],
15 | targets: [
16 | .binaryTarget(name: "MSAL", url: "https://github.com/AzureAD/microsoft-authentication-library-for-objc/releases/download/2.1.0/MSAL.zip", checksum: "678f6eada9d50431d1417bf75f5b88313c299512a64848c18bcfc5654035429e")
17 | ]
18 | )
19 |
--------------------------------------------------------------------------------
/ReleaseArchive.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | if [ -z "$1" ]
4 | then
5 | echo -e "\r\nUsage:\r\nReleaseArchive [destination]\r\nE.g. ReleaseArchive 0.1.6\r\nor\r\nReleaseArchive 0.1.6 /Users/abc/Downloads\r\n(Zip and Tar file will be output to ~\Desktop if not specified.)\r\n"
6 | exit
7 | fi
8 |
9 | libraryName=microsoft-authentication-library-for-objc
10 | tag=$1
11 | if [ -z "$2" ]; then destination=~/Desktop; else destination=$2; fi
12 | releaseFolder=$libraryName-$tag
13 |
14 | # archive the main project without submodule and uncompress it
15 | git archive --prefix=$releaseFolder/ -o $destination/$mainProj.tar HEAD
16 | tar -xf $destination/$mainProj.tar -C $destination/
17 | rm $destination/$mainProj.tar
18 |
19 | repoPath=`pwd`
20 |
21 | # iterate the submodules, archive it and then uncompress it
22 | git submodule foreach | while read omittedChars submodulePath; do
23 | # remove the first and last single quote from the path string
24 | submodulePath=${submodulePath#\'}
25 | submodulePath=${submodulePath%\'}
26 |
27 | cd $submodulePath
28 | git archive --prefix=$releaseFolder/$submodulePath/ HEAD > $destination/tmp.tar
29 |
30 |
31 | tar -xf $destination/tmp.tar -C $destination/
32 | rm $destination/tmp.tar
33 | done
34 |
35 | # create the target tar/zip file
36 | cd $destination
37 | tar -zcf ./$releaseFolder.tar.gz ./$releaseFolder
38 | zip -r -q -X ./$releaseFolder.zip ./$releaseFolder
39 | #rm -R ./$releaseFolder
40 |
41 | echo -e "\r\nDone!\r\n\r\n$releaseFolder.tar.gz\r\nand\r\n$releaseFolder.zip\r\nhave been created at $destination.\r\n"
42 |
--------------------------------------------------------------------------------
/Samples/ios/SampleApp.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Samples/ios/SampleApp.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Samples/ios/SampleApp/SampleAppiOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Samples/ios/SampleApp/SampleAppiOS.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Samples/ios/SampleApp/SampleAppiOS/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/Samples/ios/SampleApp/SampleAppiOS/Assets.xcassets/sign-in-with-microsoft-light.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "sign-in-with-microsoft-light.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/Samples/ios/SampleApp/SampleAppiOS/Assets.xcassets/sign-in-with-microsoft-light.imageset/sign-in-with-microsoft-light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AzureAD/microsoft-authentication-library-for-objc/ee78453807f998cf76e200e0f27af6beac684d8d/Samples/ios/SampleApp/SampleAppiOS/Assets.xcassets/sign-in-with-microsoft-light.imageset/sign-in-with-microsoft-light.png
--------------------------------------------------------------------------------
/Samples/ios/SampleApp/SampleAppiOS/SampleAppErrors.m:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 | #import "SampleAppErrors.h"
30 |
31 | const NSErrorDomain SampleAppErrorDomain = (NSErrorDomain)(@"SampleAppErrorDomain");
32 |
--------------------------------------------------------------------------------
/Samples/ios/SampleApp/SampleAppiOS/SampleAppiOS.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | keychain-access-groups
6 |
7 | $(AppIdentifierPrefix)com.microsoft.MSALSampleApp
8 | $(AppIdentifierPrefix)com.microsoft.adalcache
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Samples/ios/SampleApp/SampleAppiOS/SampleBaseViewController.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import
29 |
30 | @interface SampleBaseViewController : UIViewController
31 |
32 | - (void)showDialogForError:(NSError *)error;
33 |
34 | - (float)startY;
35 |
36 | @end
37 |
--------------------------------------------------------------------------------
/Samples/ios/SampleApp/SampleAppiOS/SampleLoginViewController.h:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | #import "SampleBaseViewController.h"
29 |
30 | @interface SampleLoginViewController : SampleBaseViewController
31 |
32 | + (instancetype)sharedViewController;
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/Samples/ios/SampleApp/SampleAppiOS/no_photo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AzureAD/microsoft-authentication-library-for-objc/ee78453807f998cf76e200e0f27af6beac684d8d/Samples/ios/SampleApp/SampleAppiOS/no_photo.png
--------------------------------------------------------------------------------
/Samples/ios/SampleAppiOS-Swift/SampleAppiOS-Swift.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Samples/ios/SampleAppiOS-Swift/SampleAppiOS-Swift.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Samples/ios/SampleAppiOS-Swift/SampleAppiOS-Swift/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/Samples/ios/SampleAppiOS-Swift/SampleAppiOS-Swift/Assets.xcassets/no_photo.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "no_photo.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/Samples/ios/SampleAppiOS-Swift/SampleAppiOS-Swift/Assets.xcassets/no_photo.imageset/no_photo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AzureAD/microsoft-authentication-library-for-objc/ee78453807f998cf76e200e0f27af6beac684d8d/Samples/ios/SampleAppiOS-Swift/SampleAppiOS-Swift/Assets.xcassets/no_photo.imageset/no_photo.png
--------------------------------------------------------------------------------
/Samples/ios/SampleAppiOS-Swift/SampleAppiOS-Swift/Assets.xcassets/sign-in-with-microsoft-light.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "sign-in-with-microsoft-light.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Samples/ios/SampleAppiOS-Swift/SampleAppiOS-Swift/Assets.xcassets/sign-in-with-microsoft-light.imageset/sign-in-with-microsoft-light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AzureAD/microsoft-authentication-library-for-objc/ee78453807f998cf76e200e0f27af6beac684d8d/Samples/ios/SampleAppiOS-Swift/SampleAppiOS-Swift/Assets.xcassets/sign-in-with-microsoft-light.imageset/sign-in-with-microsoft-light.png
--------------------------------------------------------------------------------
/Samples/ios/SampleAppiOS-Swift/SampleAppiOS-Swift/SampleAppiOS-Swift.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | keychain-access-groups
6 |
7 | $(AppIdentifierPrefix)com.microsoft.SampleAppiOS-Swift
8 | $(AppIdentifierPrefix)com.microsoft.adalcache
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Samples/ios/SampleAppiOS-Swift/SampleAppiOS-Swift/SampleGraphScopes.swift:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) Microsoft Corporation.
4 | // All rights reserved.
5 | //
6 | // This code is licensed under the MIT License.
7 | //
8 | // Permission is hereby granted, free of charge, to any person obtaining a copy
9 | // of this software and associated documentation files(the "Software"), to deal
10 | // in the Software without restriction, including without limitation the rights
11 | // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
12 | // copies of the Software, and to permit persons to whom the Software is
13 | // furnished to do so, subject to the following conditions :
14 | //
15 | // The above copyright notice and this permission notice shall be included in
16 | // all copies or substantial portions of the Software.
17 | //
18 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
21 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | // THE SOFTWARE.
25 | //
26 | //------------------------------------------------------------------------------
27 |
28 | enum GraphScopes: String {
29 | case UserRead = "User.Read"
30 | case CalendarsRead = "Calendars.Read"
31 | }
32 |
--------------------------------------------------------------------------------
/TestRubyFile.rb:
--------------------------------------------------------------------------------
1 | #import the xcodeproj ruby gem
2 | require 'xcodeproj'
3 | #define the path to your .xcodeproj file
4 | project_path = 'MSAL/MSAL.xcodeproj'
5 | #open the xcode project
6 | project = Xcodeproj::Project.open(project_path)
7 | #find the group on which you want to add the file
8 | group = project.main_group['test/automation']
9 | #get the file reference for the file to add
10 | file = group.new_file('conf.json')
11 | #add the file reference to the projects first target
12 | project.targets.each do |target|
13 | if target.name == "MultiAppiOSTests" || target.name == "InteractiveiOSTests" || target.name == "MSAL iOS Native Auth E2E Tests" || target.name == "MSAL Mac Native Auth E2E Tests"
14 | target.add_resources([file])
15 | end
16 | end
17 | #finally, save the project
18 | project.save
--------------------------------------------------------------------------------
/azure_pipelines/msal-release-ado-trigger.yml:
--------------------------------------------------------------------------------
1 | trigger:
2 | branches:
3 | include:
4 | - main
5 | paths:
6 | include:
7 | - CHANGELOG.md
8 |
9 | pr: none
10 |
11 | jobs:
12 | - job:
13 | displayName: "Trigger MSAL Release - OneBranch Pipeline"
14 | steps:
15 | - bash: |
16 | az pipelines run --project $(ADOPROJECT) --id $(MSAL_ADO_RELEASE_PIPELINE_ID) --branch 'main' --organization $(ADOORGANIZATION)
17 | displayName: 'Trigger MSAL Release - OneBranch Pipeline'
18 | env:
19 | AZURE_DEVOPS_EXT_PAT: $(System.AccessToken)
--------------------------------------------------------------------------------
/build_docs.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # To build manually run "sudo sh build_docs.sh"
3 | # As MSAL is a mixed Objective-C and Swift project we need to use SourceKitten to
4 | # first extract the doc comments from the source before building with Jazzy. For more
5 | # details see https://github.com/realm/jazzy?tab=readme-ov-file#mixed-objective-c--swift
6 | gem install jazzy
7 | echo -e "Copying MSAL public files"
8 | mkdir docs.temp
9 | mkdir docs.temp/MSAL
10 | cp `find MSAL/src/public` docs.temp/MSAL
11 | cp `find MSAL/src/native_auth/public` docs.temp/MSAL
12 | cp README.md docs.temp/
13 |
14 | echo -e "Generating MSAL documentation"
15 | # Generate Swift SourceKitten output
16 | sourcekitten doc -- -workspace MSAL.xcworkspace -scheme "MSAL (iOS Framework)" -configuration Debug RUN_CLANG_STATIC_ANALYZER=NO -sdk iphonesimulator CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -destination 'platform=iOS Simulator,name=iPhone 14,OS=16.4' > docs.temp/swiftDoc.json
17 |
18 | # Generate Objective-C SourceKitten output
19 | cd docs.temp
20 | sourcekitten doc --objc $(pwd)/MSAL/MSAL.h -- -x objective-c -isysroot $(xcrun --show-sdk-path --sdk iphonesimulator) \-I $(pwd) -fmodules > objcDoc.json
21 | cd ..
22 |
23 | # Feed both outputs to Jazzy as a comma-separated list
24 | jazzy --module MSAL --sourcekitten-sourcefile docs.temp/swiftDoc.json,docs.temp/objcDoc.json --author Microsoft\ Corporation --author_url https://aka.ms/azuread --github_url https://github.com/AzureAD/microsoft-authentication-library-for-objc --theme fullwidth --output docs.temp/docs
25 |
--------------------------------------------------------------------------------
/cgmanifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json.schemastore.org/component-detection-manifest.json",
3 | "version": 1,
4 | "registrations":[
5 | {
6 | "component": {
7 | "type": "other",
8 | "other": {
9 | "name": "SwiftLint",
10 | "version": "0.53.0",
11 | "downloadUrl": "https://github.com/realm/SwiftLint/releases/download/0.53.0/SwiftLint.pkg"
12 | }
13 | },
14 | "developmentDependency" : true
15 | }
16 | ]
17 | }
--------------------------------------------------------------------------------