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

[Proposal 0004] Simple and working exaple with cURL #59

Open
PIPOGit opened this issue Aug 29, 2024 · 2 comments
Open

[Proposal 0004] Simple and working exaple with cURL #59

PIPOGit opened this issue Aug 29, 2024 · 2 comments

Comments

@PIPOGit
Copy link

PIPOGit commented Aug 29, 2024

Hi all.

Can some put a valid and real example of how to work with OAuth authentication under Bluesky?

All steps, commented, to understand all things.

Thanks in advance.

@PIPOGit PIPOGit changed the title [Proposal 0002] Simple and working exaple with cURL [Proposal 0004] Simple and working exaple with cURL Sep 13, 2024
@bnewbold
Copy link
Contributor

bnewbold commented Oct 4, 2024

It is pretty tricky to do all of this with curl. In particular, you need to have a client metadata document (JSON) hosted somewhere on the internet.

This python example goes through all the steps explicitly: https://github.com/bluesky-social/cookbook/tree/main/python-oauth-web-app

@PIPOGit
Copy link
Author

PIPOGit commented Oct 4, 2024

Well... In fact, I'd like to check a couple of things:
1.- The "client metadata document" needs to be served under an "https" protocol; so it needs a VALID digital certificate. It means, I can not create and use a self-signed one, only valid certificates are allowed, restricting clients (not anyone has a "valid" https server). And
2.- The DPoP key, should use the same digital certificate than above or can be whatever certificate I want?
Thanks!

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