コード例 #1
0
 /// <summary>
 ///     Initializes a new <see cref="OrcidAuthenticationOptions" />
 /// </summary>
 public OrcidAuthenticationOptions()
     : base("Orcid")
 {
     Caption            = Constants.DefaultAuthenticationType;
     CallbackPath       = new PathString("/signin-orcid");
     AuthenticationMode = AuthenticationMode.Passive;
     Scope = new List <string>();
     BackchannelTimeout = TimeSpan.FromSeconds(60);
     Endpoints          = new OrcidAuthenticationEndpoints
     {
         AuthorizationEndpoint = OrcidAuthenticationEndpoints.Default.AuthorizationEndPoint,
         TokenEndpoint         = OrcidAuthenticationEndpoints.Default.TokenEndpoint,
         ApiEndpoint           = OrcidAuthenticationEndpoints.Default.ApiEndpoint
     };
 }
コード例 #2
0
		/// <summary>
		///     Initializes a new <see cref="OrcidAuthenticationOptions" />
		/// </summary>
		public OrcidAuthenticationOptions()
			: base("Orcid")
		{
			Caption = Constants.DefaultAuthenticationType;
			CallbackPath = new PathString("/signin-orcid");
			AuthenticationMode = AuthenticationMode.Passive;
			Scope = new List<string>();
			BackchannelTimeout = TimeSpan.FromSeconds(60);
			Endpoints = new OrcidAuthenticationEndpoints
			{
				AuthorizationEndpoint = OrcidAuthenticationEndpoints.Default.AuthorizationEndPoint,
				TokenEndpoint = OrcidAuthenticationEndpoints.Default.TokenEndpoint,
				ApiEndpoint = OrcidAuthenticationEndpoints.Default.ApiEndpoint
			};
		}