Skip to content

OIDC public client support needed — incompatible with IdPs that only support confidential clients #198

Closed

Description

@therry47

Describe your idea for an enhancement:

It would be beneficial for VoidAuth to support public OIDC clients (i.e., clients that do not use a client_secret).
Many modern applications — especially browser-based apps, mobile apps, and desktop clients — are designed as public clients and cannot securely store a secret. Supporting this type of client would significantly improve compatibility with a wide range of identity and authentication ecosystems.

Describe alternatives you've considered:

  • Public clients are a common part of the OIDC specification, and many applications rely on them by design; avoiding them is generally not feasible.
  • Workarounds such as proxying the authentication flow or wrapping the client in a confidential backend introduce unnecessary complexity and can create security risks.
  • Modifying the application to act as a confidential client is not possible when the client runs entirely on the user side (browser, mobile, etc.).

Additional context:

In my specific case, I’m trying to integrate VoidAuth with OpenCloud, whose Web/desktop/mobile clients are public-only according to their documentation:
https://docs.opencloud.eu/docs/next/admin/configuration/authentication-and-user-management/external-idp

Because VoidAuth only supports confidential clients and OpenCloud only supports public clients, integration is currently impossible.
Adding support for public clients would resolve this and improve interoperability with many similar applications.

Activity

  1. added
    enhancement
    on Dec 9, 2025
  2. notquitenothing commented on Dec 10, 2025

    @notquitenothing
    Collaborator

    Hello! Thank you for opening an issue!

    Can you try adding the OIDC Client anyways and selecting none for the Token Endpoint Auth Method option? That might work, and if it does I will improve the UI to make that more clear. For the Client Secret just autogenerate one.

  3. therry47 commented on Dec 11, 2025

    @therry47
    Author

    Hello — thanks for your reply!

    I was unsure this was the right option for public clients because it forced me to provide a client secret. I think in that case the field should not be required and should be disabled (or hidden) for public clients to avoid confusion.

    I'll try adding the OIDC Client with Token Endpoint Auth Method set to none and autogenerating a client secret. I'll try this over the weekend if I have the time (and the inclination), and I'll let you know if it works. Thanks again for your response and great project 😊

  4. PrometheusB022 commented on Dec 17, 2025

    @PrometheusB022

    Adding onto this discussion with Opencloud there is another issue for the mobile apps:

    For iOS the redirect is oc://ios.opencloud.eu and Android is oc://android.opencloud.eu

    Both give the below error when attempting to create an OIDC client in VoidAuth

    redirect_uris for native clients using Custom URI scheme should use reverse domain name based scheme

    Opencloud's OIDC implementation is a little obtuse in my opinion, though I suppose it's not the worst I've dealt with...

  5. notquitenothing commented on Dec 17, 2025

    @notquitenothing
    Collaborator

    That is a bummer, that error/requirement (redirect_uris for native clients using Custom URI scheme should use reverse domain name based scheme) is built into the package VoidAuth uses for OIDC flow, node-oidc-provider. There probably isn't much I can do to help with that, my guess is that those custom URI schemes are not fully OIDC compliant but I will do some research

  6. notquitenothing commented on Dec 17, 2025

    @notquitenothing
    Collaborator

    After some quick searching it looks like that requirement is based on IETF RFC documents like this one that define the best practices of native app oauth. It is even specified in that same document (here) that providers should reject native app urls that do not use the reverse domain name based scheme. In order to be compliant, the OpenCloud native app OIDC callbacks should instead look like eu.opencloud.ios:///oc, for example Immich uses app.immich:///oauth-callback.

    What is actually causing the error is that the scheme of oc://ios.opencloud.eu is oc, and that does not include a dot/period character in it.

  7. PrometheusB022 commented on Dec 17, 2025

    @PrometheusB022

    That's what I found as well, hence my previous statement about it being a little obtuse. It's technically out of spec but I guess the other auth providers I've tried just ignore that and let you use it anyway. Just wanted to share for anyone else's awareness.

  8. notquitenothing commented on Dec 18, 2025

    @notquitenothing
    Collaborator

    I am making an update to silence the redirect_uris for native clients using Custom URI scheme should use reverse domain name based scheme error, since it seems to be a best-practices issue just to incentivize app creators in a certain way. Security impacts seem to be mostly centered around proving app ownership in the case of counterfeit apps in app stores

  9. notquitenothing commented on Dec 18, 2025

    @notquitenothing
    Collaborator

    Additional support for public OIDC Clients has been released in v1.6.0, but it could probably still use some work. Let me know if the changes work for OpenCloud 😊

  10. PrometheusB022 commented on Dec 19, 2025

    @PrometheusB022

    I've got OpenCloud web working but I can't quite get the desktop/mobile apps working. The two errors I'm still seeing for desktop/mobile:

    1. oidc-provider:authentication:error { error: 'invalid_request', error_description: 'unsupported prompt value requested' ... } It looks like the prompts being sent are consent & select_account
    2. oidc-provider:error path=/token method=POST error={ error: 'invalid_client', error_description: 'client authentication failed' } detail=the provided authentication mechanism does not match the registered client authentication method I have Auth Method set to None (Public)

    The desktop clients also use http://127.0.0.1 with a randomized port number for the redirect URL and it doesn't look like wildcards are supported for redirect URLs. Normally I'd use http://127.0.0.1:* here.

    The update to silence the redirect_uris error probably should also be applied to PostLogout URL field since it gives the same message.

  11. notquitenothing commented on Dec 22, 2025

    @notquitenothing
    Collaborator

    I am planning on adding wildcard support in redirect urls in the next release. Will need to look into how to properly handle un-implemented prompts like select_account.

    If you need to set the Auth Method to None (Public) but then get that invalid_client error, that seems to me like you might just need two OIDC Clients (one for public, and one that seems to be using a Client Secret).

  12. PrometheusB022 commented on Dec 23, 2025

    @PrometheusB022

    I'm not sure what's up with invalid_client since all of the below is supposed to be true. It also used to work on my previous IDP but since testing the various clients with VoidAuth and then moving things back, only Web is working there too.

    All clients provided by OpenCloud (Web, Desktop, Android, and iOS), are implemented as public clients using the authorization code flow with PKCE. Therefore the IDP needs to support this flow.

    All clients, except the Web client, use predefined client IDs. Therefore the IDP needs to be able to create clients with predefined IDs.

    All clients, except the Web client, use a hardcoded list of scopes they request from the IDP. As certain features of OpenCloud (especially the automatic role assignment) rely on specific claims being present in the access token or the UserInfo response, the IDP needs to be able to provide additional claims in the Tokens even if the client does not explicitly request them via scopes.

  13. DodoLeDev commented on Feb 16, 2026

    @DodoLeDev

    Hii!
    I have been trying to setup OpenCloud with VoidAuth too, and faced another problem: I faced this error, which requires the settings PROXY_OIDC_ACCESS_TOKEN_VERIFY_METHOD=none on the OpenCloud side.

    This means that VoidAuth does not send JWT-encrypted responses to OpenCloud in Public Client mode? Is it a feature of the OIDC standard?


    BTW a bit of doc about how to setup VoidAuth with OpenCloud would be awesome 😄

  14. Jonathazn commented on Mar 15, 2026

    @Jonathazn

    Hello, public clients seems to work, but I have to use the id token because the access token seems to be an opaque token and not a jwt token? As far as I know this should not be the case, but correct me if I'm wrong?

  15. notquitenothing commented on Mar 15, 2026

    @notquitenothing
    Collaborator

    Interesting, looks like OIDC does support opaque and JWT access tokens (good docs without having to read spec -> https://auth0.com/docs/secure/tokens/access-tokens), but I am still working out if this is something that node-oidc-provider supports. My guess is that it probably is supported, and is probably behind a feature flag (maybe this one -> https://github.com/panva/node-oidc-provider/tree/main/docs#featuresjwtresponsemodes)

  16. Jonathazn commented on Mar 16, 2026

    @Jonathazn

    You are indeed correct, in the case of opaque token, the api has to do an additional introspection. So for me this is fine, but perhaps it's possible to have a choice for the access_token to be jwt or opaque? Which is a feature ofcourse, no pressure there from me. Thanks for the app already!

    Edit: the .well-known/openid-configuration response does not specify an introspection endpoint at this moment, so I think the returned opaque token can't be used?

  17. notquitenothing commented on Aug 3, 2026

    @notquitenothing
    Collaborator

    I believe there should be an introspection endpoint available as of release v1.14.0.

  18. Jonathazn commented on Aug 4, 2026

    @Jonathazn

    @notquitenothing Indeed, I haven't had time to tell you yet. It works, but the only weird thing is that the token is valid indefinitely, because I never have to login again using the public client.

  19. v1rusnl commented on Aug 4, 2026

    @v1rusnl
    Contributor

    I've got OpenCloud web working but I can't quite get the desktop/mobile apps working. The two errors I'm still seeing for desktop/mobile:

    1. oidc-provider:authentication:error { error: 'invalid_request', error_description: 'unsupported prompt value requested' ... } It looks like the prompts being sent are consent & select_account
    2. oidc-provider:error path=/token method=POST error={ error: 'invalid_client', error_description: 'client authentication failed' } detail=the provided authentication mechanism does not match the registered client authentication method I have Auth Method set to None (Public)

    The desktop clients also use http://127.0.0.1 with a randomized port number for the redirect URL and it doesn't look like wildcards are supported for redirect URLs. Normally I'd use http://127.0.0.1:* here.

    The update to silence the redirect_uris error probably should also be applied to PostLogout URL field since it gives the same message.

    Did you ever got it working with VoidAuth?

  20. notquitenothing commented on Sep 20, 2026

    @notquitenothing
    Collaborator

    Public credential clients are now supported and many of the remaining issues it seems have been worked out. If anyone has any problems with clients that should be supported, please open an issue.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions