Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AzResourceGraph/AzResourceGraph.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ PowerShellVersion = '5.0'

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @(
@{ModuleName = 'AzAuth'; ModuleVersion = '2.4.0'; MaximumVersion = '2.999.999'}
@{ModuleName = 'AzAuth'; ModuleVersion = '2.5.0'; MaximumVersion = '2.999.999'}
)

# Assemblies that must be loaded prior to importing this module
Expand Down
7 changes: 1 addition & 6 deletions AzResourceGraph/Private/Test-AzureToken.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ function Test-AzureToken {
return (
$null -ne $Token -and
$Token.ExpiresOn.UtcDateTime -ge [System.DateTimeOffset]::Now.AddMinutes($MinValid).UtcDateTime -and
(
# Due to AzAuth not showing correct aud claim when using Interactive and TokenCache we check either aud or scope
# https://github.com/PalmEmanuel/AzAuth/issues/137
$Resource -eq $Token.Claims['aud'] -or
$Token.Scopes -contains "$Resource/.default"
)
$Resource -eq $Token.Claims['aud']
)
}
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed
- Updated dependency on AzAuth to version 2.5.0

## [0.2.0] - 2025-05-15

### Added
- Disconnect-AzResourceGraph function by @SimonWahlin in #5

### Fixed
- Fixed Auth problems

### Changed
- Enhance token management

## [0.1.1] - 2025-05-14

### Changed
Expand Down
2 changes: 1 addition & 1 deletion RequiredModules.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Sampler = 'latest'
'Sampler.GitHubTasks' = 'latest'
'AzAuth' = @{
Version = '2.4.0'
Version = '2.5.0'
MaximumVersion = '2.99.99'
}

Expand Down
Loading