keycloak Error! Logged in user does not have an e-mail - spring

when setup my email configration inside keyclock realm
and after click to test conection i have this error Error! Logged in user does not have an e-mail.
and this is image to explain my problem

Error is exactly what it is said. You have to add email address for the user by which you logged in to Keycloak Admin Console.
Go to Manage Account(http://<host>/auth/admin/master/console/) -> Personal Info -> Update firstName/lastName/emailAddress -> Save and try to add smtp configuration again.

Login to the Gmail account in a browser
Visit https://www.google.com/settings/security/lesssecureapps
Change the setting to On

Related

Multi AUTH Laravel 8 web application Login issue(unexpected redirection)

I am currently working with the Laravel 8 multi Auth web application.it has 5 types (admin , ecentre , ccentre ,farmer ,buyer) of account with different role.2 type user account created by admin (ecentre ,ccentre) and farmer and buyer account by using registration system in the authentication system. I used the Laravel livewire fortify authentication system.
my problem is one login to any type of account successfully login. Then log out system particular account and log in to the same account with no problem. But logout this account and log in different account with the correct credential do nothing(login request send but do not login) and stay on the login page. Then try it again login with the same user email and password successfully login. That is the real problem I have facing. Anyone facing this issue or any idea to solving this problem .(This issue is independent accentually user type. Every user type have the same issue )
I Check to inspect network tab both successes fail stage screen shoot
Failed Attempt Ststus
Success Attempt ScreenShot
I think the problem may not unset cookies or Session
Use Session::flush(); to remove all session.Write it log out function
public function getLogout() {
Session::flush();
auth()->logout();
return redirect()->route('index');
}
This might be solve you problem. thank you!!

Failed to login heroku by MFA

I tried to login on heroku, but I was required to enter code generated by authenticator app, but I have no the authenticator app. I tried heroku login -i, but it says
"Error: Your account has MFA enabled; API requests using basic authentication with email
› and password are not supported. Please generate an authorization token for API access."
How can I solve this problem?
Thanks in advance.
You must enable Multi-Factor Authentication and set up your preferred MFA option.
One of the options is to install Google Authenticator and configure it to access Heroku: after login (on the browser) you need to provide the code displayed in the Google Authentication application.
Login via Command Line
The approach is still the same but you need to use the API Key as the password
% heroku login -i
heroku: Enter your login credentials.
Email [my email address]:
Password: ************************************. # enter API Key here.
Logged in as [my email address]
To create the API Token go to Heroku Dashboard -> Account

sign up not working for heroku hosted scoold

Hi I deployed scoold to heroku following the steps here. The application is running but I cannot sign in to an account. When I tried to sign up for an account it shows that a confirmation email is sent but I don't receive one. Anyone know what's wrong?
You have not configured SMTP properly. You need a real SMTP server with a username and password. After configuring it you can resend your email confirmation and log in.
You can enable SMTP debug logging with this option:
para.mail.debug = true

send email in laravel by gmail smtp server

I want to use Gmail to send emails through Laravel.
When I apply through localhost, the email is sent correctly.
But it gives the following error on the server and the email is not sent.
local.ERROR: Swift_TransportException: Connection could not be established with host smtp.gmail.com $:stream_socket_client(): unable to connect to tcp://smtp.gmail.com:587 (Connection timed out)
Hello I had the same problem probably your solution is like that, because this helps me to resolved my issue
Create a custom app in you Gmail security settings.
Log-in into Gmail with your account
Navigate to https://security.google.com/settings/security/apppasswords
In 'select app' choose 'custom', give it an arbitrary name and press generate
It will give you 16 chars token.`
Use the token as password in combination with your full Gmail account and two factor authentication will not be required.
Note: The link in step 2 will work only if you have 2-factor-authentication enabled.
For Refference: link
use mail trap for testing
link https://mailtrap.io/ where you get your all smtp credential and put in .env file

Dynatrace login failure after password change

I have installed the Dynatrace client and I've been using if for months. After a Windows password reset I am getting this error. I have tried entering the new and old password.
Error on Login - The login failed because either the specified user name or password is incorrect, or you are not allowed to access this Dynatrace Server.
Thank you
This could be cache issues or something at the AppMon server:
If the LDAP server is down completely, LDAP users cannot log in.
However, successful user authentications are cached on the AppMon
Server for 10 minutes by default. If the same user logs in within this
time frame, no LDAP request is sent again and the user's
authentication timeout is prolonged. The user's group membership is
not verified or updated within this time frame.
You can configure the authentication timeout by changing the value of the following system property in the dtserver.ini file:
-Dcom.dynatrace.diagnostics.ldapAuthenticationTimeout=600
Reference: Dynatrace AppMon Documentation

Resources