pastefy icon indicating copy to clipboard operation
pastefy copied to clipboard

Enhancement request - Support other Oauth/OIDC authentication services like Authelia/Keycloak/Authentik

Open beastarman74 opened this issue 3 years ago • 2 comments

As per title. It would be great if Pastefy would support other open source autentication solutions like those above.

Personally use Authelia as it looks to be the simplest of the 3 I've looked at above. Their Oauth support is currently in beta but is rapidly developing and it works on many services like Gitea, Portainer, Bookstack and Guacacmole.

Thanks for considering.

beastarman74 avatar Apr 24 '22 21:04 beastarman74

I'd be very interested in this too. This would allow for protection without having to rely on third parties.

mind-overflow avatar Jun 04 '22 13:06 mind-overflow

I have a suggestion, instead of choosing between INTERAAPPS, GOOGLE, GITHUB, DISCORD or TWITCH for AUTH_PROVIDER

You should offer environment variables with the following:

AUTH_PROVIDER: CUSTOM
OAUTH2_PROVIDER_AUTHORIZE_URL: 'https://example.com/application/o/authorize/'
OAUTH2_PROVIDER_TOKEN_URL: 'https://example.com/application/o/token/'
OAUTH2_PROVIDER_RESOURCE_URL: 'https://example.com/application/o/userinfo/'
OAUTH2_PROVIDER_REDIRECT_URL: 'https://example.com'
OAUTH2_PROVIDER_LOGOUT_URL: 'https://example.com/application/o/end-session/'
OAUTH2_USER_IDENTIFIER: 'email'
OAUTH2_PROVIDER_SCOPES: 'email openid'

firestrife23 avatar Jun 10 '22 15:06 firestrife23