Skip to content

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

v1.4.0

14 Feb 15:32
e6d9244
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare

What's Changed

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

v1.2.3

31 Oct 13:24
Compare
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
Compare
Choose a tag to compare

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

MSAL Go 1.2.1

04 Jan 12:41
Compare
Choose a tag to compare

Bug fixes

ADFS token caching fix - #459
Token cache schema upgrade - #454

MSAL Go 1.2.0

29 Aug 14:00
Compare
Choose a tag to compare

Add an extensibility point for Azure Arc to request and cache Access Token of type POP #443

MSAL Go 1.1.1

15 Aug 22:49
Compare
Choose a tag to compare

Bug Fixes

Fix AcquireTokenSilent for ADFS users #446

MSAL Go 1.1.0

02 Aug 10:59
d0cbfc3
Compare
Choose a tag to compare

New Features

Allow public client app developers to take control of opening the browser #422

Bug fixes

Normalize token cache keys #425
Require an account in public client silent auth #426
Bump dependency github.com/golang-jwt/jwt/ to v5 #414