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

[Feature Request] Anonymous activation #9

Closed
JJTech0130 opened this issue Dec 11, 2021 · 15 comments
Closed

[Feature Request] Anonymous activation #9

JJTech0130 opened this issue Dec 11, 2021 · 15 comments
Labels
enhancement New feature or request

Comments

@JJTech0130
Copy link

I think that anonymous activation simply require you to set the type to "anonymous" and provide a zero length username and password. I'm working on the feature in my rust version and it seems to work, but I can't properly test because my crypto code seems to be broken, causing Adobe to complain about "invalid auth key format" - I think I accidentally exported and encrypted the public key, not the private key 😅

@Leseratte10
Copy link
Owner

Ah, thanks a lot for that hint, that'd be cool if it was that easy. I will try to implement that and see if it works.
Do you have your Rust version available somewhere? I found your "adept-rs" repo but that seems to be a placeholder / doesn't contain any data yet.

@JJTech0130
Copy link
Author

Yeah... I'm still in the early stages (just getting activation working) so I didn't publish it yet.

@JJTech0130
Copy link
Author

RustCrypto is very annoying, so I'm thinking about rewriting it with libsodium, but worried about cross-platform compatibility- I wonder if you can embed it into the binary?

@Leseratte10
Copy link
Owner

Embed libsodium into a Rust binary? I'm afraid I have absolutely no Rust experience so I'm unable to help with that.

I did just test this anonymous activation method and it's working just fine - anonymous authorization and fulfillment with such an anonymous account is working just fine, so I will definitely add that to the next version. Thanks a lot.

Did you also test any of the other AdobeID providers? Given that an anonymous auth and an AdobeID auth seem to work exactly the same way, the other ID providers probably do, too, right? So I should also be able to add that AdobeID provider dropdown menu that ADE has, too, so people can use other providers for their AdobeID.

@JJTech0130
Copy link
Author

JJTech0130 commented Dec 11, 2021

Yeah- just found out that sodiumoxide is deprecated (rust bindings for libsodium)... why is it so hard to find a good rust library with documentation other than openssl...
Anyway I haven't tested anything else, as I was simply using anonymous because I kept running out of activations when testing :)
I just figured it out because of the list in the auth response and then tried with no username and password... Not sure what those node ids that the other provider have is? Anonymous and AdobeID didnt have it...

@Leseratte10
Copy link
Owner

Looking at the /AuthenticationServiceInfo response, all the methods other than AdobeID and anonymous also have a "nodeId" included, so they do seem to work differently than the official ones. So I guess I'm just going to add anonymous authorization for now, until I get a proper account somehow to test the other methods.

@JJTech0130
Copy link
Author

Yeah. If you need another provider to test, you could use overdrive and register with your local library. I'll mitm ADE when I have time

@Leseratte10
Copy link
Owner

Yeah, I guess MITMing ADE could work. I tried doing that in the past to figure out how anonymous auth works, but given that that is encrypted with some auth cert, I was too lazy to try to figure out how to decrypt that stuff in ADE.

@JJTech0130
Copy link
Author

Well it looks the same except for the method
I would try it and see what the error from adobe is

@JJTech0130
Copy link
Author

Here's a throwaway Overdrive account: pemeh80308@ningame.com
The password is the email

@Leseratte10
Copy link
Owner

That ... just worked. Authorization and fulfillment. That means with the next version I'll be able to support all the different methods.
Thanks a lot.

@JJTech0130
Copy link
Author

Well then... didn't expect it to be that easy :)
Guess it's less complicated than we thought

@JJTech0130
Copy link
Author

Closing this issue.

@Leseratte10
Copy link
Owner

Support for anonymous authorizations and for other ID providers is now included with cc37506 and will be available in the next release.

@Leseratte10
Copy link
Owner

Support is now included in the new v0.0.15 release.

@Leseratte10 Leseratte10 added the enhancement New feature or request label Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants