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

Plc auth lib integration #195

Merged
merged 21 commits into from
Sep 28, 2022
Merged

Plc auth lib integration #195

merged 21 commits into from
Sep 28, 2022

Conversation

dholms
Copy link
Collaborator

@dholms dholms commented Sep 28, 2022

I split this out into it's own PR cause it was sort of its own branch of work.

This works did:plc resolution into our auth lib.

tbh I'm not particularly thrilled with how this turned out, but I'm not sure of our other option.

The main change in DX is that we can't just call verification code from the auth lib, we have to instantiate a Verifier that encapsulates some DID resolution & verification logic. This is because resolving dids takes parameters (timeout & plcUrl) which means those have to pass through to any function that may require DID resolution.

I briefly thought about ripping out the UCAN stuff, but we'd end up building something with a similar shape anyway, so I ended up leaving it in for now to avoid having to refactor repo code.

@dholms dholms changed the base branch from main to pds-plc-integration September 28, 2022 20:51
@dholms dholms marked this pull request as draft September 28, 2022 20:51
@dholms dholms marked this pull request as ready for review September 28, 2022 22:17
@dholms dholms changed the title Plc ucan integration Plc auth-lib integration Sep 28, 2022
@dholms dholms changed the title Plc auth-lib integration Plc auth lib integration Sep 28, 2022
@pfrazee
Copy link
Collaborator

pfrazee commented Sep 28, 2022

👍 LGTM!

Base automatically changed from pds-plc-integration to main September 28, 2022 22:36
@dholms dholms merged commit 670c419 into main Sep 28, 2022
@dholms dholms deleted the plc-ucan branch September 28, 2022 22:52
mloar pushed a commit to mloar/atproto that referenced this pull request Nov 15, 2023
* parsing dids to something we understand

* revamping did-sdk with did-resolver

* testing

* fixing some thigns & finishing tests

* fix type error & remove old test

* wip

* create did on server & add email

* check username available & store email

* better test utils

* remove did:test

* allow authstore to sign for controlled dids

* plc ucan integration wip

* wip

* finished auth lib refactor

* integrating to repo & server

* couple fix ups

* couple more fixups

* disable dev-env test

* comments
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