Skip to content

Add support for oAuth and expiring token #2337

@abovetheborg

Description

@abovetheborg

Context

I am using obsidian at work. The AI LLM API are only accessible through a internally manage end point however, they are compatible with openAI schema.

The authentication must go through an OAuth scheme. The token provided by OAuth can be used as an API key in a user defined model in the settings.

The token is only valid 1 hour.

Problem

The token must be updated every hour. I have created a script that will fetch a new tocken and update the configuration value to the new token. However, when running, the API key is store in memory so the configuration update does not propagate.
Obsidian must be restarted for the new key value to be loaded.

Request

OAuth support with token renewal support in the plugin.

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