When I first started using gc.exe I ran the gc.exe profiles new command and it created the .gc\config.toml directory and file but since then I cannot get this command to work. I've renamed the .gc folder and even downloaded an updated gc.exe file but it will not create the file. I'm trying to setup an Implicit Grant profile and cannot get it to create the file.
This guide says it should prompt a browser to authenticate during the profile creation but I also don't get this. I'm trying to create PowerShell scripts that will authenticate within the script so I don't have to keep client secret keys within the config.toml file in plain text.
I'm trying to run it directly from the CLI. I'm not trying to script the creation of the profile, at least not yet. I've tried both through a Command Prompt as well as a PowerShell Window, both with and without elevated rights.
It did create the profile when using Client Credentials. I am running Windows 10 Enterprise LTSC build 19044. Using GC Version 96.0.0. And the Client ID that I'm using for the Implicit Grant is configured for Implicit Grant. Here's a screenshot of my command prompt. It successfully created the .gc folder and .toml file on the first run. I then deleted the folder and ran it again trying to create the Implicit Grant connection and it did nothing.
I had not tried the HTTP connection. I did just try it and it seems to have worked. My default browser is Edge. Had to add the HTTP URI to the OAuth client and it loaded, authenticated and created the .toml file.