Comments (8)
One of the sames shows something like this. It might help get you started./
from identityserver3.membershipreboot.
I'm not sure which sample you're referring to, but here's what I was thinking.
I could override the EmailEventHandler's Process method to include the call to write the Audit Trail entry. This would allow me to do it in 1 place, while retaining the existing functionality of the EmailEventHandler.
The one thing I'm not sure on, is how I could get the currently logged in UserID into the Audit Trail.
from identityserver3.membershipreboot.
Sorry, I thought this was opened in the core MR repo, but the sample I was thinking about is here: https://github.com/brockallen/BrockAllen.MembershipReboot/blob/master/samples/CustomizationsSample/CustomizationsSample/Customizations.cs#L130
from identityserver3.membershipreboot.
Ahhh I see what you've got there. That makes sense.
Is there a list of all events somewhere?
Does this have all the events used: https://github.com/brockallen/BrockAllen.MembershipReboot/blob/2f1e5d4b39e6f9a567eeca634665a1551615341e/src/BrockAllen.MembershipReboot/AccountService/UserAccountEvents.cs
In that sample I see you're using HttPContext, which means I should be able to retrieve information for the user if they're logged in. For login failures, I obviously can't give them who "failed", but that's fine.
from identityserver3.membershipreboot.
Yep that's all the events.
-Brock
On Mar 31, 2016, at 8:52 PM, parkinsona [email protected] wrote:
Ahhh I see what you've got there. That makes sense.
Is there a list of all events somewhere?
Does this have all the events used: https://github.com/brockallen/BrockAllen.MembershipReboot/blob/2f1e5d4b39e6f9a567eeca634665a1551615341e/src/BrockAllen.MembershipReboot/AccountService/UserAccountEvents.csIn that sample I see you're using HttPContext, which means I should be able to retrieve information for the user if they're logged in. For login failures, I obviously can't give them who "failed", but that's fine.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
from identityserver3.membershipreboot.
I have this kind of working now, but I have 2 questions
- Is it possible to write a handler for the UserAccountEvent class that will fire for all its children?
- In the sample you use: HttpContext.Current.Request.UserHostAddress. This keeps returning ::1. I tried returning claims from HttpContext, but the claim list was also empty. Am I missing something?
from identityserver3.membershipreboot.
I think I've worked out the answer to my 1st question.
The event handler will find the best match in the handlers that I have.
In my auditTrailHandlerClass I had a handler for both UserAccountEvent & PasswordChangedEvent. When I was changing the password, it was only firing the PasswordChangedEvent. To fire the UserAccountEvent I had to remove the handler for PasswordChangedEvent.
Is this only if the event handlers are within the same class?
PasswordChangedEvent is handled in the default EmailAccountEventsHandler and that has continued to work.
from identityserver3.membershipreboot.
I think I've got this worked out now.
from identityserver3.membershipreboot.
Related Issues (20)
- ReflectionTypeLoadException in ScopeRequirementMiddleware.cs HOT 11
- Configuring MR for sending emails HOT 5
- New Feature: Add HMAC-Based One-time Password (HOTP) and Time-based One-time Password (TOTP) support HOT 1
- Missing Method Exception UserAccountService.CreateAccount for External Provider HOT 14
- Setting up MRB with CustomUserDetails and IdentitySever HOT 4
- Handling 'RequireAccountVerification' when federating across multiple IdPs HOT 6
- Q: when extending model, also generate claims HOT 5
- Nuget package Install on ASP.NET 5 web app fails HOT 6
- Change the error message from "Account is closed" to "Account is inactive" HOT 1
- Login with username or email
- UTC offset applied twice to updated_at claim HOT 10
- adding identityserver3.membershipreboot package in aspnet 5 applications HOT 2
- Performance Query HOT 11
- Potential security issue: Authentication implementation leaks details about existing user accounts HOT 2
- Configuring MR for Authentication Audit Event Handler HOT 3
- The operation cannot be completed because the DbContext has been disposed. HOT 1
- Should unverified accounts return their claims when UserInfo is requested? HOT 5
- Adding new user via External Provider - saving their claims HOT 1
- Claims Being Dropped HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from identityserver3.membershipreboot.