New config with Jottacloud and telia_se remote authentication doesn't work

What is the problem you are having with rclone?

I can not use remote authentication with jottacloud and telia_se as config_type?
I have a headless computer on which I want to run rclone connected to jottacloud with telia_se authentication.

It seems to be that rclone authorize always pick the standard config_type and I can't find a way to override it.

I had a plan to hardcode the option in a clone of the source but I wasn't able to figure out where.

Run the command 'rclone version' and share the full output of the command.

rclone v1.69.2

  • os/version: arch (64 bit)
  • os/kernel: 6.14.5-arch1-1 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.24.2
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

JottaCloud

The command you were trying to run (eg rclone copy /tmp remote:tmp)

This is in 2 parts, one for the headless and one for the desktop. Both are amd64 with arch linux.

On headless computer

rclone config

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> n

Enter name for new remote.
name> telia

Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.

28 / Jottacloud
   \ (jottacloud)

Storage> 28

Option client_id.
OAuth Client Id.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_id>

Option client_secret.
OAuth Client Secret.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_secret>

Edit advanced config?
y) Yes
n) No (default)
y/n> n

Option config_type.
Select authentication type.
Choose a number from below, or type in an existing value of type string.
Press Enter for the default (standard).


   / Telia Cloud authentication.
 3 | Use this if you are using Telia Cloud (Sweden).
   \ (telia_se)

config_type> 3


Use web browser to automatically authenticate rclone with remote?
 * Say Y if the machine running rclone has a web browser you can use
 * Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.

y) Yes (default)
n) No
y/n> n

Option config_token.
For this to work, you will need rclone available on a machine that has
a web browser available.
For more help and alternate methods see: https://rclone.org/remote_setup/
Execute the following on the machine with the web browser (same rclone
version recommended):
        rclone authorize "jottacloud" "xnxnxnxnxnxnxnxnxnxnxnxnxnxnx"
Then paste the result.
Enter a value.
config_token>

__ On Desktop Computer __

rclone  authorize "jottacloud" "eyJjbGllbnRfaWQiOiJkZXNrdG9wIn0"
Error: failed to get oauth token: EOF
Usage:
  rclone authorize <fs name> [base64_json_blob | client_id client_secret] [flags]

Flags:
      --auth-no-open-browser   Do not automatically open auth link in default browser
  -h, --help                   help for authorize
      --template string        The path to a custom Go template for generating HTML responses

Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.

2025/05/15 18:54:25 NOTICE: Fatal error: failed to get oauth token: EOF

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

This is left after ending the config session on the headless computer using ctrl+c

[telia]
type = jottacloud
configVersion = 1
client_id = XXX
tokenURL = https://cloud-auth.telia.se/auth/realms/telia_se/protocol/openid-connect/token
### Double check the config for sensitive info before posting publicly

A log from the command that you were trying to run with the -vv flag

__ on desktop with vvv __

rclone -vvv authorize "jottacloud" "xnxnxnxnxnxnxnxnxnxnxnxnxnxnx"
2025/05/15 18:52:01 DEBUG : rclone: Version "v1.69.2" starting with parameters ["rclone" "-vvv" "authorize" "jottacloud" "xnxnxnxnxnxnxnxnxnxnxnxnxnxnx"]
2025/05/15 18:52:01 DEBUG : **temp-fs**: config in: state="", result=""
2025/05/15 18:52:01 DEBUG : Auto confirm is set, choosing default "standard" for state "auth_type_done", override by setting config parameter "config_type"
2025/05/15 18:52:01 DEBUG : **temp-fs**: config out: out=&{State:auth_type_done Option:<nil> OAuth:<nil> Error: Result:standard}, err=<nil>
2025/05/15 18:52:01 DEBUG : **temp-fs**: config in: state="auth_type_done", result="standard"
2025/05/15 18:52:01 DEBUG : **temp-fs**: config out: out=&{State:standard Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/05/15 18:52:01 DEBUG : **temp-fs**: config in: state="standard", result=""
2025/05/15 18:52:01 DEBUG : Auto confirm is set, choosing default "" for state "standard_token", override by setting config parameter "config_login_token"
2025/05/15 18:52:01 DEBUG : **temp-fs**: config out: out=&{State:standard_token Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>
2025/05/15 18:52:01 DEBUG : **temp-fs**: config in: state="standard_token", result=""
2025/05/15 18:52:01 DEBUG : **temp-fs**: config out: out=<nil>, err=failed to get oauth token: EOF
Error: failed to get oauth token: EOF
Usage:
  rclone authorize <fs name> [base64_json_blob | client_id client_secret] [flags]

Flags:
      --auth-no-open-browser   Do not automatically open auth link in default browser
  -h, --help                   help for authorize
      --template string        The path to a custom Go template for generating HTML responses

Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.

2025/05/15 18:52:01 NOTICE: Fatal error: failed to get oauth token: EOF