Skip to content

Commit

Permalink
Add TokenRequestOptions.EnableCAE (Azure#21362)
Browse files Browse the repository at this point in the history
  • Loading branch information
chlowell authored and jhendrixMSFT committed Oct 5, 2023
1 parent a844ae9 commit e98678a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdk/azcore/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

### Features Added

- `messaging/CloudEvent` allows you to serialize/deserialize CloudEvents, as described in the CloudEvents 1.0 specification: [link](https://github.com/cloudevents/spec)
* `messaging/CloudEvent` allows you to serialize/deserialize CloudEvents, as described in the CloudEvents 1.0 specification: [link](https://github.com/cloudevents/spec)
* Added `TokenRequestOptions.EnableCAE` to indicate whether to request a CAE token

## 1.7.2 (2023-09-06)

Expand Down
7 changes: 7 additions & 0 deletions sdk/azcore/internal/exported/exported.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ type TokenRequestOptions struct {
// service may return in a claims challenge following an authorization failure. If a service returned the
// claims value base64 encoded, it must be decoded before setting this field.
Claims string

// EnableCAE indicates whether to enable Continuous Access Evaluation (CAE) for the requested token. When true,
// azidentity credentials request CAE tokens for resource APIs supporting CAE. Clients are responsible for
// handling CAE challenges. If a client that doesn't handle CAE challenges receives a CAE token, it may end up
// in a loop retrying an API call with a token that has been revoked due to CAE.
EnableCAE bool

// Scopes contains the list of permission scopes required for the token.
Scopes []string

Expand Down

0 comments on commit e98678a

Please sign in to comment.