I am trying to link my smart home skill to my OAuth 2.0 server.
The error happens when I redirect the Access Token request to:
https://pitangui.amazon.com/api/skill/link/XXXXXXXXXXXXXX?access_token=b6bcd5a1870322898864d1a5284af5abac58d619&state=xyz&token_type=Bearer
I also tried:
https://pitangui.amazon.com/api/skill/link/XXXXXXXXXXXXXX#access_token=b6bcd5a1870322898864d1a5284af5abac58d619&state=xyz&token_type=Bearer
But the erros persist.
Anyone know what I'm doing wrong?
Related
I try to fetch a refresh token for my alexa smarthome skill. For this I'm using the following command ask util generate-lwa-tokens --client-id <client_id> --client-confirmation <secret>
The outcome is a Http 400 with "localhost is not whitelisted". The message points to adding the url under Web Settings-> return url.
However there is so such option in the Alexa developer console.
400 Bad Request
The redirect URI you provided has not been whitelisted for your application. Please add your redirect URI in the 'Allowed Return URLs' section under 'Web Settings' for your Security Profile on Amazon Developer Portal.
The place where I can add a return urls is in the Amazon developer console under Security profiles. But I don't see a way to connect this profile with my alexa skill.
My question is, how to get a refresh token for an Alexa skill.
The idea is to use this token for automated testing.
Usually when that error message occurs, it means that the deviceInfo::productId value in AlexaClientSDKConfig.json does not match the corresponding value from the AVS developer console.
Im making a dashboard for my discord bot on replit with Node.Js but when I click "add to discord/add to server" it says "Invalid OAuth2 redirect_uri" how can I fix this?
Kind reminder, when asking questions make sure to provide the most amount of details to further assists others in assisting you.
The error derives from the redirect_uri parameter in your oauth2 link not matching with those in the developer portal.
In your developer portal go to OAuth2 -> General -> Redirects
Make sure you have one created.
Then go to the URL Generator, select your scopes, and then in the option where it says SELECT REDIRECT URL set that to the url you just created/selected.
My web app, stockbets.io, uses Facebook login for oauth. On a desktop web browser this works fine, and none of my pilot users have had any trouble signing in. When they try the exact same flow on mobile, however, we get this error:
URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.
Here is a snapshot of my settings panel for the Facebook Login service:
This seems like it should be straightforward, but I'm at a loss as to why this works on desktop but not mobile. The expected behavior, if you'd like to test, is that you should receive a message saying that the product is in early beta but send us an email if you'd like early access. What happens currently is the above error message.
Any tips?
According to GitHub, this seems like something related to the react-facebook-login library. According to a similar thread on GitHub... looks like you'll just need to make sure the following props are added to you React component.
<FacebookLogin
appId="13xxxxxxxxxxx09"//TODO: Replace yours...
autoLoad={false}
fields="first_name, last_name ,email, picture"
callback={(resp)=>this.responseFacebook(resp)}//TODO: Replace your callback
cssClass="fbtn"
disableMobileRedirect={true}
/>
I'm trying to redirect to a website, say xyz.com, using a breadcrumb in my react app from localhost. The redirect from xyz.com to localhost works fine. I've added the link to xyz.com in an 'href' in my breadcrumb. When I click on it, I get a message saying "This request was blocked during CSRF Filtering!" and a 503 error. Also, xyz.com has a etcd service registry that I can use but I don't know how to. I'm new to server-side functionality and don't have much idea about passing headers, etc. How do I solve this problem?
Thank you!
I have enabled azure web authentication in my web application and when unauthenticated users tried to access it, azure redirects it to https://example.azurewebsites.net/.auth/login/aad/callback page and shows the message "You do not have permission to view this directory or page."
For non-authorized users, instead of showing above message I want to redirect to another custom page to show another message.
Thanks in advance.
Thanks,
Tushar
Unfortunately , Azure AD doesn't support this feature for now.
I understand what you want to achieve. You can upvote this idea in this User Voice Page. Azure AD Team will review it.
Hope this helps!
ACS gives you error messages in encoded JSON like this
{"context":null,"httpReturnCode":401,"identityProvider":"Google","timeStamp":"2010-12-17 21:01:36Z","traceId":"16bba464-03b9-48c6-a248-9d16747b1515","errors":[{"errorCode":"ACS30000","errorMessage":"There was an error processing an OpenID sign-in response."},{"errorCode":"ACS50019","errorMessage":"Sign-in was canceled by the user."}]}
First you need to enable the "Error URL feature" in management portal, for your ACS namespace-> Edit Relying party-> Error URL.
You need a helper classes to decode the JSON. steps here
Configure anon access to them Error page.
With this you will have full control of the page, you can show the error message the way wants and brand the page to match the look and feel of your relying party web.