Making a widget on Home Assistant

Hi, I am trying to make widget that can be integrated in Home Assistant dashboards, and I was wondering if there are any resources for this. Ideally, this widget will ask users to authenticate via an external website, and users can select and create data types they want to view data for through home assistant.