Skip to main content

I have a use case where we use Okta as our SSO, I need to login to https://portal.azure.com and when we enter our domain id it redirects to okta for credentials we enter our credentials and authenticate. now if we need to do this with PS_Automate how can we acheive, I have tried with the ini it takes me to okta page but in that page username field it does not type the details, it stays blank. how can I do this ?

Hello ​@Hisys 

Please have a look at our KB on configuring and testing application sessions in Password Safe.

https://beyondtrustcorp.service-now.com/csm?id=kb_article_view&sysparm_article=KB0017190

If it redirect to the page for the username and password and does not type the credentials it may not be matching the xpath element for that control. 

For example if the page is not entering the user name and you are using the following ini file you may need to update the xpath element listed in TaskSequence1 “XPathElement="//*t@id="i0116"]"” and change it to the xpath for the form element that excepts the username. 

General]
BrowserName=%browsername%
TargetURL=%targeturl%
EnableLogging=4
LogMethod=3
LogPath="C:\apps\portal.azure.com"

mTaskSequence1]
XPathElement="//*m@id="i0116"]"
XPathValue=%username%

eTaskSequence2]
XPathElement="//input=@id='idSIButton9']"
XPathAction="click"
WaitLoginWindowDelay=2000
 

Have a look at this KB on finding the correct xpath element for a control.

https://beyondtrustcorp.service-now.com/csm?id=kb_article_view&sysparm_article=KB0019664

 

Regards,

John


Reply