Repository navigation
Description
For gods sake I am not able to make VoidAuth work with Opencloud Android App. Web is working perfect. And redirect back and forth in the Android App to VoidAuth is working to.
Problem
The OpenCloud Android app correctly requests the OIDC scope offline_access (seems to be hardcoded in the App regardless of Server Config), but VoidAuth does not return a refresh token. As a result, token renewal fails later with an error such as: Invalid Refresh Token and I am not able to log into Opencloud App.
Webfinger Response:
{
"subject": "https://opencloud.mydomain.com",
"properties": {
"http://opencloud.eu/ns/oidc/client_id": "OpenCloudAndroid",
"http://opencloud.eu/ns/oidc/scopes": [
"openid",
"profile",
"email",
"offline_access"
]
},
"links": [
{
"rel": "http://openid.net/specs/connect/1.0/issuer",
"href": "https://auth.mydomain.com/oidc"
}
]
}
VoidAuth advertises offline_access as a supported scope:
{
"scopes_supported": [
"openid",
"offline_access",
"email",
"profile",
"groups"
],
"grant_types_supported": [
"authorization_code",
"implicit",
"refresh_token"
]
}
The OpenCloud Android app sends the expected request:
GET https://auth.mydomain.com/oidc/auth
client_id=OpenCloudAndroid
response_type=code
redirect_uri=oc://android.opencloud.eu
scope=openid profile email offline_access
code_challenge_method=S256
After successful authentication, the app exchanges the authorization code:
POST https://auth.mydomain.com/oidc/token
grant_type=authorization_code
client_id=OpenCloudAndroid
code=<authorization_code>
code_verifier=<pkce_verifier>
redirect_uri=oc://android.opencloud.eu
scope=openid offline_access email profile
VoidAuth returns:
{
"access_token": "<token>",
"expires_in": 3600,
"id_token": "<token>",
"scope": "openid profile email",
"token_type": "Bearer"
}
The response does not contain:
{
"refresh_token": "<refresh_token>"
}
Additionally, VoidAuth removes the requested scope.
Expected behaviour: A successful offline_access flow should return something like:
{
"access_token": "<token>",
"refresh_token": "<refresh_token>",
"expires_in": 3600,
"scope": "openid profile email offline_access",
"token_type": "Bearer"
}
The same flow was tested using an OIDC debugger:
Authorization Code Flow ✅
PKCE with SHA-256 ✅
Client ID: OpenCloudAndroid ✅
Scope: openid profile email offline_access ✅
Result:
access_token=<token>
expires_in=3600
id_token=<token>
scope=openid profile email
token_type=Bearer
Again, no refresh_token was returned.
Anybody got the Android or iOS Client working with Opencloud? If yes, what's the setting in VoidAuth OIDC config?
Activity
v1rusnl commentedon Aug 2, 2026
Windows Client seems to have the same issue.
notquitenothing commentedon Aug 2, 2026
I believe that in order to get a refresh_token the
/oidc/authrequest needs to include theprompt=consentparameter. Otherwise the scope request for offline_access is stripped. The relevant code in thenode-oidc-providerlibrary is here. You do get a refresh_token automatically if your OIDC Client App is not using native redirect-uris and is using theNone (Public)auth method.v1rusnl commentedon Aug 4, 2026
I'm not very talented in this OIDC background stuff. So is this more of an Opencloud issue than VoidAuth? I've see #198 but I'm still none the wiser. 😄
v1rusnl commentedon Aug 6, 2026
It seems to work now with the following config (let's see for how long 😃 ):
Added to Opencloud .env:
Added to Opencloud proxy.yaml
Groups in VoidAuth (need to be assigned to the user also -> if user-light is needed, then create it also):

Android, iOS and WebClient working with this config incl. Auto provisioning of the user to group in Opencloud.
Only culprit: Desktop Client does not work due to this statement by Opencloud:
Guess we'll just have to wait for that. In meantime, WebDAV can be used with Token based login.
@notquitenothing Before I would make a PR for OIDC-Guides, I would want the vars be reviewed by some other users that run this setup. Quite possible that some values are wrong (with no workflow impact, but nevertheless) or this setup is overcomplicated like the crazy amount of work setting up Opencloud 😤Could you move this subject to discussions?
Alternative way to the above would be to use the Opencloud default driver instead of oidc driver.
This setup would also work with Desktop client, but with this setup, every new user would have the role user and IDM/user management would have to be made in Opencloud afterwards. So I went the 1st path described here.