Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira 4.4 to jira 5.0 com.atlassian.jira.user.util.OSUserConverter package not avialable in JIra 5.0

SuhailM
Contributor
April 10, 2012

HI,

I have one OSUser(ldap) to converted to the com.atlassian.crowd.embedded.api.User but this api which was working jira 4.4 is not availiable in Jira 5.0.

OSUserConverter.convertToOSUser(username);

http://docs.atlassian.com/jira/4.4/com/atlassian/jira/user/util/OSUserConverter.html

Where cani find a similar api in jira 5.0 or is there any alternative solution??

Regards

2 answers

1 accepted

0 votes
Answer accepted
Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 10, 2012
0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 10, 2012

OSUSer is not aailable in JIRA5 and hence the conversion is not valid. Where are you doing this conversion? Maybe that is not needed now?

SuhailM
Contributor
April 10, 2012

@Override

protected Principal getUser(String username) {

return OSUserConverter.convertToOSUser(getUserFromJira(username));

}

------------------------------------------------------------------------------------------------------

java.security.Principal- this api use to convert the the username to of type Principal.THis is to enable the SSO

using X509Certificate.

But this api is deprecated in Jira 5.0

Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 10, 2012

You don't need to convert I guess. com.atlassian.crowd.embedded.api.User implements java.security.Principal

SuhailM
Contributor
April 10, 2012

I have implemented SSO for jira 4.4, but now in JIRA 5.0 has this problem.

I have extended this class -

public class SslAuthenticator extends DefaultAuthenticator{

}

This DefaultAuthenticator has this (see below)abstract method which needs to be implemented -How do return a Principal Object here??

protected Principal getUser(String username) {

return OSUserConverter.convertToOSUser(getUserFromJira(username));

}

Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 10, 2012

return getUserFromJira(username); ? I guess Jobin just answered that.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events