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

Bring back username/password to make it work under CDN #154

Merged
merged 7 commits into from
Sep 27, 2023

Conversation

philippe44
Copy link
Contributor

@philippe44 philippe44 commented Jul 26, 2023

This PR is mainly to enable username/password credential now that we use CDN and need a token to access it.

The idea is that when using username/password, the AccessKey request would fail as we still use such u/p credentials where in fact we should use stored reusable credentials (the one obtained after authentication using u/p). This PR does not overwrite the authData in blob or ctx->config but instead return reusable credendials obtained after Session::authenticate and let the application replace ctx->authData (which main be the password in case username/password was used) by these. Now an AccessKey can be obtained.

I've also modified the example so that the credentials can be stored in a json file that can be used later, instead or requiring user/password again. It's less dangerous than forcing people to use password all the time, they just have to secure the json file.

That also answers the issue #153

NB: also fix a tiny typo in header files and the .gitmodules wrongly points to my Bell repository fork, should be ignored

@philippe44 philippe44 changed the title syntax Bring back username/password to make it work under CDN Sep 25, 2023
@feelfreelinux
Copy link
Owner

LGTM, thanks a lot for the changes :)

@feelfreelinux feelfreelinux merged commit ed6bd21 into feelfreelinux:master Sep 27, 2023
0 of 3 checks passed
@philippe44
Copy link
Contributor Author

philippe44 commented Sep 27, 2023

Thx! BTW, it also requires feelfreelinux/bell#40

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

Successfully merging this pull request may close these issues.

2 participants