Browse Source
			
			
			chore: add correct return type to get_credentials and a_get_credentials (#640)
			
			
				pull/641/head
			
			
		 
		
			
				
					
						 Liam Beckingham
					
					8 months ago
						Liam Beckingham
					
					8 months ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
				  
				  No known key found for this signature in database
				  
				  	
						GPG Key ID: B5690EEEBB952194
				  	
				  
				
			
		
		
		
	
		
			
				 1 changed files with 
4 additions and 
4 deletions
			 
			
		 
		
			
				- 
					
					
					 
					src/keycloak/keycloak_admin.py
				
					
					
						
							
								
									
										
											
	
		
			
				
					|  |  | @ -870,7 +870,7 @@ class KeycloakAdmin: | 
			
		
	
		
			
				
					|  |  |  |             expected_codes=[HTTP_NO_CONTENT], | 
			
		
	
		
			
				
					|  |  |  |         ) | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     def get_credentials(self, user_id: str) -> dict: | 
			
		
	
		
			
				
					|  |  |  |     def get_credentials(self, user_id: str) -> list: | 
			
		
	
		
			
				
					|  |  |  |         """ | 
			
		
	
		
			
				
					|  |  |  |         Get user credentials. | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | @ -882,7 +882,7 @@ class KeycloakAdmin: | 
			
		
	
		
			
				
					|  |  |  |         :param: user_id: user id | 
			
		
	
		
			
				
					|  |  |  |         :type user_id: str | 
			
		
	
		
			
				
					|  |  |  |         :returns: Keycloak server response (CredentialRepresentation) | 
			
		
	
		
			
				
					|  |  |  |         :rtype: dict | 
			
		
	
		
			
				
					|  |  |  |         :rtype: list | 
			
		
	
		
			
				
					|  |  |  |         """ | 
			
		
	
		
			
				
					|  |  |  |         params_path = {"realm-name": self.connection.realm_name, "id": user_id} | 
			
		
	
		
			
				
					|  |  |  |         data_raw = self.connection.raw_get( | 
			
		
	
	
		
			
				
					|  |  | @ -6104,7 +6104,7 @@ class KeycloakAdmin: | 
			
		
	
		
			
				
					|  |  |  |             expected_codes=[HTTP_NO_CONTENT], | 
			
		
	
		
			
				
					|  |  |  |         ) | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     async def a_get_credentials(self, user_id: str) -> dict: | 
			
		
	
		
			
				
					|  |  |  |     async def a_get_credentials(self, user_id: str) -> list: | 
			
		
	
		
			
				
					|  |  |  |         """ | 
			
		
	
		
			
				
					|  |  |  |         Get user credentials asynchronously. | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | @ -6116,7 +6116,7 @@ class KeycloakAdmin: | 
			
		
	
		
			
				
					|  |  |  |         :param: user_id: user id | 
			
		
	
		
			
				
					|  |  |  |         :type user_id: str | 
			
		
	
		
			
				
					|  |  |  |         :returns: Keycloak server response (CredentialRepresentation) | 
			
		
	
		
			
				
					|  |  |  |         :rtype: dict | 
			
		
	
		
			
				
					|  |  |  |         :rtype: list | 
			
		
	
		
			
				
					|  |  |  |         """ | 
			
		
	
		
			
				
					|  |  |  |         params_path = {"realm-name": self.connection.realm_name, "id": user_id} | 
			
		
	
		
			
				
					|  |  |  |         data_raw = await self.connection.a_raw_get( | 
			
		
	
	
		
			
				
					|  |  | 
 |