@@ -142,6 +142,8 @@ def cmd_oauth_refresh(ctx, scope):
142142 It is possible to request a refresh token with scopes that are different
143143 from what is currently possessed, but you will never be granted
144144 more scopes than what the user has authorized.
145+
146+ This command only applies to auth profiles that use OAuth access tokens.
145147 """
146148 saved_token = FileBackedOidcCredential (None , ctx .obj ["AUTH" ].token_file_path ())
147149 auth_client = ctx .obj ["AUTH" ].auth_client ()
@@ -344,7 +346,8 @@ def cmd_oauth_revoke_refresh_token(ctx):
344346@recast_exceptions_to_click (AuthException , FileNotFoundError )
345347def cmd_oauth_userinfo (ctx ):
346348 """
347- Look up user information from the auth server using the access token.
349+ Look up user information for the current user. Look up is performed by
350+ querying the authorization server using the current access token.
348351 """
349352 saved_token = FileBackedOidcCredential (None , ctx .obj ["AUTH" ].token_file_path ())
350353 auth_client = ctx .obj ["AUTH" ].auth_client ()
@@ -362,6 +365,7 @@ def cmd_oauth_userinfo(ctx):
362365def cmd_oauth_print_access_token (ctx , refresh ):
363366 """
364367 Show the current OAuth access token. Stale tokens will be automatically refreshed.
368+ This command only applies to auth profiles that use OAuth access tokens.
365369 """
366370 saved_token = FileBackedOidcCredential (None , ctx .obj ["AUTH" ].token_file_path ())
367371 saved_token .load ()
@@ -394,8 +398,8 @@ def cmd_oauth_print_access_token(ctx, refresh):
394398@recast_exceptions_to_click (AuthException , FileNotFoundError )
395399def cmd_oauth_decode_jwt_access_token (ctx , human_readable ):
396400 """
397- Decode a JWT access token locally and display its contents. NO
398- VALIDATION IS PERFORMED. This function is intended for local
401+ Decode a JWT access token locally.
402+ NO VALIDATION IS PERFORMED. This function is intended for local
399403 debugging purposes. Note: Access tokens need not be JWTs.
400404 This function will not work for authorization servers that issue
401405 access tokens in other formats.
@@ -410,8 +414,8 @@ def cmd_oauth_decode_jwt_access_token(ctx, human_readable):
410414@recast_exceptions_to_click (AuthException , FileNotFoundError )
411415def cmd_oauth_decode_jwt_id_token (ctx , human_readable ):
412416 """
413- Decode a JWT ID token locally and display its contents. NO
414- VALIDATION IS PERFORMED. This function is intended for local
417+ Decode a JWT ID token locally.
418+ NO VALIDATION IS PERFORMED. This function is intended for local
415419 debugging purposes.
416420 """
417421 saved_token = FileBackedOidcCredential (None , ctx .obj ["AUTH" ].token_file_path ())
@@ -424,8 +428,8 @@ def cmd_oauth_decode_jwt_id_token(ctx, human_readable):
424428@recast_exceptions_to_click (AuthException , FileNotFoundError )
425429def cmd_oauth_decode_jwt_refresh_token (ctx , human_readable ):
426430 """
427- Decode a JWT refresh token locally and display its contents. NO
428- VALIDATION IS PERFORMED. This function is intended for local
431+ Decode a JWT refresh token locally.
432+ NO VALIDATION IS PERFORMED. This function is intended for local
429433 debugging purposes. Note: Refresh tokens need not be JWTs.
430434 This function will not work for authorization servers that issue
431435 refresh tokens in other formats.
0 commit comments