That would be some next level shit, borrow books, we know its you. #4

Open
opened 2021-02-26 20:38:40 +01:00 by crunk · 4 comments
Owner
https://github.com/verdan/flaskoidc https://flask-session.readthedocs.io/en/latest/#configuration
Owner

Yeah! I actually had to work this with just lately and it is really not that bad at all. See https://python-keycloak.readthedocs.io/en/latest/#usage. I guess you'd just have to make a KeycloakOpenID instance and use a limited permissions client on the Keycloak side for viewing users.

My code was doing something different where I init'd an admin client in https://github.com/decentral1se/keycloak-collective-portal/blob/main/keycloak_collective_portal/keycloak.py and then making users in 7b65bc6f26/keycloak_collective_portal/routes/register.py (L80).

Here are some docs on how I set up my client https://github.com/decentral1se/keycloak-collective-portal#from-a-system-administrator-perspective.

Yeah! I actually had to work this with just lately and it is really not that bad at all. See https://python-keycloak.readthedocs.io/en/latest/#usage. I guess you'd just have to make a `KeycloakOpenID` instance and use a limited permissions client on the Keycloak side for viewing users. My code was doing something different where I init'd an admin client in https://github.com/decentral1se/keycloak-collective-portal/blob/main/keycloak_collective_portal/keycloak.py and then making users in https://github.com/decentral1se/keycloak-collective-portal/blob/7b65bc6f2632dad78bd720a7200ffcf5b33a0486/keycloak_collective_portal/routes/register.py#L80. Here are some docs on how I set up my client https://github.com/decentral1se/keycloak-collective-portal#from-a-system-administrator-perspective.
Author
Owner

I think with the flask I have learned so far, I want to attempt to make a radio show/mix/mixage and audio-of-event uploading website. Where you can do comment or annotate per timestamp of the audiofile.

So I would be up for implementing the keycloak into this system as well.
But I am still a bit confused in the myriad of options for a session in flask.

I think with the flask I have learned so far, I want to attempt to make a radio show/mix/mixage and audio-of-event uploading website. Where you can do comment or annotate per timestamp of the audiofile. So I would be up for implementing the keycloak into this system as well. But I am still a bit confused in the myriad of options for a session in flask.
Author
Owner

I had a thought about this, we should just built a small sqlite userdb into this. All the code for this is in https://git.vvvvvvaria.org/crunk/distribusi-verse.

then on top of that we can use flaskoidc to tie it into the varia keycloak.

I had a thought about this, we should just built a small sqlite userdb into this. All the code for this is in https://git.vvvvvvaria.org/crunk/distribusi-verse. then on top of that we can use flaskoidc to tie it into the varia keycloak.
Author
Owner

There are a bunch of these make sure we pick a good one
https://pypi.org/project/flaskoidc/ this seems the latest up te date version

There are a bunch of these make sure we pick a good one https://pypi.org/project/flaskoidc/ this seems the latest up te date version
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: varia/varia-library-website#4
No description provided.