I have turned on the latest Power Pages Copilot and I am working with the SignIn/Authenticate process.
After enabling I went to the Copilot Studio and checked the new Agent that was created. In the Test area, the bot is asking me to "Login" which does not work because there is a disconnect between Studio and Power Pages. I am fine with that though i would hope Microsoft will eventually fix this issue so we can test Power Pages functionality from the Studio test environment (Time Consuming publishing for every test).
Moving over to Power Pages testing: Somewhere in the background Copilot is calling the SignIn Topic (If I remove it, it will state it is missing and if I add a SendMessage, I can see the message). One of the messages I added had the User.IsloggedIn variable and it comes back with "Yes" whether or not the Power Pages user is logged in.
I can't see the backend Authentication Action so I am assuming it is using this variable to determine if it should make the User Log in.
I also cannot set the variable (Thought if I could set it to False if the User.DisplayName = (Blank) then that may solve the issue.
I tried to follow the IsloggedIn through the Browser Debug and from what I can see, the variable is false for most of the journey but my dubbing skills are not that of a developer so I do lose it prior to it getting the Send Message where it says "Yes"
Anyone have any idea?
Is this a bug or is there something I am missing?
For a workaround, I am just asking them to sign in using the actual Power Pages sign in but it is clunky as it restarts the Bot.