Powered by Blogger.

Tuesday 3 January 2023

Single Sign-On (SSO) Using SMTP Authentication With Spring Boot Microservices

2 comments :
Single sign-on is an authentication scheme that allows a user to log in with a single ID to any of several related, independent, software systems or web applications. In this Video user will login through Outlook and Google Mail for which we will develop Spring Boot Microservices Project here and will also use some Spring Boot Jar files javax.mail.jar and SendMailA143mkSSO.jar
Process of Single sign-On (SSO) Authentication:




Download both the jar file and implement some methods / functions have been used, the names of the methods are as follows:

Create Class object SendMailA143mk getsess=new SendMailA143mk();
  1. LoginMailAuthHost_PortA143mk();
  2. OutLookMailAuthA143mk();
  3. GmailMailAuthA143mk();
There are some parameters in five methods, which we initialize by creating and object like this.

String toAuthmail="EmailMail@mailDomen.com";
String toAuthmailPassword="mailPassword"; 
String host="smtp.office365.com"; 
String port="587"; 

How to create a project to follow us. Project Name is: EmailAuthenticationA143mk




while creating the project pom.xml file and some maven dependency, main class is automatically created when web add any dependency like.

pom.xml


For step by step development working watch the video and learn yourself.


Some Helping Note: Some code and video are shown in this post, how we can use it in our application, the developer and jar file used in this is verified by mail id and password and after mail id is successful is returned, you can then write custom user roles and method entities in the block. and you can write error body in second part of it.

2 comments :

  1. I think you have used SMTP protocol for SSO implementation but how to do it with azure.

    ReplyDelete

Please Write a Message for Programming or something Related issues.