Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [che-dev] Assigning alias to created user

Hello Alexander,

A short history first.
Some time ago we considered aliases primarily as alternative mechanism for OAuth authentication.
I.e user would be able to use several different third party accounts like google, github, facebook etc to be authenticated into Codenvy.
(it is opposite with current situation when yours github and google authentication leads to create and use 2 different accounts in Codenvy)
Taking into account that such a mechanism requires some non trivial development we added "alias" entity into model but not implement it as such to make sure it is really necessary. So far it is not clear. :)

So, I understand that you want to be able to manage aliases, you are correct, behaviour like we have now is rather inconsistent (it is not implemented in fact).

So, before we decide about implementation, please explain how do you want to USE aliases. Do you have in mind some alternative authentication mechanism or something else? 

Thanks,


Gennady Azarenkov - CTO @ codenvy.com


On Sun, May 10, 2015 at 9:45 AM, Bolshakov, Alexander <alexander.bolshakov@xxxxxxx> wrote:

Hello Gennady,

The use case for these APIs is creation of user with custom username. Currently after a call to /api/user/create user id is auto generated and the list of aliases is empty.

One possible solution for this use-case is adding these APIs. The DELETE API is optional and is needed just for integrity reasons:

POST /api/user/alias – Addition of specified alias to the list of aliases of current user
DELETE /api/user/alias/${alias_name} – Deletion specified alias from the list of aliases of current user

Second solution is adding a “aliases” parameter to /api/user/create API, so the new user would already have the supplied aliases. Second solution is preferable.

Regards,

Alexander

 

From: che-dev-bounces@xxxxxxxxxxx [mailto:che-dev-bounces@xxxxxxxxxxx] On Behalf Of Gennady Azarenkov
Sent: Friday 08 May 2015 19:57


To: che developer discussions
Subject: Re: [che-dev] Assigning alias to created user

 

Hi Alexander,

Yes sure, just please give some more details about usecases you have in mind for this service to make sure we are talking about the same things

Cheers,


Gennady Azarenkov - CTO @ codenvy.com

 

 

On Thu, May 7, 2015 at 5:20 PM, Bolshakov, Alexander <alexander.bolshakov@xxxxxxx> wrote:

Hello Sergii,

 

Would contribution of following extension of APIs be acceptable?

 

1)      POST /api/user/alias

2)      DELETE /api/user/alias/${alias_name}

 

From: che-dev-bounces@xxxxxxxxxxx [mailto:che-dev-bounces@xxxxxxxxxxx] On Behalf Of Sergii Kabashniuk
Sent: Thursday 07 May 2015 16:36
To: che developer discussions
Subject: Re: [che-dev] Assigning alias to created user

 

Hello Alexander.

 

Right now we have no such ability.

We had this feature in our mind when we developing User API.

Generally speaking in future we want to have something like on Github,

when user is able to associate with his identity record several aliases aka email.

 

Sergii Kabashniuk

 

On Thu, May 7, 2015 at 10:08 AM, Bolshakov, Alexander <alexander.bolshakov@xxxxxxx> wrote:

Hello Che developers,

 

I wonder if there is an API to assign aliases to newly created Che users, as far as I understand from code no such API exists. When new Che user is created (POST to api/user/create) its id is automatically generated by user service and aliases list is empty. Is there a way to assign a human-readable alias to this user?

 

Best Regards,

 

Alexander Bolshakov

Developer

Cloud Expirience DevX DI Core

SAP Labs Israel Ltd. 15 Hatidhar St. Ra'anana 43665 Israel

Tel: +972 9 7779677 ; Mobile: +972 54 927546 ; Fax: +972 7 47609677

 


_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/che-dev

 


_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/che-dev

 


_______________________________________________
che-dev mailing list
che-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/che-dev



Back to the top