Class: Azure::Web::Mgmt::V2018_02_01::Models::SiteAuthSettings
- Inherits:
-
ProxyOnlyResource
- Object
- ProxyOnlyResource
- Azure::Web::Mgmt::V2018_02_01::Models::SiteAuthSettings
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb
Overview
Configuration settings for the Azure App Service Authentication / Authorization feature.
Instance Attribute Summary collapse
-
#additional_login_params ⇒ Array<String>
authorization endpoint when a user logs in.
-
#allowed_audiences ⇒ Array<String>
validating JWTs issued by Azure Active Directory.
-
#allowed_external_redirect_urls ⇒ Array<String>
of logging in or logging out of the app.
-
#client_id ⇒ String
as the client_id.
-
#client_secret ⇒ String
(in Azure Active Directory, this is also referred to as the Key).
-
#default_provider ⇒ BuiltInAuthenticationProvider
provider to use when multiple providers are configured.
-
#enabled ⇒ Boolean
Authorization feature is enabled for the current app; otherwise,
false
. -
#facebook_app_id ⇒ String
This setting is required for enabling Facebook Login.
-
#facebook_app_secret ⇒ String
Login.
-
#facebook_oauth_scopes ⇒ Array<String>
part of Facebook Login authentication.
-
#google_client_id ⇒ String
application.
-
#google_client_secret ⇒ String
application.
-
#google_oauth_scopes ⇒ Array<String>
part of Google Sign-In authentication.
-
#issuer ⇒ String
entity which issues access tokens for this application.
-
#microsoft_account_client_id ⇒ String
used for authentication.
-
#microsoft_account_client_secret ⇒ String
app used for authentication.
-
#microsoft_account_oauth_scopes ⇒ Array<String>
part of Microsoft Account authentication.
-
#runtime_version ⇒ String
Authorization feature in use for the current app.
-
#token_refresh_extension_hours ⇒ Float
a session token can be used to call the token refresh API.
-
#token_store_enabled ⇒ Boolean
security tokens that are obtained during login flows; otherwise,
false
. -
#twitter_consumer_key ⇒ String
used for sign-in.
-
#twitter_consumer_secret ⇒ String
application used for sign-in.
-
#unauthenticated_client_action ⇒ UnauthenticatedClientAction
unauthenticated client attempts to access the app.
-
#validate_issuer ⇒ Boolean
a valid HTTPS url and be validated as such.
Attributes inherited from ProxyOnlyResource
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for SiteAuthSettings class as Ruby Hash.
Instance Attribute Details
#additional_login_params ⇒ Array<String>
authorization endpoint when a user logs in. Each parameter must be in the form “key=value”.
102 103 104 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 102 def additional_login_params @additional_login_params end |
#allowed_audiences ⇒ Array<String>
validating JWTs issued by Azure Active Directory. Note that the ClientID
value is always considered an allowed audience, regardless of this setting.
97 98 99 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 97 def allowed_audiences @allowed_audiences end |
#allowed_external_redirect_urls ⇒ Array<String>
of logging in or logging out of the app. Note that the query string part of the URL is ignored. This is an advanced setting typically only needed by Windows Store application backends. Note that URLs within the current domain are always implicitly allowed.
44 45 46 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 44 def allowed_external_redirect_urls @allowed_external_redirect_urls end |
#client_id ⇒ String
as the client_id. This setting is required for enabling OpenID Connection authentication with Azure Active Directory or other 3rd party OpenID Connect providers. More information on OpenID Connect: openid.net/specs/openid-connect-core-1_0.html
67 68 69 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 67 def client_id @client_id end |
#client_secret ⇒ String
(in Azure Active Directory, this is also referred to as the Key). This setting is optional. If no client secret is configured, the OpenID Connect implicit auth flow is used to authenticate end users. Otherwise, the OpenID Connect Authorization Code Flow is used to authenticate end users. More information on OpenID Connect: openid.net/specs/openid-connect-core-1_0.html
77 78 79 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 77 def client_secret @client_secret end |
#default_provider ⇒ BuiltInAuthenticationProvider
provider to use when multiple providers are configured. This setting is only needed if multiple providers are configured and the unauthenticated client action is set to “RedirectToLoginPage”. Possible values include: ‘AzureActiveDirectory’, ‘Facebook’, ‘Google’, ‘MicrosoftAccount’, ‘Twitter’
53 54 55 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 53 def default_provider @default_provider end |
#enabled ⇒ Boolean
Authorization feature is enabled for the current app; otherwise, false
.
19 20 21 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 19 def enabled @enabled end |
#facebook_app_id ⇒ String
This setting is required for enabling Facebook Login. Facebook Login documentation: developers.facebook.com/docs/facebook-login
130 131 132 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 130 def facebook_app_id @facebook_app_id end |
#facebook_app_secret ⇒ String
Login. This setting is required for enabling Facebook Login. Facebook Login documentation: developers.facebook.com/docs/facebook-login
137 138 139 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 137 def facebook_app_secret @facebook_app_secret end |
#facebook_oauth_scopes ⇒ Array<String>
part of Facebook Login authentication. This setting is optional. Facebook Login documentation: developers.facebook.com/docs/facebook-login
144 145 146 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 144 def facebook_oauth_scopes @facebook_oauth_scopes end |
#google_client_id ⇒ String
application. This setting is required for enabling Google Sign-In. Google Sign-In documentation: developers.google.com/identity/sign-in/web/
109 110 111 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 109 def google_client_id @google_client_id end |
#google_client_secret ⇒ String
application. This setting is required for enabling Google Sign-In. Google Sign-In documentation: developers.google.com/identity/sign-in/web/
116 117 118 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 116 def google_client_secret @google_client_secret end |
#google_oauth_scopes ⇒ Array<String>
part of Google Sign-In authentication. This setting is optional. If not specified, “openid”, “profile”, and “email” are used as default scopes. Google Sign-In documentation: developers.google.com/identity/sign-in/web/
124 125 126 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 124 def google_oauth_scopes @google_oauth_scopes end |
#issuer ⇒ String
entity which issues access tokens for this application. When using Azure Active Directory, this value is the URI of the directory tenant, e.g. sts.windows.net/tenant-guid/. This URI is a case-sensitive identifier for the token issuer. More information on OpenID Connect Discovery: openid.net/specs/openid-connect-discovery-1_0.html
86 87 88 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 86 def issuer @issuer end |
#microsoft_account_client_id ⇒ String
used for authentication. This setting is required for enabling Microsoft Account authentication. Microsoft Account OAuth documentation: dev.onedrive.com/auth/msa_oauth.htm
163 164 165 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 163 def microsoft_account_client_id @microsoft_account_client_id end |
#microsoft_account_client_secret ⇒ String
app used for authentication. This setting is required for enabling Microsoft Account authentication. Microsoft Account OAuth documentation: dev.onedrive.com/auth/msa_oauth.htm
170 171 172 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 170 def microsoft_account_client_secret @microsoft_account_client_secret end |
#microsoft_account_oauth_scopes ⇒ Array<String>
part of Microsoft Account authentication. This setting is optional. If not specified, “wl.basic” is used as the default scope. Microsoft Account Scopes and permissions documentation: msdn.microsoft.com/en-us/library/dn631845.aspx
178 179 180 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 178 def microsoft_account_oauth_scopes @microsoft_account_oauth_scopes end |
#runtime_version ⇒ String
Authorization feature in use for the current app. The setting in this value can control the behavior of certain features in the Authentication / Authorization module.
25 26 27 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 25 def runtime_version @runtime_version end |
#token_refresh_extension_hours ⇒ Float
a session token can be used to call the token refresh API. The default is 72 hours.
58 59 60 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 58 def token_refresh_extension_hours @token_refresh_extension_hours end |
#token_store_enabled ⇒ Boolean
security tokens that are obtained during login flows; otherwise, false
. The default is false
.
36 37 38 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 36 def token_store_enabled @token_store_enabled end |
#twitter_consumer_key ⇒ String
used for sign-in. This setting is required for enabling Twitter Sign-In. Twitter Sign-In documentation: dev.twitter.com/web/sign-in
150 151 152 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 150 def twitter_consumer_key @twitter_consumer_key end |
#twitter_consumer_secret ⇒ String
application used for sign-in. This setting is required for enabling Twitter Sign-In. Twitter Sign-In documentation: dev.twitter.com/web/sign-in
156 157 158 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 156 def twitter_consumer_secret @twitter_consumer_secret end |
#unauthenticated_client_action ⇒ UnauthenticatedClientAction
unauthenticated client attempts to access the app. Possible values include: ‘RedirectToLoginPage’, ‘AllowAnonymous’
30 31 32 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 30 def unauthenticated_client_action @unauthenticated_client_action end |
#validate_issuer ⇒ Boolean
a valid HTTPS url and be validated as such.
90 91 92 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 90 def validate_issuer @validate_issuer end |
Class Method Details
.mapper ⇒ Object
Mapper for SiteAuthSettings class as Ruby Hash. This will be used for serialization/deserialization.
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 185 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'SiteAuthSettings', type: { name: 'Composite', class_name: 'SiteAuthSettings', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, kind: { client_side_validation: true, required: false, serialized_name: 'kind', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, enabled: { client_side_validation: true, required: false, serialized_name: 'properties.enabled', type: { name: 'Boolean' } }, runtime_version: { client_side_validation: true, required: false, serialized_name: 'properties.runtimeVersion', type: { name: 'String' } }, unauthenticated_client_action: { client_side_validation: true, required: false, serialized_name: 'properties.unauthenticatedClientAction', type: { name: 'Enum', module: 'UnauthenticatedClientAction' } }, token_store_enabled: { client_side_validation: true, required: false, serialized_name: 'properties.tokenStoreEnabled', type: { name: 'Boolean' } }, allowed_external_redirect_urls: { client_side_validation: true, required: false, serialized_name: 'properties.allowedExternalRedirectUrls', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, default_provider: { client_side_validation: true, required: false, serialized_name: 'properties.defaultProvider', type: { name: 'Enum', module: 'BuiltInAuthenticationProvider' } }, token_refresh_extension_hours: { client_side_validation: true, required: false, serialized_name: 'properties.tokenRefreshExtensionHours', type: { name: 'Double' } }, client_id: { client_side_validation: true, required: false, serialized_name: 'properties.clientId', type: { name: 'String' } }, client_secret: { client_side_validation: true, required: false, serialized_name: 'properties.clientSecret', type: { name: 'String' } }, issuer: { client_side_validation: true, required: false, serialized_name: 'properties.issuer', type: { name: 'String' } }, validate_issuer: { client_side_validation: true, required: false, serialized_name: 'properties.validateIssuer', type: { name: 'Boolean' } }, allowed_audiences: { client_side_validation: true, required: false, serialized_name: 'properties.allowedAudiences', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, additional_login_params: { client_side_validation: true, required: false, serialized_name: 'properties.additionalLoginParams', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, google_client_id: { client_side_validation: true, required: false, serialized_name: 'properties.googleClientId', type: { name: 'String' } }, google_client_secret: { client_side_validation: true, required: false, serialized_name: 'properties.googleClientSecret', type: { name: 'String' } }, google_oauth_scopes: { client_side_validation: true, required: false, serialized_name: 'properties.googleOAuthScopes', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, facebook_app_id: { client_side_validation: true, required: false, serialized_name: 'properties.facebookAppId', type: { name: 'String' } }, facebook_app_secret: { client_side_validation: true, required: false, serialized_name: 'properties.facebookAppSecret', type: { name: 'String' } }, facebook_oauth_scopes: { client_side_validation: true, required: false, serialized_name: 'properties.facebookOAuthScopes', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, twitter_consumer_key: { client_side_validation: true, required: false, serialized_name: 'properties.twitterConsumerKey', type: { name: 'String' } }, twitter_consumer_secret: { client_side_validation: true, required: false, serialized_name: 'properties.twitterConsumerSecret', type: { name: 'String' } }, microsoft_account_client_id: { client_side_validation: true, required: false, serialized_name: 'properties.microsoftAccountClientId', type: { name: 'String' } }, microsoft_account_client_secret: { client_side_validation: true, required: false, serialized_name: 'properties.microsoftAccountClientSecret', type: { name: 'String' } }, microsoft_account_oauth_scopes: { client_side_validation: true, required: false, serialized_name: 'properties.microsoftAccountOAuthScopes', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end |