Trying to create a cross-domain javascript call that will access data via the sp online api.
I've done the appregnew successfully, getting back confirmation that my client id and secret etc was generated.
I go next to appinv, and go to the appid field. Press the lookup button, and it just refreshes the page, with no details. Tried this with 2 different browsers (edge/chrome).
Any suggestions? Have not done this before.
Please fill the client id of created app in the inputbox and then click Lookup button:
Then title, App Domain and Redirect URL will be filled automatically.
Related
I'm using Stripe Connect Express accounts. Currently, I have a button that will generate a one-time link for a user to go to their dashboard, and I open the dashboard link in a new tab.
This can get blocked by popup blockers though-- if I instead redirect to it, is there a way I can add a back button (and maybe some additional branding) to the Express dashboard, so that the user can click to get back to my site?
Currently when using instagram access token by the url "https://www.instagram.com/oauth/authorize/?client_id=[id]&redirect_uri=http://localhost:3000&response_type=token&scope=public_content" I have such an error
"This request requires scope=public_content, but this access token is not authorized with this scope. The user must re-authorize your application with scope=public_content to be granted this permissions."
I observed the internet and found that scope query part should be added to the end of API URL. That is how I constructed my url. But as you see it resulted in error.
I tried to find out the reason on app permissions page. There is a button "Start submission". I clicked it and got the list of radio buttons. But when I clicked on " I want to display my Instagram posts on my website." then I got:
You do not need to submit for review for this use case. If you are a developer and you want to display Instagram content on your website, then you do not need to submit your app for review. By using a client in sandbox mode, you can still access the last 20 media of any sandbox user that grants you permission.
So I finally got lost. Looks like the solution is pretty simple because in instafeed.js plugin no more information is provided. But I can not resolve it by myself.
change your scope to basic should work.
The link has 'public_content'
https://www.instagram.com/oauth/authorize/?client_id=&redirect_uri=http://localhost:5000&response_type=token&scope=basic
When I go to Manage Clients in my Instagram developer page I can create a client (i.e. Register a New Client) no problem. What I can't do is change the redirect_uri value. In trying to move from local dev to staging/production I needed to change the redirect uri, but I can't do that in the dashboard without registering a new client. It tells me Submission error: please fill out all required fields, even if I put the same exact redirect_uri in that worked previously.
I also get some error text on the Permissions tab: Company Name, Contact Email and Privacy Policy URL are required to start a submission. I didn't need any of these fields to register a new client, but I do to edit it? And also, isn't a "submission" when I'm moving from sandbox to production? I'm not trying to move from sandbox yet.
The workaround is to delete the registration and create a new one, but it would be nice just edit it. This method also resets my client secret as well, meaning I have to update my ENV variables.
Thanks,
Gene
After entering your redirect uri, you need to hit tab. If you do it right, the url should turn into a chip:
Go to "Manage Clients" -> "Edit" -> "Security" tab
edit your redirect_uri
"Update Client"
I am using oidc-token-manager with OAuth and identity server to setup authorization/authentication on my site. All the functionality is working fine . I am just wondering what the id parameter is that is being sent to identity server
https://foobar.net/identity/ui/login?id=216257a45dbd3041eee88fa8aa5d3b0cidc
and more specifically can i use that, in some form, to add a button on identity server to send the user back to the page that they came from. To be clear the post login redirect is working fine . once the user logs in with his/her credentials it automatically sends them back to the website. However there are 2 senarios that i want to take into account to extend the redirection.
case 1 : If the user clicks login from the website and then is like "nah dont really want to log in anymore have to afk and deal with some stuff just get me out of here will come back to it later"
case 2 : The user is not registered yet and clicks the login button from the website instead of the register button . On the login in page there is a "dont have an account? create one now" button. But in its current form it redirects to the registration with no way to set the same flow as the login where there is an automatic redirect back to the website, which will actually be a specific page that tells the user that he has registered and has a time period to check his email to authenticate himself to the site.
This is using an angular app with the set configuration for the OidcTokenManager as
var config ={
authorization_url:'https://foobar.net/identity/connect/authorize',
client_id:'foobar_id',
redirect_uri:'http://localhost:5060/callback.html', // for testing
response_type:'token token_id',
scope:'fooscopes',
authority:'https://foobar.net/identity',
popup_redirect_uri:'http://localhost:5060/login-dialog.html',
silent_renew: true
};
Any help would be awesome . thanks
The id parameter that is passed to the login page is part of how IdentityServer manages the state for pending authorization requests. It's the id of the cookie that holds the SignInMessage that IdentityServer uses internally.
For case 2 if you click one of the additional links the id is passed along. It is then the responsibility of the custom page to get the user back to the login page with that id. I believe we have samples showing this.
I'm using Passport and Facebook Strategy for authentication. It works fine from within my website. Clicking the login button makes a get request to auth/facebook/ and I succesfully log in the user.
I have the same url in the app details:
However the App Center Visit Website button adds this to the query:
{ fb_source: 'appcenter',
fb_appcenter: '1',
code:xxxxx...., // this is what i want
}
And upon clicking i get this error:
"Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request"
What i don't get is that this works AT THE SAME time on my website. How do I handle this extra parameters and log in the user upon clicking on the visit website button?
I also posted another question. I've been dealing with this for a while now and can't get my head around it...
note:
As far as I know, it is required for app approval that the Visit Button authenticates the user upon clicking and doesn't prompt them with another login message.