Class: Google::Api::Authentication

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/api/auth.rb

Overview

Authentication defines the authentication configuration for API methods provided by an API service.

Example:

name: calendar.googleapis.com
authentication:
  providers:
  - id: google_calendar_auth
    jwks_uri: https://www.googleapis.com/oauth2/v1/certs
    issuer: https://securetoken.google.com
  rules:
  - selector: "*"
    requirements:
      provider_id: google_calendar_auth
  - selector: google.calendar.Delegate
    oauth:
      canonical_scopes: https://www.googleapis.com/auth/calendar.read

Instance Attribute Summary collapse

Instance Attribute Details

#providers::Array<::Google::Api::AuthProvider>

Returns Defines a set of authentication providers that a service supports.

Returns:



48
49
50
51
# File 'proto_docs/google/api/auth.rb', line 48

class Authentication
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#rules::Array<::Google::Api::AuthenticationRule>

Returns A list of authentication rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

Returns:

  • (::Array<::Google::Api::AuthenticationRule>)

    A list of authentication rules that apply to individual API methods.

    NOTE: All service configuration rules follow "last one wins" order.



48
49
50
51
# File 'proto_docs/google/api/auth.rb', line 48

class Authentication
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end