oauth-2.0

How to use OAuth with deployed web apps?

谁说我不能喝 提交于 2021-01-28 06:20:39
问题 We are an ISV with a web application. Unlike StackExchange or Trello, this web app is installed at customer sites, so each web app installation has a separate URL. i.e.: http://app.example.com/ and http://app.microsoft.com/ could both be valid URLs for our app. We want to use OAuth to access the user's Google data (a simple first-time-use import to prime the app database). Our problem is trying to figure out how to make this work. OAuth for web apps (client-side) depends on a redirect URL

JWT validation failure error in azure apim

二次信任 提交于 2021-01-28 05:25:45
问题 I am currently trying to implement Oauth2.0 to protect API using below documentation https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-protect-backend-with-aad And currently using the DEMO CONFERENCE API provide by azure apim to test the implementation. And currently receiving error during test in developer portal as : "message": "JWT Validation Failed: Claim value mismatch: aud=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx.." Compared the token passed with the claim value by

Invalid parameter value for redirect_uri: Invalid scheme: <http:

半世苍凉 提交于 2021-01-28 02:58:53
问题 Good Evening - I am using the following youtube tutorial named "Tutoriel PHP - Importer des contacts Google" to try and import google contacts https://www.youtube.com/watch?v=ysNVe0TaVFs When I click on the link to import google contacts, instead of asking for permission and getting the contacts and displaying them on screen, there is this problem - I get the following error: Error: invalid_request Invalid parameter value for redirect_uri: Invalid scheme: <http://chi.fis.com/mut_folder/index

consume Oauth2 (authorization code) rest api with spring rest template

寵の児 提交于 2021-01-28 02:43:50
问题 I'm trying to consume a rest web service in spring integration project. This web service is secured with oauth2 (authorization code).Any idea how to achieve this? I tried using OAuth2RestTemplate but it gave me an error: org.springframework.security.oauth2.client.resource.UserRedirectRequiredException: A redirect is required to get the users approval Below is my code. import java.util.Arrays; import org.springframework.security.oauth2.client.token.AccessTokenRequest; import org

Specify OAuth token in GET URL

匆匆过客 提交于 2021-01-27 07:11:43
问题 My REST service uses OAuth 2.0 authentication. I want to test some GET URLs using the browser (without using a client). Can I pass the bearer token in the URL ? URL : www.example.com/employee/employeeId 回答1: You can pass it in the access_token query parameter, see https://tools.ietf.org/html/rfc6750#section-2.3, but as noted in the other answer, it is not the preferred way of passing a token. It may end up in logs, browser cache etc. On this method the spec says: Because of the security

FOSOAuthServerBundle and custom authentication provider

依然范特西╮ 提交于 2021-01-27 06:37:35
问题 Edit: Found the error. There is a tiny little peace of code in \vendor\friendsofsymfony\oauth-server-bundle\FOS\OAuthServerBundle\Resources\config\oauth.xml which says: <argument type="service" id="fos_oauth_server.user_provider" on-invalid="null" /> So when your service definition in config.yml is wrong or just a typo (from the original docs) If you're authenticating users, don't forget to set the user provider. Here's an example using the FOSUserBundle user provider: # app/config/config.yml

FOSOAuthServerBundle and custom authentication provider

倾然丶 夕夏残阳落幕 提交于 2021-01-27 06:36:38
问题 Edit: Found the error. There is a tiny little peace of code in \vendor\friendsofsymfony\oauth-server-bundle\FOS\OAuthServerBundle\Resources\config\oauth.xml which says: <argument type="service" id="fos_oauth_server.user_provider" on-invalid="null" /> So when your service definition in config.yml is wrong or just a typo (from the original docs) If you're authenticating users, don't forget to set the user provider. Here's an example using the FOSUserBundle user provider: # app/config/config.yml

FOSOAuthServerBundle and custom authentication provider

谁说胖子不能爱 提交于 2021-01-27 06:36:01
问题 Edit: Found the error. There is a tiny little peace of code in \vendor\friendsofsymfony\oauth-server-bundle\FOS\OAuthServerBundle\Resources\config\oauth.xml which says: <argument type="service" id="fos_oauth_server.user_provider" on-invalid="null" /> So when your service definition in config.yml is wrong or just a typo (from the original docs) If you're authenticating users, don't forget to set the user provider. Here's an example using the FOSUserBundle user provider: # app/config/config.yml

Bad Request when using Google OAuth2.0

狂风中的少年 提交于 2021-01-27 06:32:10
问题 I am receiving a 400 bad request when using Google OAuth from within Salesforce. The following error is in regards to invalid grant_type, but if you look at the documentation under 'Using Refresh Token' you will see that it is correct. https://developers.google.com/identity/protocols/OAuth2WebServer Error: { "error": "unsupported_grant_type", "error_description": "Invalid grant_type: " } I am attempting to exchange a refresh_token for an access token and can successfully do it using CURL,

How does one securely authenticate a React client via OAuth if everything is client-side?

隐身守侯 提交于 2021-01-27 05:07:38
问题 I'm trying to use OAuth with a React (frontend) and Meteor (server) project. The service that I'm trying to OAuth to is not one of the popular widely supported ones (i.e. Google, Facebook), so I've been having some trouble figuring out how to go about this. Meteor has support for a secure server-sided 'settings.json' file that stores your app's api keys and secrets, which I would presumably use to authenticate the client. I just don't understand how. I found this package https://www.npmjs.com