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

Planka Auth with a SSO backend #8

Closed
jpjoux opened this issue Oct 14, 2024 · 5 comments
Closed

Planka Auth with a SSO backend #8

jpjoux opened this issue Oct 14, 2024 · 5 comments
Assignees

Comments

@jpjoux
Copy link

jpjoux commented Oct 14, 2024

Hello Team

I am trying to use you python project in order to use Planka API

Our planka is configured to use our SSO portal for managing authentication (ie not login/password).

How does the authentication is working by using your Planka python package ?
I seams that only login/password is possible.

Is it possible to provide a custom bearer token in order to manage authentication ?

Have you got a python example ?

@hwelch-fle
Copy link
Owner

hwelch-fle commented Oct 14, 2024

I haven't added support for SSO as I haven't used planka with it and don't have a testing environment.

I've added a bypass to the username and password authentication method for now in b4c3873, that should let you pass a token provided by your SSO and bypass the username/password login

planka = Planka("https://planka.mydomain.com", access_token="mytoken")

Should be all you need now to get it working as intended

@jpjoux
Copy link
Author

jpjoux commented Oct 14, 2024

Thanks for your proposal
It seems interresting to have the capability to provide an auth token

May be I am wrong but your new constructor def init(self, url:str, username:str, password:str, templates=None, access_token=None) seems to request login/password as mandatory args

@hwelch-fle
Copy link
Owner

Thanks for catching that. This is what I get for trying to hotfix code while doing 5 other things at work haha.

Latest commit (7a93330) makes the constructor arguments all keyword except url. I plan on re-writing a lot of this code once Planka 2 is released.

@jpjoux
Copy link
Author

jpjoux commented Oct 15, 2024

I have tested from a clone of your master branch: It works !
It can be closed.

Can you publish a new release on Pypi ?

@hwelch-fle
Copy link
Owner

Released under v1.0.1 tag and deployed to PyPi

@hwelch-fle hwelch-fle self-assigned this Oct 15, 2024
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

2 participants