Class: AWSCDK::AppFlow::CfnConnectorProfile::OAuthPropertiesProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_flow/cfn_connector_profile.rb

Overview

The OAuth properties required for OAuth type authentication.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(auth_code_url: nil, o_auth_scopes: nil, token_url: nil) ⇒ OAuthPropertiesProperty

Returns a new instance of OAuthPropertiesProperty.

Parameters:

  • auth_code_url (String, nil) (defaults to: nil)

    The authorization code url required to redirect to SAP Login Page to fetch authorization code for OAuth type authentication.

  • o_auth_scopes (Array<String>, nil) (defaults to: nil)

    The OAuth scopes required for OAuth type authentication.

  • token_url (String, nil) (defaults to: nil)

    The token url required to fetch access/refresh tokens using authorization code and also to refresh expired access token using refresh token.



1935
1936
1937
1938
1939
1940
1941
1942
# File 'app_flow/cfn_connector_profile.rb', line 1935

def initialize(auth_code_url: nil, o_auth_scopes: nil, token_url: nil)
  @auth_code_url = auth_code_url
  Jsii::Type.check_type(@auth_code_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authCodeUrl") unless @auth_code_url.nil?
  @o_auth_scopes = o_auth_scopes
  Jsii::Type.check_type(@o_auth_scopes, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "oAuthScopes") unless @o_auth_scopes.nil?
  @token_url = token_url
  Jsii::Type.check_type(@token_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tokenUrl") unless @token_url.nil?
end

Instance Attribute Details

#auth_code_urlString? (readonly)

The authorization code url required to redirect to SAP Login Page to fetch authorization code for OAuth type authentication.



1948
1949
1950
# File 'app_flow/cfn_connector_profile.rb', line 1948

def auth_code_url
  @auth_code_url
end

#o_auth_scopesArray<String>? (readonly)

The OAuth scopes required for OAuth type authentication.



1953
1954
1955
# File 'app_flow/cfn_connector_profile.rb', line 1953

def o_auth_scopes
  @o_auth_scopes
end

#token_urlString? (readonly)

The token url required to fetch access/refresh tokens using authorization code and also to refresh expired access token using refresh token.



1958
1959
1960
# File 'app_flow/cfn_connector_profile.rb', line 1958

def token_url
  @token_url
end

Class Method Details

.jsii_propertiesObject



1960
1961
1962
1963
1964
1965
1966
# File 'app_flow/cfn_connector_profile.rb', line 1960

def self.jsii_properties
  {
    :auth_code_url => "authCodeUrl",
    :o_auth_scopes => "oAuthScopes",
    :token_url => "tokenUrl",
  }
end

Instance Method Details

#to_jsiiObject



1968
1969
1970
1971
1972
1973
1974
1975
1976
# File 'app_flow/cfn_connector_profile.rb', line 1968

def to_jsii
  result = {}
  result.merge!({
    "authCodeUrl" => @auth_code_url,
    "oAuthScopes" => @o_auth_scopes,
    "tokenUrl" => @token_url,
  })
  result.compact
end