Skip to content

Make the redirection endpoint optional #3

@caeies

Description

@caeies

Hi all,

First, thanks for this promising project.

I was planning to play with Himalaya + gmail as a replacement candidate to cmdg.

I'm running under a debian 13.2 distribution, using rustup / rust installed toolchain 1.96.

I never run anything from the himalaya framework before.

According to the documentation, we can use either ~/.ortierc or ~/.config/ortie.toml. Of course, as a dummy user, I tried to create my config to ~/.config/ortie.toml. But ortie was failing to locate the config file. Short story: this is either ~/.ortierc OR ~/.config/ortie/config.toml (at least in the version installed by cargo install ortie).

Once this issue solved, I tried to get a token which fails miserably for two reasons:

  • First I forget to setup the redirection URL -> failure occurs.
  • My computer is running a web server: the default redirection is done on 80 -> as user -> permission denied (because port is < 1024). Why not in such conditions running (as all others tools I know doing this kind of stuff) on a random > 1024 port ? To workaround that I had to use endpoints.redirection = "http://localhost:12312"
  • Once this pitfall passed (I skip all the failures, one interesting one is that initial requests were using a wrong scope, I don't known where this is coming from): the auth get was failing with no such file or directory ... After stracing the binary, I found that I should install the pass package (apt install pass) ... I don't see this at any place, so I'm probably missing something to a missing feature thing during the installation ?
  • Initial retry fails with the pass binary complaining ... I made the guess that the pass init my_gpg_id was missing.
  • did it and finally get the token !
  • but looking at pass show output, I saw that it is stored under the ortie -> example entry instead of the my_acount_name value (aka [accounts.my_acount_name]

I know that this software is still under development, so I take the time to fill this issue :).

Best regards.

Caeies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions