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

Authentication #5

Closed
wants to merge 25 commits into from
Closed

Authentication #5

wants to merge 25 commits into from

Conversation

mbovan
Copy link
Owner

@mbovan mbovan commented Jun 12, 2016

No description provided.

$gpg = gnupg_init();

// @todo: Delete the old key from GPG keyring.
// gnupg_deletekey($gpg, $original->get('mailhandler_gpg_key')->fingerprint);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does GPG maintain it's own keyring? How it is used? How does it differentiate between users?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It uses the system's keyring. Each imported public key gets a Key ID. In case a signature is verified, the user's fingerprint (with its data) is returned. By looking at the key info for the returned fingerprint we can get more information like name, email etc.

@mbovan
Copy link
Owner Author

mbovan commented Jun 16, 2016

Commits were cherry-picked and merged into the 8.x-1.x branch.

@mbovan mbovan deleted the features/authentication branch June 16, 2016 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants