Skip to content

Enable Signin Event Logging #1179

Answered by neldreth2021
neldreth2021 asked this question in Q&A
Discussion options

You must be logged in to vote

I solved my own problem. For any potential usefulness to anyone else in the future I will add what I did below..

I set up my database according to this documentation: https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/adding-model?view=aspnetcore-5.0&tabs=visual-studio

I created this Middleware Class

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.Identity.Web;
using Application.Models;
using Application.Data;

namespace Application.Middleware
{
    // You may need to install the Microsoft.AspNetCore.Http.Abstractions package into your pro…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jmprieur
Comment options

@jennyf19
Comment options

Answer selected by jennyf19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants