nettoyages

This commit is contained in:
2016-06-07 15:58:14 +02:00
parent fa34ed249b
commit ab950ed3aa
4 changed files with 8 additions and 4 deletions

View File

@ -22,7 +22,6 @@ namespace OAuth.AspNet.AuthServer
{
ApplicationStore = applicationStore;
}
IServiceScope serviceScope;
public IApplicationStore ApplicationStore { get; private set;}
#region non-Public Members

View File

@ -4,7 +4,6 @@ using Microsoft.AspNet.Builder;
using Microsoft.AspNet.DataProtection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.WebEncoders;
using Microsoft.Extensions.DependencyInjection;
using System;
namespace OAuth.AspNet.AuthServer

View File

@ -51,10 +51,10 @@ namespace Yavsc.Controllers
[HttpGet("~/signin")]
public ActionResult SignIn(string returnUrl = null)
{
_logger.LogWarning($"Singin wanted: returnUrl: {returnUrl} ");
// Note: the "returnUrl" parameter corresponds to the endpoint the user agent
// will be redirected to after a successful authentication and not
// the redirect_uri of the requesting client application.
// the redirect_uri of the requesting client application against the third
// party identity provider.
return View("SignIn", new LoginViewModel
{
ReturnUrl = returnUrl,

View File

@ -5,6 +5,7 @@ using System.Threading.Tasks;
using Microsoft.AspNet.Authentication.OAuth;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Infrastructure;
using Yavsc.Models.Booking;
namespace Yavsc.Models
@ -21,6 +22,11 @@ namespace Yavsc.Models
builder.Entity<Contact>().HasKey(x => new { x.OwnerId, x.UserId });
builder.Entity<BookQuery>().Property(x=>x.CreationDate).HasDefaultValueSql("LOCALTIMESTAMP");
}
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseNpgsql(Startup.ConnectionString);
}
public DbSet<Application> Applications { get; set; }
/// <summary>
/// Activities referenced on this site