Base solution for your next web application

Activities of "krishna"

we are actually trying to interate FIDO2 passwordless login with our ThinC-AUTH Biometric token.

we have got the actual FIDO2 functionality integrated and are able to use it as a 2nd factor device. since we have biometrics on it we are trying to privide passwordless experience similar to

https://www.microsoft.com/en-us/microsoft-365/blog/2018/11/20/sign-in-to-your-microsoft-account-without-a-password-using-windows-hello-or-a-security-key/

thanks for the reference, will try that out.

Hi, Yes we are looking for session establishment with only given email address/username by check in database, instead of using both username and password in AspNet Biolerplate to provide passwordless authentication. We are using asp.net core with angular, Is there any way to authenticate user with only emailaddress/username?

Hi alper,

In the below method, do we need to give password mandatory? If yes then its not related to passwordless authentication right?

public override Task<bool> TryAuthenticateAsync(string userNameOrEmailAddress, string plainPassword, Tenant tenant) { return true; }

Hi alper, Tq for your reply. I have gone through the link, which you have shared, but i think its not related to my requirement. I have a requirement to authenticate a user without password by enter only username, for that in asp.net zero is there any possibility, if yes please share that link.

Tq

Hi, We have requirement to implement passwordless authentication (Using UsernameOrEmailAddress) in our project. We have tried but we are facing problem to establish session, So please provide neccessary steps/docs to implement passwordless authentication .

Hi ,

I am using hhhh client and using below code to get accesstoken and refreshtoken.

var discoveryClient = await DiscoveryClient.GetAsync("http://localhost:5000");
var httpHandler = new HttpClientHandler();
httpHandler.CookieContainer.Add(new Uri("http://localhost:5000/"), new Cookie(MultiTenancyConsts.TenantIdResolveKey, "1"));
// request the token from the Auth server
var tokenClient = new TokenClient(discoveryClient.TokenEndpoint, "hhhh", "abcdeff-xxxxxxxx-ooiijkjkjjjjjjjjjjjj", httpHandler);
var response = await tokenClient.RequestClientCredentialsAsync("default-api");

Hi ,

We have set AllowOfflineAccess =true in appsettings.json of MVC project, eventhough we are unable to get RefreshToken, its showing as null. Please find below settings which we set in appsettings.json for IdentityServer

{
"IdentityServer": {
    "IsEnabled": "true",
    "Clients": [
      {
        "ClientId": "xxxx",
        "AllowedGrantTypes": [ "password" ],
        "ClientSecrets": [
          {
            "Value": "abcdeff-xxxxxxxx-ooiijkjkjjjjjjjjjjjj"
          }
        ],
        "AllowedScopes": [ "default-api" ]
      },
      {
        "ClientId": "hhhh",
        "ClientName": "hggggggggggg",
        "AllowedGrantTypes": [ "hybrid", "client_credentials" ],
        "RequireConsent": "false",
        "ClientSecrets": [
          {
           "Value": "abcdeff-xxxxxxxx-ooiijkjkjjjjjjjjjjjj"
          }
        ],
        "RedirectUris": [ "http://localhost:5000/account/login/" ],
        "PostLogoutRedirectUris": [ "http://localhost:5000/account/logout/" ],
        "AllowedScopes": [ "openid", "profile", "email", "phone", "default-api" ],
        "AllowOfflineAccess": "true",
        "AllowedCorsOrigins": "http://ccccccasaaaaaa",
        "AllowAccessTokensViaBrowser": "true"
      }
    ]
  },
}

Please see once and suggest any settings we need to modify/ set.

Hi Maliming,

We enabled IdentityServer in our application and able to get accesstoken by using TokenClient, but we are getting Refreshtoken as null. Is there any configuration settings need in appseetings.json file to get refreshtoken?

Thanks.

Hi,

We are trying to implement accesstoken and refreshtoken functionality in our project .. like

  1. Generate accesstoken and refreshtoken using Identityserver in Authenticate(),
  2. Validate accesstoken
  3. Regenerate accesstoken using refreshtoken when accesstoken is expired.

Our project is Asp.NetCore With MVC and Jquery. Can you please send any doc or link related to our requirement.

Thanks.

Hi maliming,

I have upgraged Abp.RedisCache package from 3.1.2 to 3.2.0 and more , later i got different error like

System.TypeLoadException: 'Method 'GetAsync' in type 'Abp.BackgroundJobsStore' from assembly 'Abp.Zero.Common, Version=3.1.2.0', Culture=netural, PublicKeyToken=null' does not have an implementation.

at app.UseAbp(options => { options.UseAbpRequestLocalization = false; //used below: UseAbpRequestLocalization });

Showing 1 to 10 of 13 entries