access-token

ios - WACloudAccessControlClient may not respond to setToken?

﹥>﹥吖頭↗ 提交于 2019-12-12 03:55:42
问题 I'm trying to get token,but getting warning message like 'WACloudAccessControlClient, may not respond to setToken - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { NSURL *url = [[NSURL alloc] initWithString:@"URL"]; if(url) { /* make the call re-entrant when we re-load the content ourselves */ if([url isEqual:[request URL]]) { return YES; } [url release]; } url = [[request URL] retain]; NSString*

error:invalid_scope - IdentityServer Flow.ClientCredential

一个人想着一个人 提交于 2019-12-12 03:49:49
问题 I'm having a Client in my IdentityServer3 new Client { ClientName = "Client Credentials Flow Client", Enabled = true, ClientId = "clientcredentials.reference", Flow = Flows.ClientCredentials, ClientSecrets = new List<Secret> { new Secret("secret".Sha256()), }, AllowedScopes = new List<string>() { "read", "write" } } I hosted the Token Service in my local IIS and I tried to ping the Token using Postman, but it given an error {"error":"invalid_scope"} Host URL: https://localhost:5775/core

Getting a refresh token from google api

不想你离开。 提交于 2019-12-12 03:34:51
问题 I've looked through other posts and they're either unanswered (Stopped getting refresh token from google's API) or no longer correct it seems. I am trying to get a new refresh token from the google api, I have access_type = 'offline' and approval_prompt = 'force' but the response I'm getting back does not contain a refresh token. The other posts I have looked through says that having those two parameters should return me a refresh token. Any ideas? EDIT: I was thinking perhaps I could revoke

Saving Facebook access_token in NSUserDefaults on iOS

这一生的挚爱 提交于 2019-12-12 02:08:52
问题 iOS beginner here. I'm using the following code to save my facebook accessToken and expirationDate in NSUserDefaults: facebook = [[Facebook alloc] initWithAppId:@"225083222506272"]; [facebook authorize:nil delegate:self]; NSString *access=[facebook accessToken]; NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSDictionary *appDefaults = [NSDictionary dictionaryWithObjectsAndKeys:access, @"accessToken",[facebook expirationDate], @"expirationDate",nil]; [defaults

Browser applications and auth tokens again

大城市里の小女人 提交于 2019-12-12 01:26:14
问题 I've been reviewing how we should handle OAuth authentication in our browser application (SPA), and there's a whole bunch of articles out there that makes it all really confusing... I'm really missing something concrete and best practice guidance for a very simple setup. We have this ASP.NET Web API 2 that's protected using tokens issued by IdSvr3. So far so good. Works with native clients and server apps. Now to the browser stuff... Looking at a sample such as JavaScriptImplicitClient which

Access public pictures without an access token?

喜你入骨 提交于 2019-12-11 20:39:54
问题 I created a php module for Drupal that pulls a public album and display pictures inside it. I discovered that the module suddenly stopped working. I googled and looks like even a public album requires an access token now. I see access token field on https://developers.facebook.com/tools/explorer/?method=GET&path=10150146071791729 In this case, how do I fix this problem? It looks like even offline_access is gone now. Do I must ask users to accept a certain permission? What permission? It's a

Check if Ouath token is invalid

你。 提交于 2019-12-11 19:27:02
问题 Is there a way to send a request to Facebook and Twitter with a token to see if it has been invalidated. I know if I change my password on facebook I invalidate my tokens so if a user of my app does this I would like to display that as inactive and prompt them to re-auth their account to continue using it. 回答1: Just use the token against https://graph.facebook.com/me. If it has expired, it'll tell you. 来源: https://stackoverflow.com/questions/8748918/check-if-ouath-token-is-invalid

Facebook Messenger: get access token of linked account

白昼怎懂夜的黑 提交于 2019-12-11 17:12:00
问题 First off, I'm not looking for the access token of a facebook account. I (or my facebook messenger bot) need the access token of a linked 3rd party account. The account was successfully linked as described here: https://developers.facebook.com/docs/messenger-platform/identity/account-linking Slightly off topic: The first issue I noticed that does not meet the OIDC/OAuth2 specs is, that the redirect URI given to the /authorize endpoint expects a param " authorization_code " instead of "code"

How to prevent token substitution attack?

旧巷老猫 提交于 2019-12-11 16:56:11
问题 Suppose we have two users doing following operation - User1 requested to the auth server for access token and granted also. Now user1 save the token into localstorage/cookie for future api access. Now User2 approach User1 browswer and get the access_token some how. Now User2 call the api using user1's access_token and get the access too without login. Now Can we validate the token anyhow? 回答1: You can't avoid that happening. However, the token should have an expiration time, so the attacker

Get tagged photo without access token

安稳与你 提交于 2019-12-11 16:28:40
问题 I have some problem on this. Can I get public tagged photo from Instagram api without getting any code or access token? Please share any link for reading because I cannot found any. I feel it is less knowledge about Instagram api on web. Thanks! 回答1: You can pull public media by tag without authentication. Take a look at the API documentation for the get /tags/tag-name/media/recent endpoint. Here's the URL: http://instagram.com/developer/endpoints/tags/#get_tags_media_recent The documentation