39 lines
1.3 KiB
C#
39 lines
1.3 KiB
C#
// ------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
|
|
// ------------------------------------------------------------
|
|
|
|
using Microsoft.OData.Edm.Vocabularies;
|
|
using Microsoft.OpenApi.OData.Edm;
|
|
|
|
namespace Microsoft.OpenApi.OData.Vocabulary.Authorization
|
|
{
|
|
/// <summary>
|
|
/// Complex type 'Org.OData.Authorization.V1.OAuth2Implicit'
|
|
/// </summary>
|
|
internal class OAuth2Implicit : OAuthAuthorization
|
|
{
|
|
/// <summary>
|
|
/// Authorization URL.
|
|
/// </summary>
|
|
public string AuthorizationUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets the OAuth2 type.
|
|
/// </summary>
|
|
public override OAuth2Type OAuth2Type => OAuth2Type.Implicit;
|
|
|
|
/// <summary>
|
|
/// Init <see cref="OAuth2Implicit"/>.
|
|
/// </summary>
|
|
/// <param name="record">the input record.</param>
|
|
public override void Initialize(IEdmRecordExpression record)
|
|
{
|
|
// base checked.
|
|
base.Initialize(record);
|
|
|
|
// AuthorizationUrl
|
|
AuthorizationUrl = record.GetString("AuthorizationUrl");
|
|
}
|
|
}
|
|
} |