Class: Azure::Web::Mgmt::V2018_02_01::Models::SiteAuthSettings

Inherits:
ProxyOnlyResource show all
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

Attributes inherited from ProxyOnlyResource

#id, #kind, #name, #type

Class Method Summary collapse

Instance Attribute Details

#additional_login_paramsArray<String>

authorization endpoint when a user logs in. Each parameter must be in the form “key=value”.

Returns:

  • (Array<String>)

    Login parameters to send to the OpenID Connect



102
103
104
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 102

def 
  
end

#allowed_audiencesArray<String>

validating JWTs issued by Azure Active Directory. Note that the ClientID value is always considered an allowed audience, regardless of this setting.

Returns:

  • (Array<String>)

    Allowed audience values to consider when



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_urlsArray<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.

Returns:

  • (Array<String>)

    External URLs that can be redirected to as part



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_idString

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

Returns:

  • (String)

    The Client ID of this relying party application, known



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_secretString

(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

Returns:

  • (String)

    The Client Secret of this relying party application



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_providerBuiltInAuthenticationProvider

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’

Returns:



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

#enabledBoolean

Authorization feature is enabled for the current app; otherwise, false.

Returns:

  • (Boolean)

    true if the Authentication /



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_idString

This setting is required for enabling Facebook Login. Facebook Login documentation: developers.facebook.com/docs/facebook-login

Returns:

  • (String)

    The App ID of the Facebook app used for 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_secretString

Login. This setting is required for enabling Facebook Login. Facebook Login documentation: developers.facebook.com/docs/facebook-login

Returns:

  • (String)

    The App Secret of the Facebook app used for Facebook



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_scopesArray<String>

part of Facebook Login authentication. This setting is optional. Facebook Login documentation: developers.facebook.com/docs/facebook-login

Returns:

  • (Array<String>)

    The OAuth 2.0 scopes that will be requested as



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_idString

application. This setting is required for enabling Google Sign-In. Google Sign-In documentation: developers.google.com/identity/sign-in/web/

Returns:

  • (String)

    The OpenID Connect Client ID for the Google 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_secretString

application. This setting is required for enabling Google Sign-In. Google Sign-In documentation: developers.google.com/identity/sign-in/web/

Returns:

  • (String)

    The client secret associated with the Google 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_scopesArray<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/

Returns:

  • (Array<String>)

    The OAuth 2.0 scopes that will be requested as



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

#issuerString

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

Returns:

  • (String)

    The OpenID Connect Issuer URI that represents the



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_idString

used for authentication. This setting is required for enabling Microsoft Account authentication. Microsoft Account OAuth documentation: dev.onedrive.com/auth/msa_oauth.htm

Returns:

  • (String)

    The OAuth 2.0 client ID that was created for the app



163
164
165
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 163

def 
  
end

#microsoft_account_client_secretString

app used for authentication. This setting is required for enabling Microsoft Account authentication. Microsoft Account OAuth documentation: dev.onedrive.com/auth/msa_oauth.htm

Returns:

  • (String)

    The OAuth 2.0 client secret that was created for the



170
171
172
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 170

def 
  
end

#microsoft_account_oauth_scopesArray<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

Returns:

  • (Array<String>)

    The OAuth 2.0 scopes that will be requested as



178
179
180
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/site_auth_settings.rb', line 178

def 
  
end

#runtime_versionString

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.

Returns:

  • (String)

    The RuntimeVersion of the Authentication /



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_hoursFloat

a session token can be used to call the token refresh API. The default is 72 hours.

Returns:

  • (Float)

    The number of hours after session token expiration that



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_enabledBoolean

security tokens that are obtained during login flows; otherwise, false. The default is false.

Returns:

  • (Boolean)

    true to durably store platform-specific



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_keyString

used for sign-in. This setting is required for enabling Twitter Sign-In. Twitter Sign-In documentation: dev.twitter.com/web/sign-in

Returns:

  • (String)

    The OAuth 1.0a consumer key of the Twitter application



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_secretString

application used for sign-in. This setting is required for enabling Twitter Sign-In. Twitter Sign-In documentation: dev.twitter.com/web/sign-in

Returns:

  • (String)

    The OAuth 1.0a consumer secret of the Twitter



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_actionUnauthenticatedClientAction

unauthenticated client attempts to access the app. Possible values include: ‘RedirectToLoginPage’, ‘AllowAnonymous’

Returns:



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_issuerBoolean

a valid HTTPS url and be validated as such.

Returns:

  • (Boolean)

    Gets a value indicating whether the issuer should be



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

.mapperObject

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