oauth

How to add parameters to redirect_uri in WebApi Oauth Owin authentication process?

﹥>﹥吖頭↗ 提交于 2019-12-23 04:58:34
问题 I'm creating a webapi project with oauth bearer token authenthication and external login providers (google, twitter, facebook etc.). I started with the basic VS 2013 template and got everything to work fine! However, after a user successfully logs is, the owin infrastructure creates a redirect with the folllowing structure: http://some.url/#access_token=<the access token>&token_type=bearer&expires_in=1209600 In my server code I want to add an additional parameter to this redirect because in

MVC4 OAuth HasLocalAccount method throws InvalidOperationException

本小妞迷上赌 提交于 2019-12-23 04:49:08
问题 I have a MVC4 Application that spends debug process locally without enabling Register External site clients (like twitter , etc...) yet. And I'm Using custom membership user and role providers. But unfortunately when I browse the 'Manage' Page get this error: Operation is not valid due to the current state of the object. And the stack trace : [InvalidOperationException: Operation is not valid due to the current state of the object.] Microsoft.Web.WebPages.OAuth.OAuthWebSecurity.VerifyProvider

Ejabberd OAuth / REST 401 Unauthorized

妖精的绣舞 提交于 2019-12-23 04:47:35
问题 I'm trying to request the Ejabberd REST Web Services with the /api/connected_users endpoint but the request always returns me 401 Unauthorized HTTP errors. Here is my OAuth configuration. - port: 5280 module: ejabberd_http request_handlers: "/websocket": ejabberd_http_ws # OAuth Support "/oauth": ejabberd_oauth # ReST API: "/api": mod_http_api web_admin: true http_bind: true register: true captcha: false ... commands_admin_access: configure commands: - add_commands: user oauth_expire: 3600

Microsoft Web Addins “Office.context.mailbox.getCallbackTokenAsync” returns response “Failed” on my Exchange 2016 but works in office 365 online

ぐ巨炮叔叔 提交于 2019-12-23 04:40:43
问题 We have exchange 2016 sever which we have updated to CU-12 recently because we thought it might be the sever update thing, but now it seems it don't works with update too I am simply using Rest API with the help of passing token to get some fields from the current mail using Addin. But It throws an response "failed" every time when the function "Office.context.mailbox.getCallbackTokenAsync" is called. Code: 1 Office.context.mailbox.getCallbackTokenAsync({isRest: true, "asyncContext" : this._

Linkedin - iOS - Detect user cancel login

只愿长相守 提交于 2019-12-23 04:40:08
问题 I have the linked in OAuthStarterKit running and working (the web view is slow!) the basic view comes with some basic code for detecting when the popup webview is closed (see the following function). The problem is, it can't detect when the user clicks the cancel button when they are presented with a Linkedin sign-in page. url: https://www.linkedin.com/uas/oauth/www.core.me . How would I go about filtering the 'canceled' page? Filtering/closing code - (BOOL)webView:(UIWebView*)webView

Stored Android Accounts for Authentication of Rails + Devise Accounts

醉酒当歌 提交于 2019-12-23 04:26:15
问题 Summary: I'm trying to use stored Google accounts on an Android application to authenticate users in a native application, with an API provided by a Rails 3 + Devise application, and I'm stuck. Details: We have an application (http://push-poll.com) which lets users gather feedback from a bunch of their friends. We've also built a native Android application. Our web app allows you to log in with your Google account, and we want to extend that functionality to the native Android app. The web

message NeedPermission when get token code

不问归期 提交于 2019-12-23 03:24:06
问题 I use the following snippet to get token: private class task extends AsyncTask<Void, Void, String> { @Override protected String doInBackground(Void... params) { Bundle appActivities = new Bundle(); appActivities.putString( GoogleAuthUtil.KEY_REQUEST_VISIBLE_ACTIVITIES, Constants.ADD_ACTIVITY_SCHEME + " " + Constants.BUY_ACTIVITY_SCHEME); String serverClientID = "My_Client_Id"; String scopes = "oauth2:server:client_id:" + serverClientID + ":api_scope:" + Scopes.PLUS_LOGIN + " " + Scopes.PLUS

Unsupported grant type in Google OAuth

和自甴很熟 提交于 2019-12-23 03:14:19
问题 I am getting an error "unsupported grant type" when I try to request an OAuth token for a service account using curl. I'm following the example for OAuth 2.0 for service accounts (https://developers.google.com/identity/protocols/OAuth2ServiceAccount) and I think I have everything setup correctly. I have a service account setup in Google Cloud and I'm using that email address in the OAuth request. The documentation says to use the URL encoded grant type "urn:ietf:params:oauth:grant-type:jwt

Unsupported grant type in Google OAuth

懵懂的女人 提交于 2019-12-23 03:14:02
问题 I am getting an error "unsupported grant type" when I try to request an OAuth token for a service account using curl. I'm following the example for OAuth 2.0 for service accounts (https://developers.google.com/identity/protocols/OAuth2ServiceAccount) and I think I have everything setup correctly. I have a service account setup in Google Cloud and I'm using that email address in the OAuth request. The documentation says to use the URL encoded grant type "urn:ietf:params:oauth:grant-type:jwt

Vimeo PHP Upload Directory

北城以北 提交于 2019-12-23 02:55:14
问题 I have spent this best part of a week rattling my brain to get this working and I've just come to the conclusion that this is out of my scope. I know this is a rather large ask but I just can't figure it out. :( Anyway, I am trying to upload some files in a directory on my webserver to Vimeo through a protected php script (I say protected because the script itself will not be accessible from the web) and have that script run via a cron job. The script will only upload to my account. I have