HNHacker News
TopNewBestAskShowJobs

biarity

64 karma · joined January 1, 2018

submissionscomments
biarity··on Show HN: Lipreading with Deep Learning
We're getting there!
biarity··on Look for the duct tape
Don't any of the langauges you support have options to keep all dependencies up to date? Eg. By putting wildcards in version numbers
biarity··on A todo list for new ASP.NET Core projects
I think your method is much cleaner actually. Just updated :)!
biarity··on A todo list for new ASP.NET Core projects
I agree! I find this especially useful when I have to set things like a UserId associated with an entity or with more complex entities where some data comes from injected services. I know you can create a service that handles creating the entity as an abstraction, but that gets repetitive and adds complexity in large projects. I might actually add this my article :)!
biarity··on A todo list for new ASP.NET Core projects
I myself really dislike that piece of code (searching in exception strings isn't secure for many reasons, for example someone could use this to reverse-engineer information about my database). But the only alternative that comes to mind is to check if an entity exists before attempting to create it - which I don't like because it leads to repetitive code in large projects (and I might forget to write checks). Any other ideas?
biarity··on A todo list for new ASP.NET Core projects
Yes, that is the usual way of doing it. However, the point of this post was to showcase some ways of reducing duplicate code in large projects. Doing it normally (by checking if the entity already exists) can get repetitive if you have many controllers/entities. If you know of a better way of doing this, I'd be happy to update my article :)
biarity··on A todo list for new ASP.NET Core projects
I know, I just couldn't find a cross-db solution since I can't seem to find any standardized error codes in the exception. Do you know of a better way of doing this?
biarity··on A todo list for new ASP.NET Core projects
Well the server was going to return an error anyways, instead of checking if the entity exists then trying to create it, you just go ahead and try to create it. This way if the entity doesn't exist then you've saved a trip to the database. Otherwise you return the same error. And given the server is a black box, how would you "interrupt execution"?
biarity··on Cierge – passwordless authentication
Cierge also uses magic links, making the code invisible to keyloggers. You can configure it to use magic links exclusively.
biarity··on Cierge – passwordless authentication
Wouldn't that also present an issue with usual password logins?
biarity··on Cierge – passwordless authentication
Cierge is stateless so it doesn't matter if you have 100 login tabs open, it'll always work - and once the code is entered it is automatically invalidated.
biarity··on Cierge – passwordless authentication
Cierge is an OpenID Connect sever (which is based on OAuth 2), so your website would interact with it just as it would with non-passwordless solutions.
biarity··on Cierge – Email-based passwordless authentication service
Hi there! Cierge is an OpenID Connect server that handles user signup, login, profiles, management, social logins, and more. Instead of storing passwords, Cirege uses magic links/codes and external logins to authenticate your users. You can find a good list of FAQs on our our GitHub page or try a demo here: https://cierge.azurewebsites.net
biarity··on Show HN: Easy magic-link authentication – Cierge
Sadly nothing out of the box for AD. However, Cierge uses OpenIddict, so this might be helpful: https://stackoverflow.com/questions/38470683/is-it-possible-...
biarity··on Show HN: Easy magic-link authentication – Cierge
Hi there! Cierge is an OpenID Connect server that handles user signup, login, profiles, management, social logins, and more. Instead of storing passwords, Cirege uses magic links/codes and external logins to authenticate your users.

You can find a good list of FAQs on our our GitHub page or try a demo here: https://cierge.azurewebsites.net