Can we use cumulocity as authentication layer to external application

Can we use cumulocity as authentication layer to external applications ? similar to google firebase.

I would like to add cumulocity as Authentication gateway, to allow users to sign in to external app with cumulocity tenant username and password. Will it be possible ?

any ideas ?