• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Util PKCE not found

New Here ,
Jan 27, 2024 Jan 27, 2024

Copy link to clipboard

Copied

I'm tryinge to the function GeneratePKCE() from the object pkce but getting this :
Could not find the ColdFusion component or interface utils.deps.pkce.pkce.

Is a way to install this tool PKCE to Coldfusion?

It must be used for authentication with openID.

Thanks

Views

179

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 28, 2024 Jan 28, 2024

You can install it for ColdFusion as follows:

  1.  Download and install CommandBox.
  2.  Use CommandBox to install the Proof Key for Code Exchange (PKCE) tool, using the command install pkce

 

A practical example with:

  • ColdFusion 2021 Update 12 on 64-Bit Windows 10 
  1.  Download CommandBox., choosing the "Windows JRE-64"version. It is a ZIP file. 
  2.  Extract the zip to, for example, C:\temp.
         In this case, the result is the directory C:\temp\commandbox-jre-win64-5.9.1.
  3.  Double-click on box.exe , open
...

Votes

Translate

Translate
Community Expert ,
Jan 28, 2024 Jan 28, 2024

Copy link to clipboard

Copied

You can install it for ColdFusion as follows:

  1.  Download and install CommandBox.
  2.  Use CommandBox to install the Proof Key for Code Exchange (PKCE) tool, using the command install pkc...

 

A practical example with:

  • ColdFusion 2021 Update 12 on 64-Bit Windows 10 
  1.  Download CommandBox., choosing the "Windows JRE-64"version. It is a ZIP file. 
  2.  Extract the zip to, for example, C:\temp.
         In this case, the result is the directory C:\temp\commandbox-jre-win64-5.9.1.
  3.  Double-click on box.exe , opening the Command Prompt, and wait till you get the CommandBox prompt.
  4.  At the prompt, type update --system and press [ENTER]. Wait for CommandBox to completely update.
  5.  At the prompt, type install pkce and press [ENTER].  That will install/create the PKCE package.
        In this case, the new directory C:\temp\commandbox-jre-win64-5.9.1\pkce and the new file C:\temp\commandbox-jre-win64-5.9.1\box.json appear. Verify that the new directory contains the component pkce.cfc.
  6.  Copy the pkce directory to a location in your ColdFusion application.
  7.  (In your ColdFusion application) Create the page pkceTest.cfm within the directory pkce and launch it.
    <!--- pkceTest.cfm --->
    <cfscript>
     objPKCE = new PKCE();
     struPKCE = objPKCE.generatePKCE();
     writedump(var="#struPKCE#", label="PKCE object");
    </cfscript>
    ​



    BKBK_1-1706449555329.png

     

    BKBK_2-1706451356510.png

     

    BKBK_3-1706452627125.png

     


     

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 29, 2024 Jan 29, 2024

Copy link to clipboard

Copied

It works fine thanks for help.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 29, 2024 Jan 29, 2024

Copy link to clipboard

Copied

LATEST

Glad to have helped.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation