Authorization redirect url automation tests
AnsweredHi,
I am working on the automation tests of the OAuth2 Box application authorization process in our system.
The way our tests works is that we are dynamically creating testing virtual machines running our application with box integration and we have one machine that has the selenium grid.
For each test instance, the virtual machine is created and the selenium grid connects to the machine and executes the tests.
Now there is a problem with the redirect URL, the URL will be always different because the selenium grid connects to the dynamically VM by IP address (OAuth2 Box application redirect URL doesn't support wildcards or to be empty) and we cannot make the URL static because we need to be able to run multiple tests instances in the same time.
What would be your suggestion to deal with this problem? Or is there a way to enable wildcards for our testing application?
Looking forward to hearing from you
- Patrik
-
Official comment
Hi,
Unfortunately, the redirect url is configured in the dev console - and it cannot be altered via the API. It also will soon be required to have strict matching between the value in the developer console and the value passed in via an authorization call. I don't know your full use case, so I can't really advise beyond that.
Thanks,
Alex, Box Developer Advocate
Comment actions
Please sign in to leave a comment.
Comments
1 comment