Access Oracle Cloud Analytics Instance dashboard - oauth-2.0

I have an Analytics Instance in Oracle Cloud. From my local spring boot application I want to visit the Analytics Instance dashboard.
Right now I put the Analytics Instance dashboard url in -
<a target="_blank"
href="https://OCI-analytics-instance-dashboar-url">OCI BI dashboard
</a>
Upon clicking on the url it takes me to idcs login page -
There I put the creds and finally view the analytics dashboard.
Now what I want to do is to omit the middle step. Is there any way to authenticate via REST API or OCI SDK behind the scene provided the idcs creds, upon clicking the analytics link it will directly show me the dashboard in a new tab?

Related

Integration of angular based web application with Freshdesk

WE have our current Angular based SPA application which we would like to integrate within Freshdesk ticketing system. It would be like a IFRAME on ticket page which will render our application and agent who is working on ticket can use our application in IFRAME.
I installed Freshdesk CLI and tried to create sample freshdesk app and it did show up in ticket window, but now when I tried to create another app using "fdk create", it does not even go to next step.
My questions:
can you direct me to correct documentation which will guide me step by step how I can integrate my SPA application in freshdesk using IFRAME apporach?
can you share some examples?
How can I direct freshdesk logged in agent to our SPA url within IFRAME, where our application will authorize freshdesk logged in agent to view our app?
Thanks in advance.
I have sample custom app that I am able to render in ticket view page. This way I am able to render my application home page, but how do I get authorization from Freshdesk and render my app in iframe?
Once I created the application using "fdk create" , now I am not able to create the another app using the same command.
Freshdesk now supports a newer App location called full_page_app that can be accessed from global side bar.
Example: To render an app in iframe, after you create your_first_app try adding <iframe> tag and embed your website in template.html
You can read this blog on how to do it.
Download the code from the sample app here.
Freshworks developer platform now supports OAuth 2.0 capabilities. As soon as you add an config/oauth_config.json with respect to this documentation, the app will be loaded only after OAuth handshake is performed. In either case you can use Basic Auth as well.
You cannot use same fdk create command if the directory is not empty. Make sure you create a new folder and navigate there first.

Access Not Configured for Google OAUTH Login

I am building a wordpress woocommerce site and am trying to get the users to login using G+.
Everything was going just fine till I changed the plugin I was using and added new redirect URLs to the OAUTH 2.0 Client ID.
Now the users get the error:
Access Not Configured. Google+ API has not been used in project
1033299751186 before or it is disabled. Enable it by visiting
https://console.developers.google.com/apis/api/plus/overview?project=1033299751186
then retry. If you enabled this API recently, wait a few minutes for
the action to propagate to our systems and retry. Please notify about
this error to the Site Admin.
Any help would be appreciated.
Thanks
You need to go to google developer console as it says under the project 1033299751186 and enable the Google+ api.
Your project needs to have each of the different APIs enabled that it needs to access.
Look for API manager -> Enable APIs (its a tab at the top)

bug with Google oauth when logged in in a different tab on a different service

This issue originally popped up when I was writing an application in Meteor.js but I think I have since traced it back to an issue with the google oauth service itself.
The general issue is that if you are already logged in to a single other google account, and then attempt to login to a different service using google oauth in a different tab, then the second one does not give you the option to choose which account, it just assumes you want to login with the account in the other tab and automatically jumps to logged in status:
Steps to reproduce are:
open a new incognito window
use one tab to login to an existing google service like gmail
after doing this use another tab to login to a different service through google oauth (e.g. stackoverflow...this should be done with a stackoverflow account that already exists)
At the last step the google login service should provide you with an option to select/switch to a different google account, but instead it automatically logs you in with the account that is active in the other tab.
This behavior is fine for google services because they always have the account switcher on the top-right:
but for stackoverflow and other applications that use google login they do not typically have this same google account switching functionality.
The only way to login with a different google account is to logout of the other google account and then re-try logging in to the secondary app.
I think the correct behavior would be to always show the account selector... or the login option window with the "sign in with different account" option below it

Any way to access resource from ADAL.NET Library (native apps) on a web browser without having to do login activity again?

I am currently creating Universal Windows App (native) that uses Microsoft Graph API. For authentication, I used ADAL for .NET library by calling GetTokenAsync() on the AuthenticationContext (https://github.com/AzureAD/azure-activedirectory-library-for-dotnet). The library will automatically prompt a login window for the user to enter its credentials.
Later I was required to open a OneNote URL on a web browser. I managed to get the note URL from the Microsoft Graph API (OneNote API) and then I realized when I tried to open the URL on a browser I was redirected to the Microsoft login page (http://login.microsoftonline.com).
This is not very good for user experience because they needed to enter their credentials twice (on the ADAL prompt window and on the browser). Is there any way whatsoever so that the user can do the login activity only once?
User needs to enter their creds on Microsoft online website but not twice. please debug the app and store this context ticket so you can use it in your win universial app. by the way, make sure that you are not pointing your app to two different api endpoints. go with the Microsoft graph api endpoint but not any other legacy endpoint for your app. Hope this helps.

Moodle 2.2 and oauth web app client Id not working

Trying to setup Moodle 2.2 with Google Drive Repository so Moodle students can upload their Google Docs into Moodle assignments.
Using google developers console I have created a Web Application Client ID and added it to Moodle's Google Repository settings.
When File Picker comes up for Moodle users trying to submit assignments Google Drive repository is available. When clicked on they get a Login button. Clicking login button opens an empty folder on Google Drive. They aren't asked for their own login credentials.
Have I made the correct type of API Client ID.
OR is there something else needed?
I did also Save the Consent Screen in the Google Project API.
Thanks in advance,
Shirley
Please check that you have entered the 'Authorized Redirect URI' exactly as shown on your Google Drive plugin config page in Moodle (copy and paste to make sure).
You should also make sure 'Drive API' is enabled on the API page of the Google Dev Console.
If both of these are already set correctly, you could try turning on developer level debugging in Moodle (if it isn't already) and see if that gives you any helpful debug messages when you try again.
Hope this helps.

Resources