<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Authentication Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/authentication/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/authentication/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Mon, 24 May 2021 12:34:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Expected response code 250 but got code “530”, with message &#8220;530 5.7.1 Authentication required</title>
		<link>https://www.scmgalaxy.com/tutorials/expected-response-code-250-but-got-code-530-with-message-530-5-7-1-authentication-required/</link>
					<comments>https://www.scmgalaxy.com/tutorials/expected-response-code-250-but-got-code-530-with-message-530-5-7-1-authentication-required/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra K]]></dc:creator>
		<pubDate>Mon, 24 May 2021 12:34:36 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[mailtrap in laravel]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=6364</guid>

					<description><![CDATA[<p>I got stuck on this error I trying to configure SMTP mail on laravel here is my configuration on .env file This [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/expected-response-code-250-but-got-code-530-with-message-530-5-7-1-authentication-required/">Expected response code 250 but got code “530”, with message &#8220;530 5.7.1 Authentication required</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">I got stuck on this error I trying to configure SMTP mail on <code>laravel</code></p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="521" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/456-1024x521.jpg" alt="" class="wp-image-6365" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/456-1024x521.jpg 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/456-300x153.jpg 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/456-768x390.jpg 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/456.jpg 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">here is my configuration on <code>.env</code> file</p>



<figure class="wp-block-image size-large"><img decoding="async" width="385" height="142" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/mailtrap.jpg" alt="" class="wp-image-6366" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/mailtrap.jpg 385w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/mailtrap-300x111.jpg 300w" sizes="(max-width: 385px) 100vw, 385px" /></figure>



<p class="wp-block-paragraph">This is Solved this Error</p>



<p class="wp-block-paragraph">your <code>mail.php</code> on config you declare host as <code>smtp.mailgun.org</code> and port is <code>587</code> while on env is different. you need to change your <code>mail.php</code> to</p>



<script src="https://gist.github.com/dharmu9898/9dc2136f28f4d5d9d8b916710f37b3f8.js"></script>



<p class="wp-block-paragraph">if you desire to use mailtrap.Then run this command</p>



php artisan config:cache



<figure class="wp-block-image size-large"><img decoding="async" width="519" height="219" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/c-clear.jpg" alt="" class="wp-image-6367" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/c-clear.jpg 519w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/05/c-clear-300x127.jpg 300w" sizes="(max-width: 519px) 100vw, 519px" /></figure>



<p class="wp-block-paragraph"><code>env()</code> helper makes the job and there is no need to change values in <code>mail.php</code>. Just ensure that all email settings in <code>.env</code> file are correct</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/expected-response-code-250-but-got-code-530-with-message-530-5-7-1-authentication-required/">Expected response code 250 but got code “530”, with message &#8220;530 5.7.1 Authentication required</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/expected-response-code-250-but-got-code-530-with-message-530-5-7-1-authentication-required/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Authentication Types in Gerrit explained!</title>
		<link>https://www.scmgalaxy.com/tutorials/authentication-types-in-gerrit-explained/</link>
					<comments>https://www.scmgalaxy.com/tutorials/authentication-types-in-gerrit-explained/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sun, 19 Aug 2018 19:38:36 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[CLIENT_SSL_CERT_LDAP]]></category>
		<category><![CDATA[DEVELOPMENT_BECOME_ANY_ACCOUNT]]></category>
		<category><![CDATA[HTTP_LDAP]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[LDAP_BIND]]></category>
		<category><![CDATA[OAUTH]]></category>
		<category><![CDATA[OpenID]]></category>
		<category><![CDATA[OpenID_SSO]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5159</guid>

					<description><![CDATA[<p>Authentication Types in Gerrit explained! Type of user authentication employed by Gerrit. The supported values are: By default, OpenID OpenID [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/authentication-types-in-gerrit-explained/">Authentication Types in Gerrit explained!</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-5251" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit1.png" alt="" width="600" height="350" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit1.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2018/08/gerrit1-300x175.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>Authentication Types in Gerrit explained!</p>
<p>Type of user authentication employed by Gerrit. The supported values are:</p>
<p><strong>By default, OpenID</strong></p>
<p><strong>OpenID</strong><br />
The default setting. Gerrit uses any valid OpenID provider chosen by the end-user. For more information see openid.net.<br />
<strong>OpenID_SSO</strong><br />
Supports OpenID from a single provider. There is no registration link, and the &#8220;Sign In&#8221; link sends the user directly to the provider’s SSO entry point.<br />
<strong>HTTP</strong><br />
Gerrit relies upon data presented in the HTTP request. This includes HTTP basic authentication, or some types of commercial single-sign-on solutions. With this setting enabled the authentication must take place in the web server or servlet container, and not from within Gerrit.<br />
<strong>HTTP_LDAP</strong><br />
Exactly like HTTP (above), but additionally Gerrit pre-populates a user’s full name and email address based on information obtained from the user’s account object in LDAP. The user’s group membership is also pulled from LDAP, making any LDAP groups that a user is a member of available as groups in Gerrit.<br />
<strong>CLIENT_SSL_CERT_LDAP</strong><br />
This authentication type is actually kind of SSO. Gerrit will configure Jetty’s SSL channel to request the client’s SSL certificate. For this authentication to work a Gerrit administrator has to import the root certificate of the trust chain used to issue the client’s certificate into the &lt;review-site&gt;/etc/keystore. After the authentication is done Gerrit will obtain basic user registration (name and email) from LDAP, and some group memberships. Therefore, the &#8220;_LDAP&#8221; suffix in the name of this authentication type. This authentication type can only be used under hosted daemon mode, and the httpd.listenUrl must use https:// as the protocol. Optionally, certificate revocation list file can be used at &lt;review-site&gt;/etc/crl.pem. For details, see httpd.sslCrl.<br />
<strong>LDAP</strong><br />
Gerrit prompts the user to enter a username and a password, which it then verifies by performing a simple bind against the configured ldap.server. In this configuration the web server is not involved in the user authentication process.<br />
The actual username used in the LDAP simple bind request is the account’s full DN, which is discovered by first querying the directory using either an anonymous request, or the configured ldap.username identity. Gerrit can also use kerberos if ldap.authentication is set to GSSAPI.<br />
<strong>LDAP_BIND</strong><br />
Gerrit prompts the user to enter a username and a password, which it then verifies by performing a simple bind against the configured ldap.server. In this configuration the web server is not involved in the user authentication process.<br />
Unlike LDAP above, the username used to perform the LDAP simple bind request is the exact string supplied in the dialog by the user. The configured ldap.username identity is not used to obtain account information.<br />
<strong>OAUTH</strong><br />
OAuth is a protocol that lets external apps request authorization to private details in a user’s account without getting their password. This is preferred over Basic Authentication because tokens can be limited to specific types of data, and can be revoked by users at any time.<br />
Site owners have to register their application before getting started. Note that provider specific plugins must be used with this authentication scheme.<br />
<strong>DEVELOPMENT_BECOME_ANY_ACCOUNT</strong><br />
DO NOT USE. Only for use in a development environment.<br />
When this is the configured authentication method a hyperlink titled Become appears in the top right corner of the page, taking the user to a form where they can enter the username of any existing user account, and immediately login as that account, without any authentication taking place. This form of authentication is only useful for the GWT hosted mode shell, where OpenID authentication redirects might be risky to the developer’s host computer, and HTTP authentication is not possible.</p>
<p><strong>Reference</strong><br />
https://dev.vaadin.com/review/Documentation/config-gerrit.html#auth</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/authentication-types-in-gerrit-explained/">Authentication Types in Gerrit explained!</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/authentication-types-in-gerrit-explained/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Know about Certificates and SSLs</title>
		<link>https://www.scmgalaxy.com/tutorials/know-about-certificates-and-ssls/</link>
					<comments>https://www.scmgalaxy.com/tutorials/know-about-certificates-and-ssls/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 09 Jan 2018 10:01:52 +0000</pubDate>
				<category><![CDATA[Concept & Definition]]></category>
		<category><![CDATA[About]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[Certificates]]></category>
		<category><![CDATA[Certificates and SSL]]></category>
		<category><![CDATA[Certificates and SSLs overview]]></category>
		<category><![CDATA[HTTPS]]></category>
		<category><![CDATA[Introduction of Certificates and SSLs]]></category>
		<category><![CDATA[Secure socket layer]]></category>
		<category><![CDATA[SSL]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=4658</guid>

					<description><![CDATA[<p>DRAFT VERSION HTTPS Hypertext Transfer Protocol Secure (HTTPS) is a combination of the Hypertext Transfer Protocol with the SSL/TLS protocol [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/know-about-certificates-and-ssls/">Know about Certificates and SSLs</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>DRAFT VERSION</p>
<p>HTTPS</p>
<p>Hypertext Transfer Protocol Secure (HTTPS) is a combination of the Hypertext Transfer Protocol with the SSL/TLS protocol to provide encrypted communication and secure identification of a network web server. HTTPS connections are often used for payment transactions on the World Wide Web and for sensitive transactions in corporate information systems.</p>
<p>Secure socket layer (SSL): how it works</p>
<p>1.   An SSL certificate enables encryption of sensitive information during online transactions.</p>
<p>2.   Each SSL certificate is a unique credential identifying the certificate owner.</p>
<p>3.   A certificate Authority authenticates the identity of a certificate owner before it is issued.<br />
What is SSL and Certificate</p>
<div>
<p>SSL and Certificates</p>
</div>
<p><a id="AEN64" name="AEN64"></a>The Secure Socket Layer protocol was created by Netscape to ensure secure transactions between web servers and browsers. The protocol uses a third party, a Certificate Authority (CA), to identify one end or both end of the transactions. This is in short how it works.</p>
<ul>
<li>A browser requests a secure page (usually https://).</li>
<li>The web server sends its public key with its certificate.</li>
<li>The browser checks that the certificate was issued by a trusted party (usually a trusted root CA), that the certificate is still valid and that the certificate is related to the site contacted.</li>
<li>The browser then uses the public key, to encrypt a random symmetric encryption key and sends it to the server with the encrypted URL required as well as other encrypted http data.</li>
<li>The web server decrypts the symmetric encryption key using its private key and uses the symmetric key to decrypt the URL and http data.</li>
<li>The web server sends back the requested html document and http data encrypted with the symmetric key.</li>
<li>The browser decrypts the http data and html document using the symmetric key and displays the information.</li>
</ul>
<div>
<p>What Happens When a Web Browser Connects to a Secure Website?</p>
</div>
<ul>
<li>A browser attempts to connect to a Web site secured with SSL.</li>
</ul>
<p>keytool -genkey -alias bf-sandbox -keyalg RSA -keystore buildForgeKeyStore.p12 -keysize 2048</p>
<p>[root@ tmp]# keytool -genkey -alias bf-sandbox -keyalg RSA -keystore buildForgeKeyStore.p12 -keysize 2048<br />
Enter key store password: XXXX<br />
Enter key password for : XXX</p>
<p>You are about to enter information that will be incorporated into<br />
your certificate request.  This information is what is called a<br />
Distinguished Name or DN.  There are quite a few fields but you<br />
can use supplied default values, displayed between brackets, by just<br />
hitting , or blank the field by entering the character<br />
before hitting .</p>
<p>keytool -certreq -sigalg RSA -alias bf-sandbox -file bf-sandbox.csr -keystore buildForgeKeyStore.p1Insallation Certificates in BuildForge</p>
<p>Point 1: You would need to update the bfclient.conf to make Build Forge aware of the certifications. As long as the certificates are in the correct it will work with Build Forge.</p>
<p>Point 2: The easiest way to update the cert would be change the new cert name to the name of the previous cerr. Then update the passwords.</p>
<p>Point 3:<br />
Please use the following command to validate the keystore:</p>
<p>keytool -list -storetype pkcs12 -keystore fullyQualifiedNameOfFile.p12 -v</p>
<p>&nbsp;</p>
<h2><a id="AEN93" name="AEN93"></a>The Symmetric key</h2>
<p>Well, Private Key/Public Key encryption algorithms are great, but they are not usually practical. It is asymmetric because you need the other key pair to decrypt. You can&#8217;t use the same key to encrypt and decrypt. An algorithm using the same key to decrypt and encrypt is deemed to have a symmetric key. A symmetric algorithm is much faster in doing its job than an asymmetric algorithm. But a symmetric key is potentially highly insecure. If the enemy gets hold of the key then you have no more secret information. You must therefore transmit the key to the other party without the enemy getting its hands on it. As you know, nothing is secure on the Internet. The solution is to encapsulate the symmetric key inside a message encrypted with an asymmetric algorithm. You have never transmitted your private key to anybody, then the message encrypted with the public key is secure (relatively secure, nothing is certain except death and taxes). The symmetric key is also chosen randomly, so that if the symmetric secret key is discovered then the next transaction will be totally different.</p>
<table border="0" width="100%" cellpadding="0">
<tbody>
<tr>
<td>Symetric Key&#8211;&gt;[Public Key]&#8211;&gt;Encrypted Symetric Key&#8211;&gt;[Private Key]&#8211;&gt;Symetric Key</td>
</tr>
</tbody>
</table>
<h2><a id="AEN97" name="AEN97"></a>Encryption algorithm:</h2>
<p>There are several encryption algorithms available, using symmetric or asymmetric methods, with keys of various lengths. Usually, algorithms cannot be patented, if Henri Poincare had patented his algorithms, then he would have been able to sue Albert Einstein&#8230; So algorithms cannot be patented except mainly in USA. OpenSSL is developed in a country where algorithms cannot be patented and where encryption technology is not reserved to state agencies like military and secret services. During the negotiation between browser and web server, the applications will indicate to each other a list of algorithms that can be understood ranked by order of preference. The common preferred algorithm is then chosen. OpenSSL can be compiled with or without certain algorithms, so that it can be used in many countries where restrictions apply.</p>
<h2><a id="AEN100" name="AEN100"></a>The Hash:</h2>
<p>A hash is a number given by a hash function from a message. This is a one way function, it means that it is impossible to get the original message knowing the hash. However the hash will drastically change even for the slightest modification in the message. It is therefore extremely difficult to modify a message while keeping its original hash. It is also called a message digest. Hash functions are used in password mechanisms, in certifying that applications are original (MD5 sum), and in general in ensuring that any message has not been tampered with. It seems that the Internet Enginering Task Force (IETF) prefers SHA1 over MD5 for a number of technical reasons (Cf RFC2459 7.1.2 and 7.1.3).</p>
<h2><a id="AEN103" name="AEN103"></a>Signing:</h2>
<p>Signing a message, means authentifying that you have yourself assured the authenticity of the message (most of the time it means you are the author, but not neccesarily). The message can be a text message, or someone else&#8217;s certificate. To sign a message, you create its hash, and then encrypt the hash with your private key, you then add the encrypted hash and your signed certificate with the message. The recipient will recreate the message hash, decrypts the encrypted hash using your well known public key stored in your signed certificate, check that both hash are equals and finally check the certificate.<br />
The other advantage of signing your messages is that you transmit your public key and certificate automatically to all your recipients.<br />
There are usually 2 ways to sign, encapsulating the text message inside the signature (with delimiters), or encoding the message altogether with the signature. This later form is a very simple encryption form as any software can decrypt it if it can read the embedded public key. The advantage of the first form is that the message is human readable allowing any non complaint client to pass the message as is for the user to read, while the second form does not even allow to read part of the message if it has been tampered with.</p>
<h2><a id="AEN108" name="AEN108"></a>PassPhrase:</h2>
<p>“A passprase is like a password except it is longer”. In the early days passwords on Unix system were limited to 8 characters, so the term passphrase for longer passwords. Longer is the password harder it is to guess. Nowadays Unix systems use MD5 hashes which have no limitation in length of the password.</p>
<h2><a id="AEN111" name="AEN111"></a>Public Key Infrastructure</h2>
<p>The Public Key Infrastructure (PKI) is the software management system and database system that allows to sign certifcate, keep a list of revoked certificates, distribute public key,&#8230; You can usually access it via a website and/or ldap server. There will be also some people checking that you are who you are&#8230; For securing individual applications, you can use any well known commercial PKI as their root CA certificate is most likely to be inside your browser/application. The problem is for securing e-mail, either you get a generic type certificate for your e-mail or you must pay about USD100 a year per certificate/e-mail address. There is also no way to find someone&#8217;s public key if you have never received a prior e-mail with his certificate (including his public key).</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/know-about-certificates-and-ssls/">Know about Certificates and SSLs</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/know-about-certificates-and-ssls/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
