oauth

oauth 2.0 webview ios sdk

淺唱寂寞╮ 提交于 2019-12-24 13:16:30
问题 I am building an ios SDK and implementing the oauth flow. Basically I need to do the following: User clicks on a button. Sees a webview popup. They sign/sign up in the webview, giving permission to access account. The webview redirects them back to a url with a code in the url. I need to somehow use that code to make an api call to get their access token. How can I do the above in objective-c? Meaning how can I show them a webview with my site signup/sign flow, and get access to the access

How to authenticate from Web API controller endpoint when implementing Identity 2.1 + OWIN OAuth JWT bearer token

痴心易碎 提交于 2019-12-24 12:45:37
问题 I'm unable to authenticate from within my controller method, as part of my confirm-user-signup workflow and I'm looking for some guidance that my implementation is correct. My controller method has the following code; I've confirmed that the user is populated (as part of the FindById call) but after SignIn ; this.Authentication.User.Identity is not set ( Name is blank and IsAuthenticated is false): this.Authentication.SignOut("JWT"); ApplicationUser user = await this.AppUserManager

Can I use Google Plus sign in to authenticate my OAuth methods in app engine?

こ雲淡風輕ζ 提交于 2019-12-24 12:21:03
问题 I successfully implemented Google Account sign in using the tutorial here for Android: https://developers.google.com/appengine/docs/java/endpoints/getstarted/clients/android/add_auth_code This allows my app to successfully use endpoints in app engine while authenticated. However now I'd like to perform some Google Plus functionality, ie: obtain some info about the user. I followed the code for the G+ signin as below: https://developers.google.com/+/mobile/android/getting-started#step_4

Google Oauth IMAP asking for permission everytime

本小妞迷上赌 提交于 2019-12-24 12:04:00
问题 I'm currently working on a web-based mail-service (it's not quite a mail-client but it's a lot to explain). However I've never worked with oauth before this but it seems like the way to go, I've based my simple classes on the sampel code. However the sample code doesn't provide the solution on signing in several times, or I've missed it. So basically my problem is that everytime I log in I need to authorize to gmail again while I've seen other services where you do that once and after that

How to programmatically retrieve access_token from client-side OAuth flow using Python?

自闭症网瘾萝莉.ら 提交于 2019-12-24 11:36:16
问题 This question was posted on StackApps, but the issue may be more a programming issue than an authentication issue, hence it may deserve a better place here. I am working on an desktop inbox notifier for StackOverflow, using the API with Python. The script I am working on first logs the user in on StackExchange, and then requests authorisation for the application. Assuming the application has been authorised through web-browser interaction of the user, the application should be able to make

Invalid grant issue with Google OAuth authentication in Qt

ぐ巨炮叔叔 提交于 2019-12-24 10:55:22
问题 I'm developing a Qt application and I want to use Google authentication for it. I created a Google API as explained in the following link: https://blog.qt.io/blog/2017/01/25/connecting-qt-application-google-services-using-oauth-2-0/ but I have a problem with it. It doesn't work in many cases and I get ProtocolInvalidOperationError (302) error for https://accounts.google.com/o/oauth2/token request URL in QOAuthHttpServerReplyHandler::networkReplyFinished(QNetworkReply *reply) method of Qt

Google Oauth authorised redirect URI cant accept /* at last of URL

点点圈 提交于 2019-12-24 10:17:04
问题 ive been doing a stephen grider course and he creates a google oauth client id with authorised js orgins as http://localhost:5000 and authorised redirect URI as http://localhost:5000/* and google accepts it. But when i try the same it throws me an error for redirect URI as Invalid redirect: Cannot contain a wildcard (*) . And im not sure without this , further it will cause problems.Any way to solve this. Ive typed http://localhost:5000/ as a temp solution. Kindly suggest. 回答1: What ever

Is there any OAuth2 module for Node.js that offer access token validation without an extra server call?

懵懂的女人 提交于 2019-12-24 09:49:08
问题 I'm working on a project in Node.js , we need safe authorization for clients, As far as Facebook and Twitter go, we have to validate the token with their API i Google it and found many examples but all are using third party API i-e Facebook, Twitter etc but the problem is we have to issue our own token that the device will use when talking to our API. is there any module implemented for Node.js that authenticate and generate token ? 回答1: I'm not clear on what you mean by wanting to find a

Managing browser sessions with Google sign in

末鹿安然 提交于 2019-12-24 09:49:04
问题 I have implemented a google sign in button for my website using the steps outlined in this page: https://developers.google.com/identity/sign-in/web/sign-in The page then extracts the id_token and sends it to my backend server, which validates it against the Google validation endpoint. I then use their Google ID that is encoded in the id_token to retrieve the application specific data associated with it (stored on my database). I'm just a bit confused on what I need to do next to keep the user

Twitter OAuth, Error when trying to POST direct message

為{幸葍}努か 提交于 2019-12-24 09:41:02
问题 So I am building a java script that is used in conjunction of my C++ application for sending direct messages to users. the script does the work of building the request that i send. When i send a request i receive "Incorrect signature" or "can not authenticate you" Does anyone see something i am missing or am doing wrong? I am continuing to investigate. Thank you in advance Javascript: var nDate = new Date(); var epoch = nDate.getTime(); var nounce = ""; nounce = Base64.encode(epoch