jithu
jithu

Reputation: 11

Can we integrate keycloak to add security to a asp.net web application?

As part of a project we have integrated keycloak with our .net core application, but we have a legacy system which is a asp.net web application, It have its own login screen whenever a user logs in it should fetch the username and password and validate against Keycloak.

The approach we are trying to do is.

Is this way of giving authentication is correct?

Need some suggestion!!!

Upvotes: 0

Views: 2204

Answers (1)

bdparrish
bdparrish

Reputation: 2764

Take a look at their basic authentication example...

https://github.com/keycloak/keycloak/tree/master/examples/basic-auth

As stated in the comments. Returning JSON with all of the username and passwords is NOT secure, hashed/salted/or not, it doesn't matter.

Upvotes: 0

Related Questions