Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auditing #29

Open
Shaggs opened this issue Oct 14, 2023 · 12 comments
Open

auditing #29

Shaggs opened this issue Oct 14, 2023 · 12 comments

Comments

@Shaggs
Copy link

Shaggs commented Oct 14, 2023

happy to do the code.

looking at creating an audit log e.g multiple cards for 1 login.

would look at using the ring / card name that is linked to the UI

I'm close in RingServiceHost, i have found
username = Marshal.PtrToStringAnsi(buffer) + "\\" + username;

This prints out the logged in user but not the card ID or card name.

@maz-net-au
Copy link
Collaborator

maz-net-au commented Oct 14, 2023 via email

@Shaggs
Copy link
Author

Shaggs commented Oct 14, 2023

Great, in the registration UI i have put name so happy to use that if the card ID is linked to that name or card id either way, greatly appreciated.

@maz-net-au
Copy link
Collaborator

maz-net-au commented Oct 14, 2023 via email

@Shaggs
Copy link
Author

Shaggs commented Oct 14, 2023 via email

@maz-net-au
Copy link
Collaborator

maz-net-au commented Oct 14, 2023 via email

@Shaggs
Copy link
Author

Shaggs commented Oct 14, 2023 via email

@maz-net-au
Copy link
Collaborator

maz-net-au commented Oct 14, 2023 via email

@maz-net-au
Copy link
Collaborator

Did you get anywhere with this? My work has blocked the IPC over loopback so I'm going to be making some changes to the code this weekend anyway.
Did you want me to put in some logging for you?
Any features I build are going to be in the old WinForms CredentialRegistration management UI. If you want to add the ability to register multiple NFC tags with the NFCRing.UI.View, you would have to do that yourself.

At the moment, if you wanted to register multiple rings, each one would need to enter the username and password for the Windows account (even if you're using the same account) because the password is encrypted using information from the NFC token.

@Shaggs
Copy link
Author

Shaggs commented Oct 20, 2023 via email

@Shaggs
Copy link
Author

Shaggs commented Jan 11, 2024

Did you get anywhere with this? My work has blocked the IPC over loopback so I'm going to be making some changes to the code this weekend anyway. Did you want me to put in some logging for you? Any features I build are going to be in the old WinForms CredentialRegistration management UI. If you want to add the ability to register multiple NFC tags with the NFCRing.UI.View, you would have to do that yourself.

At the moment, if you wanted to register multiple rings, each one would need to enter the username and password for the Windows account (even if you're using the same account) because the password is encrypted using information from the NFC token.

Hi Maz,
I have found the code in where the Session state is changed in the NFCRingServiceHost. This gets the current logged in user but it would be great to get the card ID or "Friendly name".

After some testing doing the way i was the first time means any tag scanned was getting logged but was not acuate if that card was successful to login.

All I need is a hand to get the Card ID into the NFCRingServiceHost.cs file.

@maz-net-au
Copy link
Collaborator

maz-net-au commented Jan 12, 2024 via email

@Shaggs
Copy link
Author

Shaggs commented Jan 12, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants