K-Phoen / backstage-plugin-confluence

Confluence plugins for backstage
MIT License
58 stars 15 forks source link

feat: added Personal Access Token authentication method #174

Open remi-espie opened 1 year ago

remi-espie commented 1 year ago

Added 2 fields in config to allow authentication to Confluence via Personal Access Token. It will look for usePAT in config and if it is set to true, it will look for pat value and use this as the Bearer token in the request to Confluence

rmartine-ias commented 1 year ago

Thanks for this, it's super useful! You might want to add the new options to the config schema as well: https://backstage.io/docs/conf/defining/

It would be neat if you could make (username && password) || (usePAT && pat) required, but I have no idea how to do that. This is a first stab: https://github.com/rmartine-ias/backstage-plugin-confluence/commit/e640eb353470fcc6e08cddc3a68c91b1cdbaf53f

mist3r3 commented 1 year ago

Hi, any chance we could have this?

rmartine-ias commented 1 year ago

@mist3r3 we're using this right now with patch-package, if that helps. Build the patched version, copy the dist/ files into node modules, and generate the patches.

riginoommen commented 1 year ago

Looking forward for this PR to be merged and excited to use this

https://github.com/K-Phoen/backstage-plugin-confluence/issues/184

chauvm commented 2 months ago

can we have this feature merged please?

rmartine-ias commented 1 month ago

@chauvm development has moved to https://github.com/backstage/community-plugins/tree/main/workspaces/confluence/plugins/search-backend-module-confluence-collator, where this feature has been released