Added the ability to easily add custom auth endpoints thrugh dependency injection.
Added two example oauth endpoints for google and and github configurable through env variables.
Added auth provider to the user info to show on login
Simple login is by default deactivated and needs to be enabled by setting the OCT_ACTIVATE_SIMPLE_LOGIN env variable too true
Other oauth enpoints are also deactivated until the env variables for clientId and Client Secret are set
Its sadly hard to create one single oauth endpoint, since we need user information like name, and not all clients are doing that the same way. So therefore adding a custom provider requires a little bit of code.
Could maybe be done for OIDC since there getting userinfo is standardized. But Github for example is only supporting OAuth2.0 which only includes the access token
Simple login is by default deactivated and needs to be enabled by setting the
OCT_ACTIVATE_SIMPLE_LOGIN
env variable tootrue
Other oauth enpoints are also deactivated until the env variables for clientId and Client Secret are setIts sadly hard to create one single oauth endpoint, since we need user information like name, and not all clients are doing that the same way. So therefore adding a custom provider requires a little bit of code. Could maybe be done for OIDC since there getting userinfo is standardized. But Github for example is only supporting OAuth2.0 which only includes the access token