sinopia icon indicating copy to clipboard operation
sinopia copied to clipboard

makes middlewares pluggable. i.e for custom oauth flows or analytics etc.

Open fredr opened this issue 10 years ago • 5 comments

I'm building a github web oauth authorization plugin for sinopia. To achieve that in a good way I need to be able to register custom routes in sinopia, so that I don't have to have github or sinopia secrets on my client to be able to generate a .npmrc

fredr avatar Apr 14 '16 20:04 fredr

:+1: :100: ;-)

A github web oauth authorization plugin for sinopia ?

Awesome !

Even better, what about a provider-agnostic web oauth authorization plugin for sinopia ?

And then, on top of this, you could build a github adapter for this plugin, and any else would be able to build adapters for other providers (like gitlab for example), or private ones (for private Oauth2 servers).

Personally, if it would exist, I will use all of these in my organisation. I think I'm not the only one person that could benefit of a such capabilities.

rbecheras avatar Apr 15 '16 09:04 rbecheras

@fredr , could you please post a link to the github repo of your plugin project (if exists) ?

rbecheras avatar Apr 15 '16 09:04 rbecheras

Neat !! I'm afraid this repo is no longer supported.

Do you mind PR to our clone https://github.com/fl4re/sinopia ? I already have a google and github oauth2 login in our branch OAuth_login. But your solution is neat, I will use it.

dgaya avatar Apr 15 '16 09:04 dgaya

@rbecheras sure, this would enable anyone to write such plugins. Im building this one: https://github.com/soundtrackyourbrand/sinopia-github-oauth Its a bit work in progress, but first version should be done today, or soon enough.

@dgaya I know, but I thought I'd add a PR anyway. Cool, your fork seems to be more active! I'll open a PR there!

fredr avatar Apr 15 '16 10:04 fredr

+1

JDvorak avatar Apr 27 '16 03:04 JDvorak