Skip to content

Pull access token from .env#873

Merged
Blodir merged 3 commits intodevelopmentfrom
access-token-from-env
Jan 14, 2026
Merged

Pull access token from .env#873
Blodir merged 3 commits intodevelopmentfrom
access-token-from-env

Conversation

@olzraiti
Copy link
Contributor

@olzraiti olzraiti commented Dec 3, 2025

Currently access token is in our git repo (config.json). This PR removes the file and pulls ACCESS_TOKEN from the environment variables, which can be configured with .env for example.

After merging developers should be notified to update their .env file

Copy link
Contributor

@Blodir Blodir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add instructions for token acquisition in readme

@olzraiti
Copy link
Contributor Author

Updated readme

@olzraiti olzraiti requested a review from Blodir January 14, 2026 11:10
README.md Outdated
ACCESS_TOKEN=<YOUR ACCESS TOKEN>
```

The access token needs to be connected to laji.fi's "system id". Ask one from your colleagues.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know in practice there's nobody outside of luomus working on this, but it feels a bit weird to instruct "ask from your colleagues" in a publicly available repo... What are your thoughts? Also btw, can't you just use your personal access token from the api-user endpoint https://apitest.laji.fi/openapi#/API%20user?

@Blodir Blodir added this to the Release 88 milestone Jan 14, 2026
@Blodir Blodir merged commit 6426d60 into development Jan 14, 2026
1 check passed
@Blodir Blodir deleted the access-token-from-env branch January 14, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants