Skip to content

[FEATURE] App-provider matrix support #818

Description

@iiLaurens

Is your feature request related to a problem? Please describe.
I use tinyauth in combination with NPMplus. Unfortunately I can only supply a single tinyauth upstream, which means that all my websites will have to use the same auth provider. However for some sites I would like to use google, for other's pocketid, etc.

Describe the solution you'd like
It would be ideal if per app we can provide a comma separated list of auth providers we want to enable for that app. Perhaps something like tinyauth.apps.myapp.oauth.providers: pocketid, google.
The only thing that probably should be taken into consideration is a global setting like autoredirect, which might have to be made app-specific as well to avoid conflicting configurations.

Describe alternatives you've considered
To canonical way for a "tiny" auth package would probably have been to just run two instances of tinyauth. However this is (currently) not supported in NPMplus, so I could either ask the NPMplus maintainer to do this or ask tinyauth to support an app-provider matrix.

Additional context
Depending on the AI policy, I think such a setting could quite easily be implemented using AI. If you are open to the feature and are OK with an initial shot with AI, I can give this a go myself.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions