Hi @Tadas Kiškėnas
You have 3 method to implement SSO for o365 service.
- Hash synchronisation for more information please read this article: Use password hash sync for hybrid identity in a single Active Directory forest
- Pass Through authentification , for mor information please refer to the following link : Use pass-through authentication for hybrid identity in a single Active Directory forest
- Configure federation service for more details please refer to the following link : Use federation for hybrid identity in a single Active Directory forest
Please don't forget to accept helpful answer