Activities of "surajlokhandemmew"

i tried that , didn't work, creating a self signed certificate installed it with the key still there was same error. anyways what's the difference in both procedures? any security flaw?

it should be documented right? why giving me ref from SO, anyways site is working now will test thoroughly and let you know.

yes its there plz take remote access and let me know what's wrong so we can solve it

yes thhe file is there still getting same error. can you take remote access and solve as its on high priority now

Hi that file is there , please confirm i should be generating that using this righht? dotnet dev-certs https -v -ep openiddict.pfx -p 00000000-0000-0000-0000-000000000000 then i have followed same steps i had succesfully hosted same setup earlier , just missing some thing at this time or dont know

I hosted production version on cloud iis but now app is not starting getting following in log

Starting web host. 2024-03-03 12:14:52.873 +00:00 [FTL] Host terminated unexpectedly! Volo.Abp.AbpInitializationException: An error occurred during ConfigureServicesAsync phase of the module Volo.Abp.OpenIddict.AbpOpenIddictAspNetCoreModule, Volo.Abp.OpenIddict.AspNetCore, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details. ---> System.Security.Cryptography.CryptographicException: The system cannot find the file specified. at System.Security.Cryptography.X509Certificates.CertificatePal.FilterPFXStore(ReadOnlySpan1 rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags) at System.Security.Cryptography.X509Certificates.CertificatePal.FromBlobOrFile(ReadOnlySpan1 rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags) at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(String fileName, String password, X509KeyStorageFlags keyStorageFlags) at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(String fileName, String password) at Microsoft.Extensions.DependencyInjection.OpenIddictServerBuilderExtensions.AddProductionEncryptionAndSigningCertificate(OpenIddictServerBuilder builder, String fileName, String passPhrase) at MyDhobi.Web.MyDhobiWebModule.<>c.<PreConfigureServices>b__0_3(OpenIddictServerBuilder serverBuilder) in

**ABP Framework version: v8.0.0

UI Type: MVC

Database System: MongoDB

Tiered (for MVC) or Auth Server Separated (for Angular): no

Exception message and full stack trace: let me know if you need complete log**

Yes figured it out , is it documented anywhere??

Well i dont want to show webview of login page instead i am using connect/token api to get the token using below method

` Future&lt;AccessToken&gt; fetchAccessToken({
    required String username,
    required String password,
    required String grantType,
    required String clientId,
    required String clientSecret,
    required String scope,
  }) async {
    final response = await http.post(
      Uri.parse('$api/connect/token'),
      headers: &lt;String, String&gt;{
        'Content-Type': 'application/x-www-form-urlencoded',
      },
      body: {
        'username': username,
        'password': password,
        'grant_type': grantType,
        'client_id': clientId,
        'client_secret': clientSecret,
        'scope': scope,
      },
    );


   if (response.statusCode == 200) {
      print(response.body);
      final accessToken = AccessToken.fromJson(json.decode(response.body));
      await storeAccessToken(accessToken.accessToken, accessToken.expiresIn);
      await storeRefreshToken(accessToken.refreshToken);
      return accessToken;
    } else {
      throw Exception("Invalid username or password");
    }
  }

and trying to authorize api using this method

`  Future<http.Response> get(String url) async {
    String? token = await authViewModel.getValidAccessToken();
    return http.get(
      Uri.parse(url),
      headers: {
        'Authorization': 'Bearer $token',
      },
    );
  }`

, you can try reproducing using postman just get the access token using connect/token api and use it as bearer token to access secured api it responds with login page 401 response, check screen shots

and can i please get quick reply , this issue is delaying my deadline.

ABP Framework version: v8.0.0

UI Type: MVC but this error is while consuming api on flutter app

Database System: MongoDB

Tiered (for MVC) or Auth Server Separated (for Angular): no

Exception message and full stack trace:

when i am trying to access api using bearer token its responding with login page

hi

Can you share the logs.txt file? liming.ma@volosoft.com

Thanks

shared

Showing 51 to 60 of 62 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 19, 2024, 10:13