Package org.openmetadata.service.util
Class UserUtil
java.lang.Object
org.openmetadata.service.util.UserUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic UseraddOrUpdateBotUser(User user) This method add auth mechanism in the following way: If original user has already an authMechanism, add it to the user Otherwise: If airflow configuration is 'openmetadata' and server auth provider is not basic, add JWT auth mechanism from Airflow configuration Otherwise: If airflow configuration is 'basic', add JWT auth mechanism with a generated token which does not expire Otherwise, add SSO auth mechanism from Airflow configurationstatic UseraddOrUpdateUser(User user) static voidstatic List<EntityReference>getRoleForBot(String botName) static EntityReferencegetUserOrBot(String name) static voidupdateUserWithHashedPwd(User user, String pwd) static User
-
Method Details
-
addUsers
public static void addUsers(AuthProvider authProvider, Set<String> adminUsers, String domain, Boolean isAdmin) -
updateUserWithHashedPwd
-
addOrUpdateUser
-
user
-
addOrUpdateBotUser
This method add auth mechanism in the following way:- If original user has already an authMechanism, add it to the user
- Otherwise:
- If airflow configuration is 'openmetadata' and server auth provider is not basic, add JWT auth mechanism from Airflow configuration
- Otherwise:
- If airflow configuration is 'basic', add JWT auth mechanism with a generated token which does not expire
- Otherwise, add SSO auth mechanism from Airflow configuration
-
getRoleForBot
-
getUserOrBot
-