dcsimg
Results 1 to 8 of 8

Thread: OAuth 2.0

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2016
    Location
    France
    Posts
    32

    Question OAuth 2.0

    Hi, Someone has already found a sample to connect with OAuth 2.0 to a service ?
    I would have like to improve his code (google services ) : http://www.luigimicco.altervista.org...hp/vbgcalendar

  2. #2
    Frenzied Member
    Join Date
    Feb 2017
    Posts
    1,061

    Re: OAuth 2.0

    I have code working to connect to Dropbox but never conected to Google.
    vbExtra: Print preview for VB6, print FlexGrids and more.
    MSDN online for VB6, Language reference.

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2016
    Location
    France
    Posts
    32

    Re: OAuth 2.0

    and it's use an OAuth authentification ? (I thinks so) Maybe can we create a github about

  4. #4
    Frenzied Member
    Join Date
    Feb 2017
    Posts
    1,061

    Re: OAuth 2.0

    Quote Originally Posted by christ62 View Post
    and it's use an OAuth authentification ? (I thinks so) Maybe can we create a github about
    Yes. OK, I'll update what I have here. Please wait a moment.
    vbExtra: Print preview for VB6, print FlexGrids and more.
    MSDN online for VB6, Language reference.

  5. #5

    Thread Starter
    Member
    Join Date
    Feb 2016
    Location
    France
    Posts
    32

    Re: OAuth 2.0

    I just follow you (EduardoVB ?)

  6. #6
    Frenzied Member
    Join Date
    Feb 2017
    Posts
    1,061

    Re: OAuth 2.0

    No, here it is.

    It was part of a project that I abandoned.
    My idea was to sell some "Cloud controls" and I started with Dropbox which was something I needed, but found that Dropbox had changed its API in the few months that I was developing the project, so I decided to leave it. They are worse than MS. I cannot sell a component that will work only until they decide to change the API.

    I just took from that project only the part related to the autentication but there must be still much dead code left to delete.

    The program needs to make the user to log-in to get the token once, then store the token locally to use it the next time.
    Attached Files Attached Files
    vbExtra: Print preview for VB6, print FlexGrids and more.
    MSDN online for VB6, Language reference.

  7. #7

    Thread Starter
    Member
    Join Date
    Feb 2016
    Location
    France
    Posts
    32

    Re: OAuth 2.0

    hum ok. I'll try ah home to re-use your code to generate a Oauth connexion to gg

  8. #8
    Fanatic Member wqweto's Avatar
    Join Date
    May 2011
    Posts
    719

    Re: OAuth 2.0

    https://github.com/wqweto/VbGcp

    There is a sample application that logs user on and retrieves tokens for the service.

    Finally cGcpOAuth is a helper class for OAuth2 user authentication in Installed Application mode. It uses Google Accounts to validate user login and to acquire user consent on accessing GCP service. Then it retrieves OAuth2 refresh_token from accounts.google.com/o/oauth2/token service which can be stored and later used to retrieve OAuth access_token for GCP service without showing another login screen.
    This code is pretty dated so might not work w/ current cloud print service at all.

    cheers,
    </wqw>

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width