Im trying to create an identity provider, where a user logs in to the application (and is then redirected), and manages their account credentials, and which provides bearer