Authentication into SCM manager from another application.

85 views
Skip to first unread message

Greg Borbonus

unread,
Oct 25, 2014, 7:19:17 PM10/25/14
to scmma...@googlegroups.com
Hi,


I am trying to write a plugin into an app that will automatically log someone into SCM manager(no prompt).


Can you tell me the format of the cookie that SCM manager generates?

Thank you,
Greg Borbonus


Sebastian Sdorra

unread,
Oct 28, 2014, 3:23:46 AM10/28/14
to scmma...@googlegroups.com
Hi,
I think it is not possible to create the session cookie outside of scm-manager, because the cookie is created by the application server and contains only the session id. A much better solution is to use a SSO system like cas or crowd, if you do not have a sso in your company, you can use a dirty hack and send the username and password from you webapp to the authentication endpoint of scm-manager (https://docs.scm-manager.org/restdocs/1.41/resource_AuthenticationResource.html#path__authentication_login.html).

Sebastian

--
You received this message because you are subscribed to the Google Groups "scmmanager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scmmanager+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Greg Borbonus

unread,
Oct 29, 2014, 11:02:52 PM10/29/14
to scmma...@googlegroups.com
Is it possible to create an authentication plugin for SCM manager that uses an external system to authenticate?

If so, can you give me a sample of how it would work/be coded?

Sebastian Sdorra

unread,
Oct 30, 2014, 2:49:59 AM10/30/14
to scmma...@googlegroups.com
There are a lot of plugins, which are using an external system for authentication. Have a look at the authentication section at http://plugins.scm-manager.org/scm-plugin-backend/page/index.html. Please read the following page to get started https://bitbucket.org/sdorra/scm-manager/wiki/howto-create-a-plugin. The page contains an authentication sample.

Sebastian
Reply all
Reply to author
Forward
0 new messages