<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get currently authenticated user in Activiti Script Task in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/get-currently-authenticated-user-in-activiti-script-task/m-p/18038#M8006</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you are referring to Alfresco Process Service, you cannot decode a password back, it is a one way algorithm. Alfresco Process Services&amp;nbsp;use&amp;nbsp;&lt;A class="link-titled" href="http://docs.spring.io/autorepo/docs/spring-security/4.0.1.RELEASE/apidocs/org/springframework/security/crypto/password/PasswordEncoder.html" title="http://docs.spring.io/autorepo/docs/spring-security/4.0.1.RELEASE/apidocs/org/springframework/security/crypto/password/PasswordEncoder.html" rel="nofollow noopener noreferrer"&gt;PasswordEncoder (Spring Security 4.0.1.RELEASE API)&lt;/A&gt;&amp;nbsp; to encode the password and as you can see the only options are to match the stored password (if you know it) or encode a new raw password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to get the current logged in user, please use&amp;nbsp;&lt;/P&gt;&lt;PRE class="" style="color: #333333; background-color: #f5f5f5; border: 1px solid #cccccc; margin: 0px 0px 10px; padding: 9.5px;"&gt;com.activiti.security.SecurityUtils.getCurrentUserObject();&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jun 2017 20:42:51 GMT</pubDate>
    <dc:creator>cjose</dc:creator>
    <dc:date>2017-06-13T20:42:51Z</dc:date>
    <item>
      <title>Get currently authenticated user in Activiti Script Task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-currently-authenticated-user-in-activiti-script-task/m-p/18037#M8005</link>
      <description>I'm trying to get the username and password of the currently authenticated user in an Activiti Groovy Script Task. I'm currently using this code:&amp;nbsp;import org.activiti.engine.impl.identity.Authentication;out.println("Auth: " + Authentication.getName());out.println("Auth: " + Authentication.getCredenti</description>
      <pubDate>Tue, 13 Jun 2017 18:32:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-currently-authenticated-user-in-activiti-script-task/m-p/18037#M8005</guid>
      <dc:creator>jvaidya</dc:creator>
      <dc:date>2017-06-13T18:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get currently authenticated user in Activiti Script Task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-currently-authenticated-user-in-activiti-script-task/m-p/18038#M8006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you are referring to Alfresco Process Service, you cannot decode a password back, it is a one way algorithm. Alfresco Process Services&amp;nbsp;use&amp;nbsp;&lt;A class="link-titled" href="http://docs.spring.io/autorepo/docs/spring-security/4.0.1.RELEASE/apidocs/org/springframework/security/crypto/password/PasswordEncoder.html" title="http://docs.spring.io/autorepo/docs/spring-security/4.0.1.RELEASE/apidocs/org/springframework/security/crypto/password/PasswordEncoder.html" rel="nofollow noopener noreferrer"&gt;PasswordEncoder (Spring Security 4.0.1.RELEASE API)&lt;/A&gt;&amp;nbsp; to encode the password and as you can see the only options are to match the stored password (if you know it) or encode a new raw password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to get the current logged in user, please use&amp;nbsp;&lt;/P&gt;&lt;PRE class="" style="color: #333333; background-color: #f5f5f5; border: 1px solid #cccccc; margin: 0px 0px 10px; padding: 9.5px;"&gt;com.activiti.security.SecurityUtils.getCurrentUserObject();&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 20:42:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-currently-authenticated-user-in-activiti-script-task/m-p/18038#M8006</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-06-13T20:42:51Z</dc:date>
    </item>
  </channel>
</rss>

