Questions tagged [oauth]

OAuth (Open Authorization) is a specification for client applications to access protected resources on behalf of a user. It was developed as an alternative to users handing out their login credentials to third-party applications.

Filter by
Sorted by
Tagged with
2 votes
2 answers
120 views

Algorithm to compare OAuth2 Rich Authorization Requests

Authorization Requests spec defines new authorization_details parameter. The authorization server have to somehow compare this parameter to decide whether client ...
Szyszka947's user avatar
0 votes
1 answer
39 views

OAuth implementation for Puredata

I am managing an OAuth implementation for Puredata (Pd), which is written in C. OAuth can accept RSA keys, but Pd cannot send messages with newlines, so placing private keys will come as a list of ...
Residuum's user avatar
  • 155
2 votes
1 answer
2k views

Instagram Basic Display API Full Example PHP

Here's an example script I wrote for Instagram (Facebook)'s Basic Display API. I did this for myself because I haven't used Instagram's API since their Legacy API was disabled, and I needed to ...
tony's user avatar
  • 329
2 votes
0 answers
32 views

Google Mailer app inside Django using OAuth 2.0

I have built this Django Package which is an alternative for sending mail to users using Gmail API. Everything is working fine. But the verify(self, request) method inside ...
NikzJon's user avatar
  • 121
6 votes
1 answer
845 views

Nodejs async with express server

I use the following code which works as expected. The code uses open ID connect to login user. Because I'm pretty new to node and express, it will be great if I can ...
Beno Odr's user avatar
  • 119
2 votes
1 answer
87 views

Login system in PHP using AJAX

I am beginning the cycle of creating my role based access control into my framework. I now want to log the user into my application and my _user table looks like this: ...
Jaquarh's user avatar
  • 131
2 votes
0 answers
113 views

Implementation of OAuth2 device flow using Python

Please review this program because I wrote something in Python for the first time. This code is to be used for device authorization in oauth2 device flow. ...
Adamo's user avatar
  • 185
3 votes
1 answer
60 views

Script that saving most relevant Youtube video for each database object

Due to the tightened Youtube API daily quota (that allows to use only ~ 98 search requests per project daily) I've implemented a multi-project system. For this to work you need to create a project/...
edvard_munch's user avatar
4 votes
0 answers
271 views

Get current user middleware from JWT using express

I'm using Sequelize and Google oAuth for authentication, I want to create a middleware that Verifies the sent token passed in the headers matches the one the user was initially signed to. Finds the ...
CarlosG90's user avatar
3 votes
0 answers
57 views

Node/Express authenticate Google email address

Trying to set up express server that will authenticate a user's Google email before proceeding. The code below works, but is there any way to make it more elegant? The whole ...
Dan G's user avatar
  • 31
2 votes
0 answers
282 views

Google OAuth Boilerplate in Python Tornado

I recently started a project using python-tornado, and needed to implement google OAuth to manage user logins. I struggled getting this working in the context of the project, and decided to abstract ...
Justin Olson's user avatar
3 votes
1 answer
156 views

Node.js command line app to init a repo

In order to learn more about Node.js and promises I followed a tutorial on Sitepoint about building a command line app. I liked the idea and simplicity of Node so I decided to build my own that ...
5k313t0r's user avatar
5 votes
0 answers
1k views

OAuth2 login for ASP.NET Core without local accounts

I am using OAuth2 for users to sign in with their Google Account and authenticate Google API requests. I have not used the built-in ASP.NET Identity provider because this requires an app database of ...
James's user avatar
  • 450
3 votes
1 answer
613 views

Slack App OAuth flow in golang

I'm working on a Slack app that uses Slash Commands. I've been looking for an excuse to learn Go, but the online tour was a little slow paced so I tried jumping in with this project. I'm looking for ...
Selali Adobor's user avatar
4 votes
0 answers
807 views

OAuth 2.0 implicit flow implementation

I have been implementing the OAuth 2.0 implicit flow to secure the API I use in an Angular SAP. Please, could you review my code? I am sure there is a lot of stuff to improve in it. I have separated ...
BodzioSamolot's user avatar
2 votes
0 answers
6k views

Securing Web API using token authentication and allowing external application to post or get data

Implementing OAuthAuthentication with OWIN and Identity to secure Web API and let external application like Chrome Extension to access our self hosted API for getting and posting data through our ...
rpmansion's user avatar
  • 307
