Skip to content

Commit 0de239a

Browse files
committed
Remove auth service token generation from e2e tests
Remove the Auth Service token generation that requests tokens from auth.services.bitrise.io. Also removes the now-unused related env vars.
1 parent 604aeec commit 0de239a

1 file changed

Lines changed: 0 additions & 39 deletions

File tree

e2e/bitrise.yml

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ app:
122122
}
123123
]
124124
- BITRISE_APP_SLUG: b520099804d7e71a
125-
- BITRISE_AUTH_SERVICE_ARTIFACT_PULL_CLIENT_SECRET: $BITRISE_AUTH_SERVICE_ARTIFACT_PULL_CLIENT_SECRET
126125

127126
workflows:
128127
test_download_tar_archive:
@@ -249,44 +248,6 @@ workflows:
249248
250249
_setup:
251250
steps:
252-
- script:
253-
title: Get access token
254-
inputs:
255-
- content: |-
256-
#!/bin/env bash
257-
set -ex
258-
259-
# The `claim_token` below is a base64 encoded struct which describes to which builds and pipelines need to be accessed.
260-
# It has the following format:
261-
# {
262-
# "build_ids": [
263-
# "build-id-1",
264-
# "build-id-2",
265-
# "build-id-3",
266-
# "build-id-4",
267-
# "build-id-5"
268-
# ],
269-
# "pipeline_ids": [
270-
# "pipeline-id-1"
271-
# ]
272-
# }
273-
#
274-
# This needs to be assembled and base64 encoded manually. Use the above BITRISEIO_FINISHED_STAGES json value
275-
# and use all of the external_id values as build_ids. The pipeline identifier can be copied from the website.
276-
277-
json_response=$(curl --fail -X POST https://auth.services.bitrise.io/auth/realms/bitrise-services/protocol/openid-connect/token -k \
278-
--data "client_id=artifact-pull" \
279-
--data "client_secret=$BITRISE_AUTH_SERVICE_ARTIFACT_PULL_CLIENT_SECRET" \
280-
--data "grant_type=urn:ietf:params:oauth:grant-type:uma-ticket" \
281-
--data "scope=build_artifact:read build:read app:read" \
282-
--data "claim_token=ewogICJidWlsZF9pZHMiOiBbCiAgICAiZWE5ZTRlYjgtNWE4Yi00YmZlLWI3MWQtYWJkZmM5YWVkMzA2IiwKICAgICIzZmNjYzgyMS1iMzJlLTQ4M2ItYTcxZS02M2M3YTE5NWFlYzkiLAogICAgImQ2NjUyYTY1LTkwYjMtNDM4Zi1hMDQ4LWUxNjg0ODUzOGExZSIsCiAgICAiYjBmY2U0N2UtMDIwZS00M2NlLWJkYjUtM2FlYjk1MjdkNmUzIiwKICAgICI5MjliMzVkYi0wNzVkLTQ1MTEtOTQ3ZC04Nzk2YjZiZmFjNDQiLAogICAgIjI1ZDMwOWI2LWJhMTctNDdiMC1hMTY2LWZmMmUyY2QzYmQ5NiIKICBdLAogICJwaXBlbGluZV9pZCI6IFsKICAgICIyYWVlMTAxMy01NmZiLTQ2YjgtYTI4Ny01M2YwZjMxNmM0ZjUiCiAgXQp9" \
283-
--data "claim_token_format=urn:ietf:params:oauth:token-type:jwt" \
284-
--data "audience=bitrise-api")
285-
286-
auth_token=$(echo $json_response | jq -r .access_token)
287-
288-
envman add --key BITRISEIO_ARTIFACT_PULL_TOKEN --value $auth_token
289-
290251
- script:
291252
title: Clean _tmp folder
292253
inputs:

0 commit comments

Comments
 (0)