access-token

GAE endpoint - access_token doesn't authenticate User

人盡茶涼 提交于 2019-12-13 07:31:05
问题 I'm trying to make an authenticated call to a GAE endpoind method from a plain javascript environment (no gapi client), using the steps listed at: Google Accounts Authentication and Authorization The code is resembling the implementation found in the googleAuth.js file from: Google Auth (OAuth 2.0) for Titanium. The code is returning an access_token which is valid for getting user information from googleapis, using: curl https://www.googleapis.com/plus/v1/people/me?access_token=ya29.iA...

response.Error “Forbidden” in IdentityServer3 Flows.ClientCredentials

十年热恋 提交于 2019-12-13 07:08:29
问题 I'm having a Client in my IdentityServer3 new Client { ClientName = "Client Credentials Flow Client With Certificate", Enabled = true, ClientId = "cc.WithCertificate", Flow = Flows.ClientCredentials, ClientSecrets = new List<Secret> { new Secret { Value = "61B754C541BBCFC6A45A9E9EC5E47D8702B78C29", Type = Constants.SecretTypes.X509CertificateThumbprint, Description = "Client Certificate" }, }, AllowedScopes = new List<string> { "read" } }, In Client Windows Form application I'm using "Client

Facebook App: How to Remove (or) make expired the previous used Access Tokens?

天大地大妈咪最大 提交于 2019-12-13 06:15:16
问题 I accidentally gave/passed the Access Token (The one i generated from Graph API Explorer) to my friend. Because while i was doing App Development for my Demo-App, i accidentally passed the testing url like: https://graph.facebook.com/me/friends?access_token=XXXXose0cBAJdNvsidbmeGE0cFaqv67nBxNuPjFh2y1E0f8J93K1IlCBYDW49LCfein6hkZBZCKIUmZCTACeovVcVrorrVhP2BScUIujD5Y1wT232ceXXXXXXXXX .. which URL contained the access_token inside. How to make it expired/useless please? 回答1: Unfortunately, simply

Impersonate Access Token with Backup And Restore Privilege for Copying File Across Domain

怎甘沉沦 提交于 2019-12-13 05:39:54
问题 Computer A is on Domain A Computer B is on Domain B Domain A and Domain B have a trust allowing Accounts to connect to the other domain's computers Account A is Admin on Computer A and has Backup&Restore Privileges Account B is Admin on Computer B and has Backup&Restore Privileges Account A IS NOT Admin on Computer B and does not have Backup&Restore Privileges Account B IS NOT Admin on Computer A and does not have Backup&Restore Privileges A person owns both Account A and Account B. They want

firebase auth with MIcrosoft Graph (accessToken)

烂漫一生 提交于 2019-12-13 04:18:19
问题 I am super hopeful someone can help me - I'm kind of stuck. I'm happily using firebase auth with Microsoft AD. My AuthProvider is firebase.auth.OAuthProvider('microsoft.com') . When I call firebase.auth().signInWithPopup() with that provider, everything works GREAT. I can pick out the accessToken from the resulting UserCredential and access Microsoft Graph api's no problem (yay!). Firebase persists and renews the authentication and my app gets the expected callback via onAuthStateChanged with

WSO2 AM access token expires after one access time

戏子无情 提交于 2019-12-13 04:16:45
问题 I setup IS as Key Manager for API-M, then I use Postman to get the access token from IS with Client Credential Grant Type. However, the above token can be only used for the 1st request only. I used it with the second request, I found following It seem like the token expired after one access time. Is there any document explains about this, and what should I change ? 回答1: The issue come from the different time set up on the servers of API-M and IS. With the first time the request comes, I

get a new short-lived user access_token

半城伤御伤魂 提交于 2019-12-13 01:04:57
问题 I need to renew a long-lived access token. I read Renew long lived access token server side topic and wrote a code as follows: <?php $code = $_REQUEST["code"]; if(empty($code)) { $dialog_url = "https://www.facebook.com/dialog/oauth?" . "client_id=$app_id" . "&redirect_uri=$my_url" . "&scope=..." ; echo("<script> top.location.href='" . $dialog_url . "'</script>"); } else { $response = file_get_contents("https://graph.facebook.com/oauth/access_token?" . "client_id=$app_id" . "&redirect_uri=$my

gsutil cp hangs on obtain initial access_token

浪子不回头ぞ 提交于 2019-12-13 00:37:16
问题 When using gsutil to copy a file it hangs indefinitely: gsutil cp gs://gcp-public-data-sentinel-2/index.csv.gz . Running gsutil with with debugging gsutil -D cp outputs: gsutil version: 4.28n boto version: 2.48.0 python version: 2.7.13 |Anaconda custom (64-bit)| (default, Dec 20 2016, 23:09:15) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] OS: Linux 2.6.32-504.23.4.el6.x86_64 multiprocessing available: True using cloud sdk: True pass cloud sdk credentials to gsutil: True config path(s): /home

AADSTS50013: Assertion audience claim does not match the required value

∥☆過路亽.° 提交于 2019-12-12 21:39:42
问题 I've got a single page app that authenticates users in Azure using adal-angular.js/adal.js [client]. The returned token is inserted into the auth header and passed to a web API [server]. This web api generates a new access token for the app using the on-behalf-of workflow (https://github.com/Azure-Samples/active-directory-dotnet-webapi-onbehalfof) This token is then used to call a downstream API [API1]. So the downstream API then repeats this process to get a new token to call another API

How to make a request for an access token using the refresh token with Google OAuth 2.0

老子叫甜甜 提交于 2019-12-12 18:28:12
问题 i think the context of my question is clear enough, but i would like to specifiy that i'm using a OAuth for Web Application, so I used this Example provided by Google: OAuth 2.0 for WebApplication I understood that i have to create (for example in the same class (extended by HttpServlet)) a doGet method (obviously in Override) to obtain the correct flow to authorize the user with own scopes, so something like this: protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws