Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for plugin repository tokens #285

Open
m-kuhn opened this issue Feb 6, 2024 · 8 comments
Open

Support for plugin repository tokens #285

m-kuhn opened this issue Feb 6, 2024 · 8 comments

Comments

@m-kuhn
Copy link
Member

m-kuhn commented Feb 6, 2024

plugins.qgis.org now supports tokens, see qgis/QGIS-Django#326
It would be great to have support for this in here to use scoped tokens rather than personal access credentials for uploading plugins

@Guts
Copy link
Collaborator

Guts commented Feb 6, 2024

Sure!

Same for embedding the license file.

@Guts
Copy link
Collaborator

Guts commented Sep 25, 2024

Hi @Xpirix,

Can you share us some documentation (md, OpenAPI JSON/YAML...) where we can find details about the POST request required to work those API token please?

@Xpirix
Copy link

Xpirix commented Sep 26, 2024

Hi @Guts

Please find some POST request templates at https://github.com/qgis/QGIS-Django/blob/master/readme.md#token-based-authentication. Please let me know if you need more specific details.

@Guts
Copy link
Collaborator

Guts commented Sep 26, 2024

Thanks @Xpirix!

I was thinking about something like swagger but I think we can move on for now with this example.

Is there a development or test instance of plugins.qgis.org on which to base our unit tests in CI/CD to check if publishing works as expected?

@Xpirix
Copy link

Xpirix commented Sep 27, 2024

Yes, swagger is a good idea. I will try to implement it along with the incoming resources hub API.

Please find the unit test for this feature at: https://github.com/qgis/QGIS-Django/blob/master/qgis-app/plugins/tests/test_token_auth.py

@Guts
Copy link
Collaborator

Guts commented Sep 27, 2024

Yes, swagger is a good idea. I will try to implement it along with the incoming resources hub API.

It would be really appreciated! Do you want to me creating an issue?

@Xpirix
Copy link

Xpirix commented Sep 28, 2024

Yes please, thank you.

@Guts
Copy link
Collaborator

Guts commented Sep 30, 2024

Yes please, thank you.

Done in qgis/QGIS-Django#473

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

No branches or pull requests

3 participants