Hi @berkan, In the client we created, we can only receive tokens with admin via postman. When we create a new user from the user screen in angular and try to login with this user in postman
{
"error": "invalid_grant",
"error_description": "Invalid username or password!"
}
2022-10-28 12:12:31.703 +03:00 [INF] User authentication failed: Invalid username or password!, details: {"ClientId":"HitFrame_HitMobile_Flutter","ClientName":"HitFrame_HitMobile_Flutter","GrantType":"password","Scopes":"AccountService address AdministrationService email HitMobileService IdentityService offline_access openid phone profile role SaasService","AuthorizationCode":"********","RefreshToken":"********","UserName":"hitmobile","AuthenticationContextReferenceClasses":null,"Tenant":null,"IdP":null,"Raw":{"client_id":"HitFrame_HitMobile_Flutter","client_secret":"***REDACTED***","username":"hitmobile","password":"***REDACTED***","grant_type":"password"},"$type":"TokenRequestValidationLog"} 2022-10-28 12:12:31.703 +03:00 [INF] {"Username":"hitmobile","Endpoint":"Token","ClientId":"HitFrame_HitMobile_Flutter","Category":"Authentication","Name":"User Login Failure","EventType":"Failure","Id":1001,"Message":"Invalid username or password!","ActivityId":"8000002f-0000-ef00-b63f-84710c7967bb","TimeStamp":"2022-10-28T09:12:31.0000000Z","ProcessId":17324,,,"$type":"UserLoginFailureEvent"} 2022-10-28 12:12:31.704 +03:00 [INF] {"ClientId":"HitFrame_HitMobile_Flutter","ClientName":"HitFrame_HitMobile_Flutter","RedirectUri":null,"Endpoint":"Token","SubjectId":null,"Scopes":"AccountService address AdministrationService email HitMobileService IdentityService offline_access openid phone profile role SaasService","GrantType":"password","Error":"invalid_grant","ErrorDescription":"Invalid username or password!","Category":"Token","Name":"Token Issued Failure","EventType":"Failure","Id":2001,"Message":null,"ActivityId":"8000002f-0000-ef00-b63f-84710c7967bb","TimeStamp":"2022-10-28T09:12:31.0000000Z","ProcessId":17324,}
Hi berkan,
@Maliming number one in the world
Hi, Is it possible to share sample code about it? Is there an example in abpframework github repos?
thanks @gterdem.
$saasServiceCNs = "saas-service", "localhost" $saasServiceCert = New-SelfSignedCertificate -DnsName $saasServiceCNs -CertStoreLocation Cert:\LocalMachine\My $password = ConvertTo-SecureString -String "b65bdeef-3b4c-4417-a92d-636f8c481437" -Force -AsPlainText
Export-PfxCertificate -Cert $saasServiceCert -FilePath saas-service.pfx -Password $password | Out-Null
With the help of the code above, I create a domain-specific pfx. Then, after typing windows+R, I write "mmc". On the screen that opens, I add the local certificate I created to "Personnel" and "Trusted Certificates" from the Certificate management. With this method, I made the certificate I installed on IIS trusted.
thank you for your interest.
By the way, we can't install docker on every client. That's why we use IIS. I didn't get any errors about certificate reliability in docker. IIS didn't trust. Anyway, I took care of it :)
Hi @gterdem, $saasServiceCNs = "saas-service", "localhost" $saasServiceCert = New-SelfSignedCertificate -DnsName $saasServiceCNs -CertStoreLocation Cert:\LocalMachine\My $password = ConvertTo-SecureString -String "b65bdeef-3b4c-4417-a92d-636f8c481437" -Force -AsPlainText
Export-PfxCertificate -Cert $saasServiceCert -FilePath saas-service.pfx -Password $password | Out-Null
It would be great if you could explain the reason of the problem :)
Hi @EngincanV,
In the same organization, none of my friends can login to the ABP with cli commands. We also tried new computers.
Thank you for your interest.
I think you have updated your servers. Because support.abp.io entries were not coming according to date, now it has been fixed. But we cannot login with the cli command. Therefore, we cannot use your Commercial packages.
Hi, Yes,I have a problem for authentication with abp login cli command.
Could not get token from the OpenId Connect server! ErrorType: Http. Error: Unauthorized. ErrorDescription: The 'client_secret' parameter is not valid for this client application.. HttpStatusCode: Unauthorized
thanks @liangshiwei