// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNetCore.Authentication.Google;
using Microsoft.AspNetCore.Http;
namespace Microsoft.AspNetCore.Builder
{
///
/// Configuration options for .
///
public class GoogleOptions : OAuthOptions
{
///
/// Initializes a new .
///
public GoogleOptions()
{
AuthenticationScheme = GoogleDefaults.AuthenticationScheme;
DisplayName = AuthenticationScheme;
CallbackPath = new PathString("/signin-google");
AuthorizationEndpoint = GoogleDefaults.AuthorizationEndpoint;
TokenEndpoint = GoogleDefaults.TokenEndpoint;
UserInformationEndpoint = GoogleDefaults.UserInformationEndpoint;
Scope.Add("openid");
Scope.Add("profile");
Scope.Add("email");
}
///
/// access_type. Set to 'offline' to request a refresh token.
///
public string AccessType { get; set; }
}
}