nettoyages

main
Paul Schneider 10 years ago
parent fa34ed249b
commit ab950ed3aa
4 changed files with 8 additions and 4 deletions

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

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

@ -51,10 +51,10 @@ namespace Yavsc.Controllers
[HttpGet("~/signin")] [HttpGet("~/signin")]
public ActionResult SignIn(string returnUrl = null) public ActionResult SignIn(string returnUrl = null)
{ {
_logger.LogWarning($"Singin wanted: returnUrl: {returnUrl} ");
// Note: the "returnUrl" parameter corresponds to the endpoint the user agent // Note: the "returnUrl" parameter corresponds to the endpoint the user agent
// will be redirected to after a successful authentication and not // 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 return View("SignIn", new LoginViewModel
{ {
ReturnUrl = returnUrl, ReturnUrl = returnUrl,

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

Loading…