/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using System;
using System.Collections.Generic;
namespace Tizen.Account.OAuth2
{
///
/// Abstract wrapper class containing OAuth 2.0 request parameters for requesting an access token.
///
/// 3
public abstract class TokenRequest
{
///
/// The Grant type
///
/// 3
public abstract string GrantType { get; }
///
/// The client credentials
///
/// 3
public ClientCredentials ClientSecrets { get; set; }
///
/// The access token end point URL.
///
/// 3
public Uri TokenEndpoint { get; set; }
///
/// The redirection endpoint of the auhorization flow.
///
/// 3
public Uri RedirectionEndPoint { get; set; }
///
/// The scope of the access request as described by https://tools.ietf.org/html/rfc6749#section-3.3
///
/// 3
public IEnumerable Scopes { get; set; }
///
/// Custom key-value parameters to be sent to the server
///
/// 3
public IEnumerable> CustomData { get; set; }
///
/// Client authentication scheme. Default is Basic
///
/// 3
public AuthenticationScheme AuthenticationScheme { get; set; } = AuthenticationScheme.Basic;
///
/// The client's state which is maintained between request and response.
///
/// 3
public string State { get; set; }
}
}