Adding OpenId provider

How can I add openid provider? I've read this doc http://confluence.jetbrains.net/display/YTD3/OpenID+Integration but can not get what is [TSYS:YouTrack classpath]

YT is installed according to this guide http://confluence.jetbrains.net/display/YTD3/Linux.+YouTrack+JAR+as+a+Service

I've searched the dir where YT is installed and the only openIdProvidersConfiguration.xml is :

/home/youtrack/.youtrack/work/jetty-0.0.0.0-8082-youtrack-3.0.4.jar--any-/webapp/WEB-INF/classes/jetbrains/charisma/openid/persistence/openIdProvidersConfiguration.xml

which is rewritten on each youtrack restart (guess from youtrack-3.0.4.jar file)
Sorry for the dummy question - I'm working with.NET and not with java
6 comments
Comment actions Permalink

Hello Konstantin,

In your case you need to add OpenID provider description right within the jar archive: youtrack-<version>.jar\WEB-INF\classes\jetbrains\charisma\openid\persistence\OpenIdProvidersContainer.xml

You can unzip the jar file, make your corrections, and then zip the jar file back.

Hope this will help

Best regards,

Ekaterina

0
Comment actions Permalink

Thanks for your answer

I hoped there is some more clear way...

With this approach I'll have to update xml inside jar on each YT version upgrade :-(

BTW as you are the author of http://confluence.jetbrains.net/display/YTD3/Linux.+YouTrack+JAR+as+a+Service guide

The is a discrepancy - setup has to be performed as youtrack user or there should be extra step to grant youtrack user access to files in "standalone" folder

Also on ubuntu server 11.10 64bit I had to add "#!/bin/bash" as first line of /etc/init.d/youtrack to make it work

0
Comment actions Permalink

Hello Konstantin

Thanks for your notice! I will correct the doc accordingly.

As for the current approach of adding OpenID provider, I understand it might require additional steps while upgrading YouTrack.

Please feel free to submit a feature request in our tracker http://youtrack.jetbrains.net/issues/JT

Best regards,

Ekaterina

0
Comment actions Permalink
I'm having the same problem. Can anyone at Jetbrains explain what is going on? I can't add an OpenID provider because the openIdProvidersConfiguration.xml file is overwritten whenever the YouTrack service starts.
0
Comment actions Permalink
And I can't find where the png's are supposed to go. There is no folder in the JAR or in the classes folder that matches the documentation.
0
Comment actions Permalink
It seems this issue is a duplicate of issue 1461. The documentation is missing some guidance. To add an OpenID provider, the JAR file must be modified, not the runtime files on the server. The /WEB-INF/classes/smartui/img folder does not exist in the JAR file and must be created for the PNG files.
0

Please sign in to leave a comment.