Skip to content

Commit e59524a

Browse files
authored
Deprecate ROPC flow (#584)
* deprecate ROPC flow * updates * address comments * reenable tests and remoce cca flow deprecation * fix * edit * add period
1 parent a3dbb6d commit e59524a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/public/public.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,9 @@ type AcquireByUsernamePasswordOption interface {
368368
acquireByUsernamePasswordOption()
369369
}
370370

371-
// AcquireTokenByUsernamePassword acquires a security token from the authority, via Username/Password Authentication.
372-
// NOTE: this flow is NOT recommended.
371+
// Deprecated: This API will be removed in a future release. Use a more secure flow instead. Follow this migration guide: https://aka.ms/msal-ropc-migration
373372
//
373+
// AcquireTokenByUsernamePassword acquires a security token from the authority, via Username/Password Authentication.
374374
// Options: [WithClaims], [WithTenantID]
375375
func (pca Client) AcquireTokenByUsernamePassword(ctx context.Context, scopes []string, username, password string, opts ...AcquireByUsernamePasswordOption) (AuthResult, error) {
376376
o := acquireTokenByUsernamePasswordOptions{}

0 commit comments

Comments
 (0)