<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi great Keycloak dev team,<br>
<br>
during implementation of
<a class="moz-txt-link-freetext" href="https://issues.jboss.org/browse/KEYCLOAK-1074">https://issues.jboss.org/browse/KEYCLOAK-1074</a> I found few things
which should be improved in area of registration over Social Login
providers.<br>
I'd like to discuss them here before creating JIRAs. I believe I
should implement these changes if you will be interested.<br>
<br>
1. It is not possible to disable registration over Social provider <br>
======================================<br>
Once provider is created then it is always possible to register over
it, even if "User registration" is disabled in realm "Login
Settings". I think it should be possible to disable social
registrations and allow only to link social logins to existing
accounts (eg. loaded from other system).<br>
<br>
Marek Posolda pointed me to
<a class="moz-txt-link-freetext" href="https://issues.jboss.org/browse/KEYCLOAK-1036">https://issues.jboss.org/browse/KEYCLOAK-1036</a> which is rejected
without any comment. I understand that this global setting is
probably not a good solution, so my proposal is to add independent
"User registration" switch into configuration of each Identity
provider, so admin will get fine grained control.<br>
<br>
2. Username from Social provider is used as Keycloak username during
registration<br>
===================================================<br>
This can lead to the situation that user registering eg. over
Twitter will not be able to register as other user eg. from Facebook
will use same username there and occupy it in Keycloak as first.<br>
My proposal is to extend configuration of each Identity provider by
new option "Username type" which will be select from these options:<br>
<ul>
<li>provided username exact - works as now, username is got from
provider, user can't register if occupied in KC already</li>
<li>provided username unique - KC will take username from
provider, if occupied then it adds some random number to it to
create unique username and allow user to register</li>
<li>provided email - this is related to KEYCLOAK-1074, I need this
option for my project. I know that email is not provided by some
providers (eg Twitter) so I can't use them untilĀ KEYCLOAK-1053
is resolved somehow</li>
</ul>
So let me know what you think about my proposals, can I implement
them?<br>
<br>
Cheers<br>
<br>
Vlastimil<br>
<br>
<pre class="moz-signature" cols="72">--
Vlastimil Elias
Principal Software Engineer
jboss.org Development Team</pre>
</body>
</html>