Skip to content

Commit

Permalink
Add test workflow for testing MSAL Authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikhr committed Jan 28, 2024
1 parent 6f4e2a9 commit 0b78156
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/msidp-authentication-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: MSAL Federated Credentials

Check warning on line 1 in .github/workflows/msidp-authentication-test.yml

View workflow job for this annotation

GitHub Actions / Node.js / Prettier

Code style issues found in '.github/workflows/msidp-authentication-test.yml'

Prettier: Code style issues found in '.github/workflows/msidp-authentication-test.yml'

on:
workflow_dispatch:
inputs:
tenant-id:
type: string
required: true
client-id:
type: string
required: true
resource:
type: string
resource-hostname:
type: string

permissions:
id-token: write

jobs:
msal:
name: Acquire Azure AD Access Token
runs-on: ubuntu-latest
steps:
- name: Checkout ${{ github.repository }}@${{ github.ref }}
uses: actions/checkout@v4.1.1
- name: Authenticate using GitHub action
uses: ./run/ms-idp-workflow-run-auth
with:
tenant-id: ${{ inputs.tenant-id }}
client-id: ${{ inputs.client-id }}
resource: ${{ inputs.resource }}
msal-tmp-cert:
name: Acquire Azure AD Access Token (using temporary certificate)
runs-on: ubuntu-latest
steps:
- name: Checkout ${{ github.repository }}@${{ github.ref }}
uses: actions/checkout@v4.1.1
- name: Authenticate using GitHub action
uses: ./run/ms-idp-workflow-run-auth
with:
tenant-id: ${{ inputs.tenant-id }}
client-id: ${{ inputs.client-id }}
resource: ${{ inputs.resource }}
auth-method: 'ms-idp-temporary-certificate'
msal-tmp-secret:
name: Acquire Azure AD Access Token (using temporary secret)
runs-on: ubuntu-latest
steps:
- name: Checkout ${{ github.repository }}@${{ github.ref }}
uses: actions/checkout@v4.1.1
- name: Authenticate using GitHub action
uses: ./run/ms-idp-workflow-run-auth
with:
tenant-id: ${{ inputs.tenant-id }}
client-id: ${{ inputs.client-id }}
resource: ${{ inputs.resource }}
auth-method: 'ms-idp-temporary-secret'
acs-tmp-secret:
name: Acquire Azure AD Access Token (using ACS with temporary secret)
runs-on: ubuntu-latest
steps:
- name: Checkout ${{ github.repository }}@${{ github.ref }}
uses: actions/checkout@v4.1.1
- name: Authenticate using GitHub action
uses: ./run/ms-idp-workflow-run-auth
with:
tenant-id: ${{ inputs.tenant-id }}
client-id: ${{ inputs.client-id }}
resource: ${{ inputs.resource }}/${{ inputs.resource-hostname }}
auth-method: 'az-acs-temporary-secret'

0 comments on commit 0b78156

Please sign in to comment.