Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.3, 2.1.0
    • core
    • None

    Description

      In additional to existing user authentication using username, an email will be used as the user for authenticating the subject. In the modern social networking sites mostly uses email as the user for authentication.

      Attachments

        Issue Links

          Activity

            Commit b1e52bf5bf7e789f16f6ac8859b25e06b9d712c1 in syncope's branch refs/heads/2_0_X from ilgrosso
            [ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=b1e52bf ]

            SYNCOPE-1015 Added the conf parameter 'authentication.attributes' to use alternate attrs for authentication

            jira-bot ASF subversion and git services added a comment - Commit b1e52bf5bf7e789f16f6ac8859b25e06b9d712c1 in syncope's branch refs/heads/2_0_X from ilgrosso [ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=b1e52bf ] SYNCOPE-1015 Added the conf parameter 'authentication.attributes' to use alternate attrs for authentication

            Commit 8c9635805a72540541eb960cbd799e1a8b1a90eb in syncope's branch refs/heads/master from ilgrosso
            [ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=8c96358 ]

            SYNCOPE-1015 Added the conf parameter 'authentication.attributes' to use alternate attrs for authentication

            jira-bot ASF subversion and git services added a comment - Commit 8c9635805a72540541eb960cbd799e1a8b1a90eb in syncope's branch refs/heads/master from ilgrosso [ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=8c96358 ] SYNCOPE-1015 Added the conf parameter 'authentication.attributes' to use alternate attrs for authentication

            Commit 6a41ff24d427745aa7a8f60c880d2a140f533e9d in syncope's branch refs/heads/2_0_X from ilgrosso
            [ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=6a41ff2 ]

            SYNCOPE-1015 Fixing test exec

            jira-bot ASF subversion and git services added a comment - Commit 6a41ff24d427745aa7a8f60c880d2a140f533e9d in syncope's branch refs/heads/2_0_X from ilgrosso [ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=6a41ff2 ] SYNCOPE-1015 Fixing test exec

            Commit 6bbd4cf550db513842ee6730dbb82c7602ab90f0 in syncope's branch refs/heads/master from ilgrosso
            [ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=6bbd4cf ]

            SYNCOPE-1015 Fixing test exec

            jira-bot ASF subversion and git services added a comment - Commit 6bbd4cf550db513842ee6730dbb82c7602ab90f0 in syncope's branch refs/heads/master from ilgrosso [ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=6bbd4cf ] SYNCOPE-1015 Fixing test exec

            I have added a user in syncope-console along with following parameters.
            username: coolone
            email: coolone@yahoo.com
            userid: coolone@hotmail.com

            I have successfully logged in using username and displayed following contents.

            {fullname=org.apache.syncope.common.lib.to.AttrTO@389c4eb1[ schemaInfo=org.apache.syncope.common.lib.to.PlainSchemaTO@3fc79729[ type=String mandatoryCondition=true multivalue=false uniqueConstraint=true readonly=false conversionPattern=<null> validatorClass=<null> enumerationValues=<null> enumerationKeys=<null> secretKey=<null> cipherAlgorithm=<null> mimeType=<null> key=fullname anyTypeClass=minimal user ] schema=fullname values=[coolpotel] ], userId=org.apache.syncope.common.lib.to.AttrTO@404bbcbd[ schemaInfo=org.apache.syncope.common.lib.to.PlainSchemaTO@a307a8c[ type=String mandatoryCondition=true multivalue=false uniqueConstraint=true readonly=false conversionPattern=<null> validatorClass=org.apache.syncope.core.persistence.jpa.attrvalue.validation.EmailAddressValidator enumerationValues=<null> enumerationKeys=<null> secretKey=<null> cipherAlgorithm=<null> mimeType=<null> key=userId anyTypeClass=minimal user ] schema=userId values=[coolone@hotmail.com] ], email=org.apache.syncope.common.lib.to.AttrTO@2b9ed6da[ schemaInfo=org.apache.syncope.common.lib.to.PlainSchemaTO@6c61a903[ type=String mandatoryCondition=false multivalue=false uniqueConstraint=false readonly=false conversionPattern=<null> validatorClass=org.apache.syncope.core.persistence.jpa.attrvalue.validation.EmailAddressValidator enumerationValues=<null> enumerationKeys=<null> secretKey=<null> cipherAlgorithm=<null> mimeType=<null> key=email anyTypeClass=minimal user ] schema=email values=[coolone@yahoo.com] ], surname=org.apache.syncope.common.lib.to.AttrTO@34f6515b[ schemaInfo=org.apache.syncope.common.lib.to.PlainSchemaTO@4b34fff9[ type=String mandatoryCondition=true multivalue=false uniqueConstraint=false readonly=false conversionPattern=<null> validatorClass=<null> enumerationValues=<null> enumerationKeys=<null> secretKey=<null> cipherAlgorithm=<null> mimeType=<null> key=surname anyTypeClass=minimal user ] schema=surname values=[Geranimo] ], cool=org.apache.syncope.common.lib.to.AttrTO@658c5a19[ schemaInfo=org.apache.syncope.common.lib.to.PlainSchemaTO@421e361[ type=Boolean mandatoryCondition=false multivalue=false uniqueConstraint=false readonly=false conversionPattern=<null> validatorClass=<null> enumerationValues=<null> enumerationKeys=<null> secretKey=<null> cipherAlgorithm=<null> mimeType=<null> key=cool anyTypeClass=other ] schema=cool values=[false] ]}

            I have tried to login using email: coolone@yahoo.com is throwing following error: I think this error is coming from creating client session after authenticating with email.

            java.security.AccessControlException: User coolone@yahoo.com not authenticated
            at org.apache.syncope.client.lib.RestClientExceptionMapper.fromResponse(RestClientExceptionMapper.java:61)
            at org.apache.syncope.client.lib.RestClientExceptionMapper.fromResponse(RestClientExceptionMapper.java:42)
            at org.apache.cxf.jaxrs.client.ClientProxyImpl.checkResponse(ClientProxyImpl.java:310)
            at org.apache.cxf.jaxrs.client.ClientProxyImpl.handleResponse(ClientProxyImpl.java:851)
            at org.apache.cxf.jaxrs.client.ClientProxyImpl.doChainedInvocation(ClientProxyImpl.java:764)
            at org.apache.cxf.jaxrs.client.ClientProxyImpl.invoke(ClientProxyImpl.java:235)
            at com.sun.proxy.$Proxy34.read(Unknown Source)
            at org.apache.syncope.client.lib.SyncopeClient.self(SyncopeClient.java:132)

            singareddy Ravi Singareddy added a comment - I have added a user in syncope-console along with following parameters. username: coolone email: coolone@yahoo.com userid: coolone@hotmail.com I have successfully logged in using username and displayed following contents. {fullname=org.apache.syncope.common.lib.to.AttrTO@389c4eb1[ schemaInfo=org.apache.syncope.common.lib.to.PlainSchemaTO@3fc79729[ type=String mandatoryCondition=true multivalue=false uniqueConstraint=true readonly=false conversionPattern=<null> validatorClass=<null> enumerationValues=<null> enumerationKeys=<null> secretKey=<null> cipherAlgorithm=<null> mimeType=<null> key=fullname anyTypeClass=minimal user ] schema=fullname values=[coolpotel] ], userId=org.apache.syncope.common.lib.to.AttrTO@404bbcbd[ schemaInfo=org.apache.syncope.common.lib.to.PlainSchemaTO@a307a8c[ type=String mandatoryCondition=true multivalue=false uniqueConstraint=true readonly=false conversionPattern=<null> validatorClass=org.apache.syncope.core.persistence.jpa.attrvalue.validation.EmailAddressValidator enumerationValues=<null> enumerationKeys=<null> secretKey=<null> cipherAlgorithm=<null> mimeType=<null> key=userId anyTypeClass=minimal user ] schema=userId values=[coolone@hotmail.com] ], email=org.apache.syncope.common.lib.to.AttrTO@2b9ed6da[ schemaInfo=org.apache.syncope.common.lib.to.PlainSchemaTO@6c61a903[ type=String mandatoryCondition=false multivalue=false uniqueConstraint=false readonly=false conversionPattern=<null> validatorClass=org.apache.syncope.core.persistence.jpa.attrvalue.validation.EmailAddressValidator enumerationValues=<null> enumerationKeys=<null> secretKey=<null> cipherAlgorithm=<null> mimeType=<null> key=email anyTypeClass=minimal user ] schema=email values=[coolone@yahoo.com] ], surname=org.apache.syncope.common.lib.to.AttrTO@34f6515b[ schemaInfo=org.apache.syncope.common.lib.to.PlainSchemaTO@4b34fff9[ type=String mandatoryCondition=true multivalue=false uniqueConstraint=false readonly=false conversionPattern=<null> validatorClass=<null> enumerationValues=<null> enumerationKeys=<null> secretKey=<null> cipherAlgorithm=<null> mimeType=<null> key=surname anyTypeClass=minimal user ] schema=surname values=[Geranimo] ], cool=org.apache.syncope.common.lib.to.AttrTO@658c5a19[ schemaInfo=org.apache.syncope.common.lib.to.PlainSchemaTO@421e361[ type=Boolean mandatoryCondition=false multivalue=false uniqueConstraint=false readonly=false conversionPattern=<null> validatorClass=<null> enumerationValues=<null> enumerationKeys=<null> secretKey=<null> cipherAlgorithm=<null> mimeType=<null> key=cool anyTypeClass=other ] schema=cool values=[false] ]} I have tried to login using email: coolone@yahoo.com is throwing following error: I think this error is coming from creating client session after authenticating with email. java.security.AccessControlException: User coolone@yahoo.com not authenticated at org.apache.syncope.client.lib.RestClientExceptionMapper.fromResponse(RestClientExceptionMapper.java:61) at org.apache.syncope.client.lib.RestClientExceptionMapper.fromResponse(RestClientExceptionMapper.java:42) at org.apache.cxf.jaxrs.client.ClientProxyImpl.checkResponse(ClientProxyImpl.java:310) at org.apache.cxf.jaxrs.client.ClientProxyImpl.handleResponse(ClientProxyImpl.java:851) at org.apache.cxf.jaxrs.client.ClientProxyImpl.doChainedInvocation(ClientProxyImpl.java:764) at org.apache.cxf.jaxrs.client.ClientProxyImpl.invoke(ClientProxyImpl.java:235) at com.sun.proxy.$Proxy34.read(Unknown Source) at org.apache.syncope.client.lib.SyncopeClient.self(SyncopeClient.java:132)

            Commit e5963f4bcaebea537edacdb53c771b01b98517dd in syncope's branch refs/heads/2_0_X from ilgrosso
            [ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=e5963f4 ]

            SYNCOPE-1015 Clarifying that schema for usage with authentication.attributes must impose the unique constraint

            jira-bot ASF subversion and git services added a comment - Commit e5963f4bcaebea537edacdb53c771b01b98517dd in syncope's branch refs/heads/2_0_X from ilgrosso [ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=e5963f4 ] SYNCOPE-1015 Clarifying that schema for usage with authentication.attributes must impose the unique constraint

            Commit f6a919929697a85292a52a3896387cd1c6f97a16 in syncope's branch refs/heads/master from ilgrosso
            [ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=f6a9199 ]

            SYNCOPE-1015 Clarifying that schema for usage with authentication.attributes must impose the unique constraint

            jira-bot ASF subversion and git services added a comment - Commit f6a919929697a85292a52a3896387cd1c6f97a16 in syncope's branch refs/heads/master from ilgrosso [ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=f6a9199 ] SYNCOPE-1015 Clarifying that schema for usage with authentication.attributes must impose the unique constraint

            Hi Mr. Francesco,

            finally able to test user authentication using an email address. I am wondering what are configuration setups need to be made to maintain unique constraint on email address? Does this will be part of release Syncope 2.0.3 or need to do any manual configurations?

            Thanks a lot for your help.

            Ravi

            singareddy Ravi Singareddy added a comment - Hi Mr. Francesco, finally able to test user authentication using an email address. I am wondering what are configuration setups need to be made to maintain unique constraint on email address? Does this will be part of release Syncope 2.0.3 or need to do any manual configurations? Thanks a lot for your help. Ravi

            Commit e5963f4bcaebea537edacdb53c771b01b98517dd in syncope's branch refs/heads/SYNCOPE-808 from ilgrosso
            [ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=e5963f4 ]

            SYNCOPE-1015 Clarifying that schema for usage with authentication.attributes must impose the unique constraint

            jira-bot ASF subversion and git services added a comment - Commit e5963f4bcaebea537edacdb53c771b01b98517dd in syncope's branch refs/heads/ SYNCOPE-808 from ilgrosso [ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=e5963f4 ] SYNCOPE-1015 Clarifying that schema for usage with authentication.attributes must impose the unique constraint

            Bulk close for 2.0.3

            ilgrosso Francesco Chicchiriccò added a comment - Bulk close for 2.0.3

            People

              ilgrosso Francesco Chicchiriccò
              singareddy Ravi Singareddy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: