GitHub user k-popov added a comment to the discussion: How does a
plugin/extension/dag get a local client without authenticating?
Just in case someone tries to use this JWT trick: the `sub` parameter must be
numeric user ID in string, for example
```python
# A dedicated user with id `2` and `Admin` role has been created for custom
plugin to work
token = generator.generate(extras={"sub": "2", "role": "Admin"})
```
Yet it's not clear what to do with new airflow instances where no users created
yet.
GitHub link:
https://github.com/apache/airflow/discussions/61800#discussioncomment-16515526
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]