Skip to content

Releases: AzureAD/microsoft-authentication-library-for-go

v1.6.0

05 Nov 15:10
22fd2ee

Choose a tag to compare

What's Changed

  • Deprecate ROPC flow by @Ugonnaak1 in #584
  • Added a cache lookup for AcquireTokenByCredential by @4gust in #590
  • Fix panic in AcquireTokenSilent for public clients due to nil Credential by @4gust in #581
  • Adding support for FMI (Federated Managed Identity) by @4gust in #586
  • Adjust issuer validation to handle cases where instance discovery is not performed by @Avery-Dunn in #591

New Contributors

Full Changelog: v1.5.0...v1.6.0

v1.5.0

03 Sep 23:50
a3dbb6d

Choose a tag to compare

What's Changed

  • Bump github.com/golang-jwt/jwt/v5 from 5.0.0 to 5.2.2 by @dependabot[bot] in #563
  • Added a FIC test by @4gust in #557
  • Fix CodeQL warning 'Cross-site scripting vulnerability due to user-provided value by @fengga in #566
  • fix: support both login.partner.microsoftonline.cn and login.chinaclo… by @Achiket123 in #575
  • Add validation for issuer returned by OIDC endpoint by @Avery-Dunn in #576
  • #572 - Update spelling of client by @equalsgibson in #573

New Contributors

Full Changelog: v1.4.2...v1.5.0

v1.4.2

26 Mar 14:41
8a9d640

Choose a tag to compare

What's Changed

Full Changelog: v1.4.1...v1.4.2

v1.4.1

27 Feb 18:23
2fbdd87

Choose a tag to compare

What's Changed

  • Fixing // #nosec G101 issue on MSI by @4gust in #554
  • Unmarshal device code verification URLs by @chlowell in #556

Full Changelog: v1.4.0...v1.4.1

v1.4.0

14 Feb 15:32
e6d9244

Choose a tag to compare

Release Summary: Add Managed Identity Support

Overview

This Release introduces Managed Identity support to the Microsoft Authentication Library for Go through a new client. The new client supports multiple sources for managed identities, including:

  • IMDS
  • Azure Arc
  • Service Fabric
  • App Service
  • Azure Machine Learning
  • Cloud Shell

The client can handle both System Assigned Managed Identities and User Assigned Managed Identities.
For user-assigned identities, you can specify:

  • Client ID
  • Resource ID
  • Object ID

Key Changes

  • New Managed Identity Client: Added a new client to handle managed identity authentication.
  • Multiple Sources Support: The client supports various managed identity sources, enhancing flexibility and usability.
  • Tests: Comprehensive tests have been added to ensure the reliability and correctness of the new functionality.
  • Documentation: Updated documentation to include details on the new managed identity client and usage instructions.

Code Sample

Here's a basic example of how to use the new managed identity client to acquire a token:

package main

import (
    "context"
    "fmt"
    "github.com/AzureAD/microsoft-authentication-library-for-go/msal"
)

func main() {
	miSystemAssigned, err := mi.New(mi.SystemAssigned())
	if err != nil {
		log.Fatal(err)
	}
	result, err := miSystemAssigned.AcquireToken(context.TODO(), "https://management.azure.com")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println("token expire at : ", result.ExpiresOn)
}

v1.3.3

28 Jan 18:55
c4a7948

Choose a tag to compare

What's Changed

  • fix: username password flow by @mohanjith in #536
  • Fix Bug: Prevent Empty Region in WithAzureRegion from Overriding MSAL_FORCE_REGION by @4gust in #545

New Contributors

Full Changelog: v1.3.2...v1.3.3

v1.3.2

18 Nov 11:26

Choose a tag to compare

Re-release v1.3.2, which was accidentally tagged as v.1.3.2

What's Changed

Full Changelog: v1.3.1...v1.3.2

v1.3.1

06 Nov 16:41

Choose a tag to compare

What's Changed

Full Changelog: v1.2.3...v1.3.1

v1.2.3

31 Oct 13:24

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.2.2...v1.2.3

MSAL Go 1.2.2

19 Feb 10:27

Choose a tag to compare

Adds support for using the AuthScheme extensibility point for ROPC Support authnscheme in AcquireByUsernamePassword