-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract the mock api url from code to pipeline argument #2387
Conversation
common4j/build.gradle
Outdated
@@ -164,6 +165,11 @@ if (project.hasProperty("useMockApiForNativeAuth")) { | |||
useMockApiForNativeAuthParameter = useMockApiForNativeAuth | |||
} | |||
|
|||
if (project.hasProperty("mockApiUrl")) { | |||
mockApiUrlParameter = mockApiUrl.toString() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need to call toString()
here.
…into yuki/extract-mock-api-pipeline
@shahzaibj @p3dr0rv @fadidurah This PR makes change on pipeline yml files. Could I kindly ask for your confirmation and review in case I missed something that could cause issues to the pipeline. For the skiped MSAL consumers check, I will add -PmockApiUrl=$(MOCK_API_URL) later in msal repo. Many thanks! |
Summary
The Mock API domain is hardcoded in our test source files. This domain should not be publicly known.
Please refer to #2387 for comments related with the PR.
Company MSAL PR: AzureAD/microsoft-authentication-library-for-android#2103