Skip to content

Commit e3d08ad

Browse files
committed
Updated documentation
1 parent b15c36b commit e3d08ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/managedidentity/managedidentity.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func WithClaims(claims string) AcquireTokenOption {
202202
}
203203

204204
// WithClientCapabilities sets the client capabilities to be used in the request.
205-
// This is used to enable specific features or behaviors in the token request.
205+
// For details see https://learn.microsoft.com/en-us/entra/identity/conditional-access/concept-continuous-access-evaluation
206206
// The capabilities are passed as a slice of strings, and empty strings are filtered out.
207207
func WithClientCapabilities(capabilities []string) ClientOption {
208208
return func(o *Client) {
@@ -353,7 +353,7 @@ func (c Client) AcquireToken(ctx context.Context, resource string, options ...Ac
353353
ar, err := base.AuthResultFromStorage(stResp)
354354
if err == nil {
355355
if o.claims != "" {
356-
// When the claims are set, we need to passon bad/old token
356+
// When the claims are set, we need to pass on revoked token to MSIv1 (AppService, ServiceFabric)
357357
return c.getToken(ctx, resource, ar.AccessToken)
358358
} else {
359359
if !stResp.AccessToken.RefreshOn.T.IsZero() && !stResp.AccessToken.RefreshOn.T.After(now()) && c.canRefresh.CompareAndSwap(false, true) {

0 commit comments

Comments
 (0)