@@ -164,6 +164,8 @@ def cmd_oauth_refresh(ctx, scope):
164164 It is possible to request a refresh token with scopes that are different
165165 from what is currently possessed, but you will never be granted
166166 more scopes than what the user has authorized.
167+
168+ This command only applies to auth profiles that use OAuth access tokens.
167169 """
168170 _check_auth_client_type_for_click_ctx (ctx )
169171 saved_token = FileBackedOidcCredential (None , ctx .obj ["AUTH" ].token_file_path ())
@@ -376,7 +378,8 @@ def cmd_oauth_revoke_refresh_token(ctx):
376378@recast_exceptions_to_click (AuthException , FileNotFoundError )
377379def cmd_oauth_userinfo (ctx ):
378380 """
379- Look up user information from the auth server using the access token.
381+ Look up user information for the current user. Look up is performed by
382+ querying the authorization server using the current access token.
380383 """
381384 _check_auth_client_type_for_click_ctx (ctx )
382385 saved_token = FileBackedOidcCredential (None , ctx .obj ["AUTH" ].token_file_path ())
@@ -395,6 +398,7 @@ def cmd_oauth_userinfo(ctx):
395398def cmd_oauth_print_access_token (ctx , refresh ):
396399 """
397400 Show the current OAuth access token. Stale tokens will be automatically refreshed.
401+ This command only applies to auth profiles that use OAuth access tokens.
398402 """
399403 _check_auth_client_type_for_click_ctx (ctx )
400404 saved_token = FileBackedOidcCredential (None , ctx .obj ["AUTH" ].token_file_path ())
@@ -428,8 +432,8 @@ def cmd_oauth_print_access_token(ctx, refresh):
428432@recast_exceptions_to_click (AuthException , FileNotFoundError )
429433def cmd_oauth_decode_jwt_access_token (ctx , human_readable ):
430434 """
431- Decode a JWT access token locally and display its contents. NO
432- VALIDATION IS PERFORMED. This function is intended for local
435+ Decode a JWT access token locally.
436+ NO VALIDATION IS PERFORMED. This function is intended for local
433437 debugging purposes. Note: Access tokens need not be JWTs.
434438 This function will not work for authorization servers that issue
435439 access tokens in other formats.
@@ -445,8 +449,8 @@ def cmd_oauth_decode_jwt_access_token(ctx, human_readable):
445449@recast_exceptions_to_click (AuthException , FileNotFoundError )
446450def cmd_oauth_decode_jwt_id_token (ctx , human_readable ):
447451 """
448- Decode a JWT ID token locally and display its contents. NO
449- VALIDATION IS PERFORMED. This function is intended for local
452+ Decode a JWT ID token locally.
453+ NO VALIDATION IS PERFORMED. This function is intended for local
450454 debugging purposes.
451455 """
452456 _check_auth_client_type_for_click_ctx (ctx )
@@ -460,8 +464,8 @@ def cmd_oauth_decode_jwt_id_token(ctx, human_readable):
460464@recast_exceptions_to_click (AuthException , FileNotFoundError )
461465def cmd_oauth_decode_jwt_refresh_token (ctx , human_readable ):
462466 """
463- Decode a JWT refresh token locally and display its contents. NO
464- VALIDATION IS PERFORMED. This function is intended for local
467+ Decode a JWT refresh token locally.
468+ NO VALIDATION IS PERFORMED. This function is intended for local
465469 debugging purposes. Note: Refresh tokens need not be JWTs.
466470 This function will not work for authorization servers that issue
467471 refresh tokens in other formats.
0 commit comments