Automate the login process of Oracle Cloud Interface

412 Views Asked by At

I have an web application a running on my local machine. There is a link in the view page to go to Oracle Cloud Interface dashboard. Upon clicking the link, idcs login page appears. Provided the credentials, the dashboard appears.

Is there any way to automate the login process under the hood? I don't want users to put credentials every time when anyone wants to visit the dashboard page.

2

There are 2 best solutions below

1
Karthik Hegde On

Have you tried using the token-based authentication method? You could use OCI CLI to get the token and then use it in your automation code. You can use the SDKs to automate the whole process and SDKs can use the same token for OCI authentication.

https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/clitoken.htm

Thanks.

0
Ashok CM On

Configure and enable Single Sign-on (SSO) on Oracle Cloud on your tenancy. Set SSO as default login. Refer: https://docs.oracle.com/en/cloud/paas/content-cloud/administer/enable-single-sign-sso.html

After this any external user logs in, he would be redirected to SSO login page, if the user is already logged in with SSO, it would even bypass SSO login and he will directly land in the OCI console/dashboard.