---
id: change/al-go/2380
type: change
title: "#2380 Fix device login initialization with a shared authentication action"
summary: A shared authentication action now handles device login initialization for AL-Go workflows, ensuring credentials are validated and helpers are available before sign-in instructions are displayed.
tier: official
language: en
tags:
  - fix
  - main
system: platform
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:03:12.617Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 1d7faabc2266abcb145fbe56fe450465f5fc468e
evidence:
  - kind: code
    url: https://github.com/microsoft/AL-Go/pull/2380
    title: "microsoft/AL-Go#2380: Fix device login initialization with a shared authentication action"
    date: "2026-09-29"
    commit: 1d7faabc2266abcb145fbe56fe450465f5fc468e
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 2380
repo: microsoft/AL-Go
source_id: al-go-prs
url: https://github.com/microsoft/AL-Go/pull/2380
kind: pr
base_branch: main
major: null
merged_at: "2026-09-29T15:34:12Z"
author: aholstrup1
author_type: User
community_contribution: false
labels: []
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 11
  additions: 474
  deletions: 95
  al: 7
apps: []
objects_touched: []
objects_unjoined:
  - path: Actions/Authenticate/Authenticate.ps1
    status: added
    reason: not-in-snapshot
  - path: Actions/Authenticate/README.md
    status: added
    reason: not-in-snapshot
  - path: Actions/Authenticate/action.yaml
    status: added
    reason: not-in-snapshot
  - path: Templates/AppSource App/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml
    status: modified
    reason: not-in-snapshot
  - path: Templates/AppSource App/.github/workflows/PublishToEnvironment.yaml
    status: modified
    reason: not-in-snapshot
  - path: Templates/Per Tenant Extension/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml
    status: modified
    reason: not-in-snapshot
  - path: Templates/Per Tenant Extension/.github/workflows/PublishToEnvironment.yaml
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues:
  - 2113
work_items: []
systems:
  - platform
quote: null
joined_against:
  major: null
  commit: null
---

# #2380 Fix device login initialization with a shared authentication action

> A shared authentication action now handles device login initialization for AL-Go workflows, ensuring credentials are validated and helpers are available before sign-in instructions are displayed.

[Pull request](https://github.com/microsoft/AL-Go/pull/2380) · merged into `main` on 2026-09-29 by aholstrup1 · 11 files (+474 -95), 7 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- New Authenticate action centralizes credential checks and device-login setup across workflows
- Credentials passed through environment variables instead of PowerShell source interpolation
- Existing credential precedence and admin secret name configuration preserved
- Missing credentials and invalid responses now fail explicitly with detailed messages
- Applied to CreateOnlineDevelopmentEnvironment and PublishToEnvironment workflows in both app templates
- Behaviour changes for users or extensions.

## AL objects touched

- `Actions/Authenticate/Authenticate.ps1`: added, not in the BC? snapshot yet
- `Actions/Authenticate/README.md`: added, not in the BC? snapshot yet
- `Actions/Authenticate/action.yaml`: added, not in the BC? snapshot yet
- `Templates/AppSource App/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml`: modified, not in the BC? snapshot
- `Templates/AppSource App/.github/workflows/PublishToEnvironment.yaml`: modified, not in the BC? snapshot
- `Templates/Per Tenant Extension/.github/workflows/CreateOnlineDevelopmentEnvironment.yaml`: modified, not in the BC? snapshot
- `Templates/Per Tenant Extension/.github/workflows/PublishToEnvironment.yaml`: modified, not in the BC? snapshot

## Context

- Fixes: [#2113 [Bug]: Using the action "Create Online Dev. Environment" fails in Initialization phase](https://github.com/microsoft/AL-Go/issues/2113) (closed)
- Systems: platform

Source: metadata of a merged pull request in microsoft/AL-Go (al-go): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
