google-auth-library-ruby | Google Auth Library for Ruby | OAuth library

 by   googleapis Ruby Version: googleauth/v1.5.2 License: Apache-2.0

kandi X-RAY | google-auth-library-ruby Summary

kandi X-RAY | google-auth-library-ruby Summary

google-auth-library-ruby is a Ruby library typically used in Security, OAuth, Ruby On Rails applications. google-auth-library-ruby has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

This is Google's officially supported ruby client library for using OAuth 2.0 authorization and authentication with Google APIs.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              google-auth-library-ruby has a low active ecosystem.
              It has 404 star(s) with 241 fork(s). There are 59 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 24 open issues and 121 have been closed. On average issues are closed in 525 days. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of google-auth-library-ruby is googleauth/v1.5.2

            kandi-Quality Quality

              google-auth-library-ruby has no bugs reported.

            kandi-Security Security

              google-auth-library-ruby has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              google-auth-library-ruby is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              google-auth-library-ruby releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed google-auth-library-ruby and discovered the below as its top functions. This is intended to give you an instant insight into google-auth-library-ruby implemented functionality, and help decide if they suit your requirements.
            • Get a default security credentials .
            • Create a new lock
            Get all kandi verified functions for this library.

            google-auth-library-ruby Key Features

            No Key Features are available at this moment for google-auth-library-ruby.

            google-auth-library-ruby Examples and Code Snippets

            No Code Snippets are available at this moment for google-auth-library-ruby.

            Community Discussions

            QUESTION

            Can I authenticate gcloud cli using both service account and user credentials?
            Asked 2018-Jul-11 at 12:34

            Google API clients typically recognise the GOOGLE_APPLICATION_CREDENTIALS environment variable. If found, it's expected to point to a JSON file with credentials for either a service account or a user.

            Service account credentials can be downloaded from the GCP web console and look like this:

            ...

            ANSWER

            Answered 2018-Jul-09 at 19:22

            As you point out gcloud command line tool (CLI) does not use application default credentials. It has separate system for managing its own credentials.

            GOOGLE_APPLICATION_CREDENTIALS are designed for client libraries to simplify wiring in credentials, and gcloud CLI is not a library. Even in the client code best practice is not to depend on this environment variable but instead explicitly provide credentials.

            To answer your second question, user credentials can be obtained via

            Source https://stackoverflow.com/questions/51242878

            QUESTION

            How does CloudKMS encryption/decryption work securely when being called from a non-Google system?
            Asked 2018-May-01 at 14:24

            I need to know that the plaintext/ciphertext being sent to Google CloudKMS, and the public/private key used to authenticate, are secure in transit, but I don't know how to prove that.

            As per KMS docs, I created a service account, downloaded the JSON key file, and have hooked it up via the environment variable GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account-key.json.

            I am using the google-api-client gem (at version 0.10.3, released 13 months old, because I can't install mime-types >= 3.0 whilst using padrino-mailer: see this commit), have tested the Google::Apis::CloudkmsV1::CloudKMSService methods encrypt_crypto_key and decrypt_crypto_key, and they're working nicely.

            I have tried reading through the source code of the google-api-client, googleauth, and signet gems. All I'm certain of is:

            1. The JSON key file is loaded and the private_key value is used to make OpenSSL::PKey::RSA.new here
            2. Signet::OAuth2::Client is given the RSA key as signing_key in this file

            I would consider the security proven if the JSON key file is used to encrypt the string sent through encrypt_crypto_key on the calling server, and likewise to decrypt the string received by decrypt_crypto_key, and the CloudKMS server on the other end behaves similarly. This is what I'm assuming the library does – End-to-end encryption – but I must see it to believe it. I attempted to view the traffic in Wireshark but couldn't make any sense of it (maybe that fact proves it? I don't know )

            Can anyone help me prove or disprove this method of calling CloudKMS to encrypt/decrypt user data – using the google-api-client gem with a JSON key file downloaded as per the docs – is secure?

            Related: for those of you who are interested, the CloudKMS API is on the roadmap to be included in the newer google-cloud gem.

            ...

            ANSWER

            Answered 2018-May-01 at 14:24

            The communications between your client and Google are secured via TLS. You can see in Wireshark that the communications are on port 443 and that a TLS connection is negotiated.

            Your requests are authenticated using OAuth. In this case (using a service account from outside of GCP), this is done using the flow documented in Using OAuth 2.0 for Server to Server Applications:

            • you are responsible for provisioning your off-GCP app with the private key issued to the service account you wish to assert;
            • it then uses that private key to sign a JWT and submit it to Google's OAuth server;
            • Google replies with an OAuth access token which is a bearer credential which identifies the service account in question;
            • You then provide that access token with your requests to KMS to identify the entity making the requests as the service account and using its authority;
            • KMS and GCP then use that identity to evaluate IAM access controls to determine whether particular operations are authorized.

            This is secured end-to-end (the TLS connection is end-to-end security since the parties to the communication—your service and Google—are the TLS endpoints). Since your question seems to be "are these requests secure in transit, and how can I show this", I think it's sufficient to show that a TLS connection is being negotiated, Wireshark should be able to show you this. (Your connection library also needs to be doing a suitable PKI evaluation of the presented certificate; validating that this is taking place correctly is a little more involved, but it's a reasonable thing to trust is happening correctly if you investigate the tools you're using and their assertions around certificate validation).

            Best wishes and thanks for using GCP and Cloud KMS. Let us know if you have any further questions.

            Source https://stackoverflow.com/questions/50117509

            QUESTION

            Google Signin from server side app in ruby
            Asked 2018-Feb-22 at 16:41

            I have a mobile app that is signin in with google and sending a server auth code to my backend app. I want to use this code, along with the client secrets from the google developer console, to retrieve a refresh code for retrieving data from google drive when the user is offline.

            Google provides an client for auth calls in ruby, but it seems not to be maintained lately and I could not see a way to do this kind of authorisation in the docs. In the documentation, I could find an example of how to do this on python:

            ...

            ANSWER

            Answered 2018-Feb-22 at 16:41

            In case somebody stumbles here with a similar problem, what caused the request to fail was the Content-Type, and not the grant_type parameter. Digging around in the code for the client library I saw that they use application/x-www-form-urlencoded the endpoint expects a application/x-www-form-urlencoded content type. I adjusted my code accordingly and was able to get a successful response with the valid credentials and token. Here follows the resulting code:

            Source https://stackoverflow.com/questions/48903926

            QUESTION

            what is user_id in google oauth command line example?
            Asked 2017-Aug-16 at 04:38

            Where is user_id supposed to come from in this example?

            Using the command line example from here: https://github.com/google/google-auth-library-ruby

            I've only changed the example by removing the '/path/to/' and there is a client_secrets.json in my working directory.

            ...

            ANSWER

            Answered 2017-Jan-25 at 20:49

            The user_id should the email address of the person who clicks the link.

            Source https://stackoverflow.com/questions/41860512

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install google-auth-library-ruby

            Be sure https://rubygems.org/ is in your gem sources.

            Support

            This library is supported on Ruby 2.5+. Google provides official support for Ruby versions that are actively supported by Ruby Core—that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby may still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular OAuth Libraries

            satellizer

            by sahat

            cpprestsdk

            by microsoft

            oauth2-server

            by thephpleague

            scribejava

            by scribejava

            socialite

            by laravel

            Try Top Libraries by googleapis

            google-api-nodejs-client

            by googleapisTypeScript

            google-api-php-client

            by googleapisPHP

            google-api-python-client

            by googleapisPython

            google-cloud-python

            by googleapisPython

            google-api-go-client

            by googleapisGo