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

Choose scopes and a little bit of testing #9

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

rhaps0dy
Copy link
Collaborator

@rhaps0dy rhaps0dy commented Sep 6, 2022

To get the library Google-approved, I've decided that making the requestable scopes modular will be useful.

Here's also some tests, though not complete. That is a step towards MELPA approval.

;; Version: 0.1
;; Keywords: comm oauth2
;; Maintainer: Adrià Garriga-Alonso <adria@rdwrs.com>
;; Version: 0.0.1
Copy link
Owner

Choose a reason for hiding this comment

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

Why are you changing the version to a smaller version here?

According to semver, patch changes (changing z in x.y.z) should be used only for bug fixes. This seems more appropriate for a version 0.2.0.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, you're probably right, I'll change this to 0.2.0

"Default client ID for Google OAuth2."
:group 'oauth2-auto
:type 'string)

(defcustom oauth2-auto-google-client-secret ""
(defcustom oauth2-auto-google-client-secret "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"
Copy link
Owner

Choose a reason for hiding this comment

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

Will it work to embed this in a widely-distributed library?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've heard it's OK. There's no way to avoid embedding the app key if you're distributing a program.

I still have to do the verification process so for now it's not very useful

Copy link
Owner

Choose a reason for hiding this comment

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

@rhaps0dy Is there any progress on the verification program? If not, we'll have to resort to having clients make their own apps on the Google Developer Console.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hello @telotortium ,

You might have guessed from the lack of reply, but sorry, there hasn't been :(. I don't think I'll have the time and motivation to do this either, I'm not using Oauth on Emacs any more. Would you like me to transfer the repo to you or something?

Copy link
Owner

Choose a reason for hiding this comment

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

@rhaps0dy Yes, I can take it over and improve it to the point where I can fix any bugs. We probably won't get it approved by Google, but making personal apps is sufficient for org-gcal and other apps like that.

Copy link
Owner

Choose a reason for hiding this comment

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

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.

None yet

2 participants