3 votes
0 answers
94 views

OAuth 1.0 signature using Ramda

I created an OAuth 1.0 signature generator using Ramda based on this. I'm just getting to grips with it, so was wondering if someone more familiar with Ramda and functional programming would give me ...
Adam McGrath's user avatar
2 votes
0 answers
69 views

oAuth2 token creation when registering new user

I am working on Django Rest Framework for backend to develop android app. My project is about Food Delivery System. My app has user login and registration feature. I preferred oAuth2 for token based ...
Serenity's user avatar
  • 211
7 votes
1 answer
2k views

Prevent multiple async calls from all attempting to refresh an expired OAuth token

I have some code that needs to access an API that requires OAuth authorization in the form of a token, and every time the token expires, it needs to be refreshed. I made a function called ...
m0meni's user avatar
  • 382
7 votes
1 answer
433 views

OAuth2 Implementation

I am trying to implement an OAuth2 service. I am not planning to use it anytime soon (like will write unit tests). This is my fun project I do to practice. I have used the python_jwt library to create ...
Maruf Maniruzzaman's user avatar
2 votes
0 answers
99 views

Base class for the Oauth process and dance

At work we are interfacing with the Jira cloud storage for our ticket management system. I created a base class to make the process easier on the user side, and I did my best to make it re-usable and ...
flybonzai's user avatar
  • 355
10 votes
3 answers
1k views

Inserting OAuth data into a database

I am totally new to PHP. I just wrote a PHP script for google oauth to pull the data and insert into my database. I don't know if my code is vulnerable to SQL injection. Should I have used prepared ...
Bajwa kapoor's user avatar
4 votes
1 answer
552 views

Using Wreq and Lens libraries to query Prosper for account info

I am trying to create a program to manage my Prosper investments for me as an intro to Haskell project. I created a post a few weeks ago for some of the simpler backend calculations: Recommend Next ...
Free_D's user avatar
  • 207
7 votes
2 answers
287 views

Querying Facebook for details of a user's OAuth token

This class exposes the public method getAuthToken which takes a user's Facebook OAuth token as an input parameter and queries Facebook for information about it - ...
sav0h's user avatar
  • 73
8 votes
4 answers
3k views

API method to validate Facebook OAuth token

I am new to Java / OOP and I'm concerned that I have a method which is doing far too much "stuff" - but I don't easily see how it can be shortened in a way which is not contrived / arbitrary. This is ...
user92462's user avatar
5 votes
1 answer
104 views

Google oAuth Angular service

I wrote a module with 3 services that execute the oauth (and set the api key) for the google api and return the token object if the promise is positive. Here is the whole working module: ...
J. Doe's user avatar
  • 51
7 votes
1 answer
10k views

Identity OAuth implementation with Owin

I am building an MVC 5 application using code-first Entity Framework 6 and a customised ASP.NET Identity model for authentication. I will only be authenticating against external OAuth providers (...
Steve's user avatar
  • 129
0 votes
1 answer
124 views

Auth token SSL implementation

...
Nicolas Manzini's user avatar
16 votes
2 answers
10k views

Generating (presumably) unique `nonce` fields for Twitter OAuth

This is code that's part of a library (closed source) that I have that generates a unique nonce value for Twitter OAuth. Essentially, it generates a random number, ...
Der Kommissar's user avatar
4 votes
1 answer
61 views

Youtube OAuth security

I am working with Youtube OAuth for the first time and I am not that great when it comes to security. I got the following code and would like to hear if you guys can find any security issue: ...
Muki's user avatar
  • 41
2 votes
1 answer
3k views

Facebook OAuth in WPF

I am developing a WPF application that requires me to get an Access Token from Facebook using oAuth. After much searching online, I came to the following conclusions: OAuth must be done in a browser ...
mkamioner's user avatar
  • 121
4 votes
1 answer
309 views

Rails service + OAuth

I'm having trouble structuring the logic of OAuth integration into my web app. In the app, a user creates a Report that consists of data from their Google Analytics ...
mnort9's user avatar
  • 241
14 votes
1 answer
15k views

OAuth Provider token generation

I'm currently creating an OAuth provider in Java using Jersey. To the best of my knowledge Jersey does not provide a method to create oauth tokens so I'm creating my own. For those unfamiliar with ...
Chris Salij's user avatar