code-specialist / fastapi-keycloak

Keycloak integration for Python FastAPI
https://fastapi-keycloak.code-specialist.com/
Apache License 2.0
193 stars 50 forks source link

Refresh Token #27

Closed cedvict closed 2 years ago

cedvict commented 2 years ago

Hi Guys

Please there's way provided by this module to refresh token??

Thanks in advance.

yannicschroeer commented 2 years ago

Hello @cedvict,

I'm not sure I got your question right. But I guess you are asking

if it is possible to retrieve a refresh token from Keycloak with this package

As for the answer to that: Yes it is possible to retrieve one. But no, it's currently not integrated to handle refresh tokens in any way. But a pull request is welcomed for that. In case your Keycloak instance sends a refresh token, you have to extend the KeycloakToken with that attribute. Also, a new endpoint that handles exchanging refresh tokens for new access tokens would be convenient.

yannicschroeer commented 2 years ago

Closed due to lacking response. Feel free to reopen.

cedvict commented 2 years ago

Hello Yannick

Can you please add me as a contributor ?

Best Regards

Le jeu. 24 mars 2022 à 17:40, Yannic Schröer @.***> a écrit :

Hello @cedvict https://github.com/cedvict,

I'm not sure I got your question right. But I guess you are asking if it is possible to retrieve a refresh token from Keycloak with this package. As for the answer to that: No, it's currently not integrated to handle refresh tokens in any way. But a pull request is welcomed for that. In case your Keycloak instance sends a refresh token, you have to extend the KeycloakToken with that attribute. Also, a new endpoint that handles exchanging refresh tokens for new access tokens would be convenient.

— Reply to this email directly, view it on GitHub https://github.com/code-specialist/fastapi-keycloak/issues/27#issuecomment-1077821960, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEHCYMEXIBEOSJ5S773M2TVBSLHFANCNFSM5RPCAU6A . You are receiving this because you were mentioned.Message ID: @.***>

-- cordialement Cédric FOWOUE Ing. Informaticien

yannicschroeer commented 2 years ago

This is open source. You may open a pull request with your suggested changes and you will become a contributor

cedvict commented 2 years ago

It seems like you did not get me well. I want to push code on repository before open au pull request. I think that you have to add me as member or only ssh access allows to push.

Le lun. 4 avr. 2022 à 22:15, Yannic Schröer @.***> a écrit :

This is open source. You may open a pull request with your suggested changes and you will become a contributor

— Reply to this email directly, view it on GitHub https://github.com/code-specialist/fastapi-keycloak/issues/27#issuecomment-1087970703, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEHCYP7NJ2DXAHVC73QJL3VDNEWXANCNFSM5RPCAU6A . You are receiving this because you were mentioned.Message ID: @.***>

-- cordialement Cédric FOWOUE Ing. Informaticien

yannicschroeer commented 2 years ago

The repository is protected. Simply create a fork and open a pull request from there 😊

cedvict commented 2 years ago

Error: Permission to code-specialist/fastapi-keycloak.git denied to cedvict. fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

Le lun. 4 avr. 2022 à 22:36, Yannic Schröer @.***> a écrit :

The master branch is protected. Anything else is generally public. So as long as one doesn't try to push to the master directly, everyone should be able push to branches and open pull requests

— Reply to this email directly, view it on GitHub https://github.com/code-specialist/fastapi-keycloak/issues/27#issuecomment-1087989337, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEHCYO54P62TPTVSCIP5QLVDNHEHANCNFSM5RPCAU6A . You are receiving this because you were mentioned.Message ID: @.***>

-- cordialement Cédric FOWOUE Ing. Informaticien

cedvict commented 2 years ago

Can you please add me as contributor.

Thanks.

Le dim. 27 mars 2022 à 17:19, Yannic Schröer @.***> a écrit :

Closed #27 https://github.com/code-specialist/fastapi-keycloak/issues/27 .

— Reply to this email directly, view it on GitHub https://github.com/code-specialist/fastapi-keycloak/issues/27#event-6313855940, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEHCYOWUWBCF5CQ72PR6Q3VCCDBTANCNFSM5RPCAU6A . You are receiving this because you were mentioned.Message ID: @.*** com>

-- cordialement Cédric FOWOUE Ing. Informaticien