from attr import attrib, attrs from ui_automation_framework.utils import CoreConfig @attrs(hash=True) class AuthData: username = attrib(default=CoreConfig.USER_EMAIL) password = attrib(default=CoreConfig.USER_PASSWORD) client_id = attrib(default=CoreConfig.AUTH0_CLIENT_ID) client_secret = attrib(default=CoreConfig.AUTH0_CLIENT_SECRET) audience = attrib(default=CoreConfig.AUTH0_AUDIENCE) grant_type = attrib(default=CoreConfig.AUTH0_GRANT_TYPE) realm = attrib(default=CoreConfig.AUTH0_REALM) scope = attrib(default=None) @attrs class AuthResponse: access_token = attrib() expires_in = attrib() token_type = attrib() id_token = attrib(default=None) scope = attrib(default=None) @attrs class AuthDataDelphi: client_id = attrib(default=CoreConfig.AUTH0_CLIENT_ID_DELPHI_PROD) client_secret = attrib(default=CoreConfig.AUTH0_CLIENT_SECRET_DELPHI_PROD) grant_type = attrib(default=CoreConfig.AUTH0_GRANT_TYPE_DELPHI) @attrs class AuthResponseDelphi: access_token = attrib() expires_in = attrib() expires_at = attrib() token_type = attrib()