Class: AWSCDK::AppFlow::CfnConnectorProfile::OAuthPropertiesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppFlow::CfnConnectorProfile::OAuthPropertiesProperty
- Defined in:
- app_flow/cfn_connector_profile.rb
Overview
The OAuth properties required for OAuth type authentication.
Instance Attribute Summary collapse
-
#auth_code_url ⇒ String?
readonly
The authorization code url required to redirect to SAP Login Page to fetch authorization code for OAuth type authentication.
-
#o_auth_scopes ⇒ Array<String>?
readonly
The OAuth scopes required for OAuth type authentication.
-
#token_url ⇒ String?
readonly
The token url required to fetch access/refresh tokens using authorization code and also to refresh expired access token using refresh token.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(auth_code_url: nil, o_auth_scopes: nil, token_url: nil) ⇒ OAuthPropertiesProperty
constructor
A new instance of OAuthPropertiesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(auth_code_url: nil, o_auth_scopes: nil, token_url: nil) ⇒ OAuthPropertiesProperty
Returns a new instance of OAuthPropertiesProperty.
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_url ⇒ String? (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_scopes ⇒ Array<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_url ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |