Forum Discussion
Thanks for the feedback regarding SQL, but this code works in a Groovy script.
What I need help with is understanding in what ways the script editor inside the OAuth 2 profile GUI differs from the capabilities of a script inside a Groovy script. Also, if there is a limitation on what you can do within the OAuth 2 automation profile scripting, what options exist for making a SQL database call from within the automation profile to get our unique 6-digit security token during OAuth 2 automation profile to validate the user?
When running the code in the original post in the OAuth2 automation scripts GUI I get an error that says:
ReferenceError: Can't find variable: Sql]
if I use an "import Groovy.sql.Sql" at the beginning I get an error that says:
Error: syntax error (scriptToValidate#1)
So, it seems like the "Automation scripts for OAuther 2 profile" screen has some limitations on what sort of code can execute within it, but I'm not finding anything in the documentation, or online, to indicate that limitation.
Thanks again!
Hi all,
Thank you, richie, for your reply.
Rmuenks1, let me refer to some of our Community leaders, maybe they will be able to assist.
groovyguy , avidCoder , nmrao , HimanshuTayal, could you please have a look at the issue? Do you have any ideas or suggestions?
Community, feel free to post your comments!
Thanks everyone in advance!