Automatische login tool voor flex2rijk.nl Citrix werkplek
Project description
flex2rijk
Automatiseert de login op flex2rijk.nl:
- Cross-platform: Werkt op macOS, Windows en Linux.
- Veilig: Slaat credentials op in je systeem-keychain (macOS Keychain, Windows Credential Manager, Linux Secret Service) via
keyring. - Modern: Volledig herschreven in moderne Python (Pathlib, Type Hinting).
- Robuust: Bevat unit tests en strikte linting (Ruff, MyPy, Pylint).
Disclaimer
Let op: Deze tool is geen officieel product van flex2rijk of de betrokken overheidsinstanties. De auteur is op geen enkele wijze geassocieerd met flex2rijk.nl.
- Geen Support: Deze tool wordt geleverd "as-is" zonder enige vorm van garantie of support.
- Eigen Risico: Het gebruik van deze tool is volledig voor eigen risico. De auteur is niet verantwoordelijk voor eventuele schade, verlies van gegevens, of beveiligingsincidenten (zoals het verlies van wachtwoorden).
- Doel: Deze tool is uitsluitend bedoeld om de login-flow te automatiseren voor gebruikers die reeds rechtmatige toegang hebben tot de flex2rijk omgeving.
Installatie
1. Installeer de tool (via uv)
De makkelijkste manier is via uv. Dit installeert de tool in een geïsoleerde omgeving:
uv tool install flex2rijk
2. Setup credentials (eenmalig)
Sla je gebruikersnaam en wachtwoord veilig op in je systeem-keychain:
flex2rijk --setup
Gebruik
# Start login (browser op achtergrond)
# Bij de eerste keer wordt Chromium automatisch geïnstalleerd
flex2rijk
# Debug modus (browser zichtbaar)
flex2rijk --no-headless
# OneSpan token direct meegeven
flex2rijk 123456
Ontwikkeling
Installeren vanaf source
Als je de tool wilt aanpassen of testen vanaf de broncode:
git clone https://github.com/tijnschouten/flex2rijk.git
cd flex2rijk
uv tool install .
Development omgeving setup
uv sync --all-groups
uv run pre-commit install
Tests & Checks draaien
# Draai alle unit tests
uv run pytest
# Draai alle linters en formatters
uv run pre-commit run --all-files
CI/CD & Publicatie
Dit project gebruikt GitHub Actions voor automatische tests en publicatie naar PyPI.
Automatische Publicatie (Trusted Publishing)
Om automatisch te publiceren naar PyPI wanneer je een nieuwe tag aanmaakt (bijv. v0.1.0):
- Ga naar je PyPI account settings.
- Voeg een GitHub Publisher toe voor dit repository:
- GitHub Repository Owner: Je username.
- Repository Name:
flex2rijk. - Workflow Name:
pypi-publish.yml. - Environment Name:
release.
- Wanneer je een tag pusht, zal de GitHub Action de tool automatisch builden en uploaden naar PyPI.
Troubleshooting
- "os.startfile niet beschikbaar": Gebeurt alleen als je op een niet-Windows systeem probeert de Windows flow te forceren.
- Loginformulier niet herkend: Run met
--no-headlessom te zien waar Playwright blijft hangen. - ICA opent niet op Linux: Zorg dat
xdg-opencorrect geconfigureerd is voor.icabestanden.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flex2rijk-0.1.0.tar.gz.
File metadata
- Download URL: flex2rijk-0.1.0.tar.gz
- Upload date:
- Size: 47.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a155ac29ec31218c04049e43265f792d518b6e0c286dd714bd10ecd436c84fd9
|
|
| MD5 |
01ba41223b6861b65240a7d68b722d81
|
|
| BLAKE2b-256 |
73af0e97f990a7c548503e9f5b38c2a3cfbf478346697953dc148de30ef270d2
|
Provenance
The following attestation bundles were made for flex2rijk-0.1.0.tar.gz:
Publisher:
pypi-publish.yml on tijnschouten/flex2rijk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flex2rijk-0.1.0.tar.gz -
Subject digest:
a155ac29ec31218c04049e43265f792d518b6e0c286dd714bd10ecd436c84fd9 - Sigstore transparency entry: 1191329094
- Sigstore integration time:
-
Permalink:
tijnschouten/flex2rijk@69d76cf25f42c70d2004c4b27a7b595e4c42f88c -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/tijnschouten
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@69d76cf25f42c70d2004c4b27a7b595e4c42f88c -
Trigger Event:
push
-
Statement type:
File details
Details for the file flex2rijk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: flex2rijk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff07ff88fb89fcc4eaaad614e9b6e0fe4bf71bd9a5e349f9e1f9f82a2faa92e2
|
|
| MD5 |
9d97f24c7cb0ce3a74b4e910e02c8ee9
|
|
| BLAKE2b-256 |
baf5fd5af2f0c145c91a5418018401046cdfd0b9e0a89cee2be1ba92c51bad7e
|
Provenance
The following attestation bundles were made for flex2rijk-0.1.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on tijnschouten/flex2rijk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
flex2rijk-0.1.0-py3-none-any.whl -
Subject digest:
ff07ff88fb89fcc4eaaad614e9b6e0fe4bf71bd9a5e349f9e1f9f82a2faa92e2 - Sigstore transparency entry: 1191329100
- Sigstore integration time:
-
Permalink:
tijnschouten/flex2rijk@69d76cf25f42c70d2004c4b27a7b595e4c42f88c -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/tijnschouten
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@69d76cf25f42c70d2004c4b27a7b595e4c42f88c -
Trigger Event:
push
-
Statement type: