qgis-plugin-ci icon indicating copy to clipboard operation
qgis-plugin-ci copied to clipboard

Support for plugin repository tokens

Open m-kuhn opened this issue 1 year ago • 8 comments

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

m-kuhn avatar Feb 06 '24 12:02 m-kuhn

Sure!

Same for embedding the license file.

Guts avatar Feb 06 '24 12:02 Guts

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?

Guts avatar Sep 25 '24 19:09 Guts

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.

Xpirix avatar Sep 26 '24 10:09 Xpirix

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?

Guts avatar Sep 26 '24 13:09 Guts

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

Xpirix avatar Sep 27 '24 05:09 Xpirix

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?

Guts avatar Sep 27 '24 06:09 Guts

Yes please, thank you.

Xpirix avatar Sep 28 '24 14:09 Xpirix

Yes please, thank you.

Done in https://github.com/qgis/QGIS-Hub-Website/issues/44

Guts avatar Sep 30 '24 07:09 Guts