Skip to content

Add AMR field to IdToken - #64

Merged
AaronAtDuo merged 1 commit into
duosecurity:mainfrom
carynholt:amr-field
Jul 27, 2026
Merged

Add AMR field to IdToken #64
AaronAtDuo merged 1 commit into
duosecurity:mainfrom
carynholt:amr-field

Conversation

@carynholt

Copy link
Copy Markdown
Contributor

The /token endpoint now returns an optional 'amr' claim (list of strings). Expose it on IdToken, extract it in DecodeToken, and add tests covering absent, empty, and populated cases.

Description

Added optional AMR field and updated related tests

Motivation and Context

Some vendors are requiring the AMR field

How Has This Been Tested?

Changes were tested using the Duo ADFS integration

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

The /token endpoint now returns an optional 'amr' claim (list of
strings). Expose it on IdToken, extract it in DecodeToken, and add
tests covering absent, empty, and populated cases.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@AaronAtDuo
AaronAtDuo merged commit 9aed3cc into duosecurity:main Jul 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants