2022 Developer Survey is open! Take survey.

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
0 votes
1 answer
29 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 ...
user avatar
  • 155
0 votes
0 answers
15 views

OAuth2 provider framework - ORM model generation

I recently outsourced the generation of OAuth2 authentication servers and appropriate ORM models into a common framework library. It mainly uses peewee, flask and authlib. Its purpose is to generate ...
user avatar
1 vote
1 answer
930 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 ...
user avatar
  • 235
2 votes
0 answers
25 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 ...
user avatar
  • 121
1 vote
0 answers
91 views

Oauth2 Connector Frappe Framework

My first attempt at writing a Python application to solve a real problem is a one way connector between ERPNext and MYOB AccountRight. This is the module I have written to connect to the API and get ...
user avatar
6 votes
1 answer
734 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 ...
user avatar
  • 119
2 votes
1 answer
79 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: ...
user avatar
  • 131
2 votes
0 answers
44 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. ...
user avatar
  • 185
3 votes
1 answer
54 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/...
user avatar
4 votes
0 answers
50 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 ...
user avatar
3 votes
0 answers
53 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 ...
user avatar
  • 31
2 votes
0 answers
268 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 ...
user avatar
3 votes
1 answer
147 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 ...
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 ...
user avatar
  • 450
1 vote
0 answers
66 views

OAuth2.0 Client framework

I'v developed a OAuth2.0 Client. The initial goal was to make a simple client where people won't have to focus on it to much ,and where they can start coding their product immediately by just ...
user avatar
  • 259
3 votes
1 answer
549 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 ...
user avatar
4 votes
0 answers
785 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 ...
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 ...
user avatar
  • 307
3 votes
0 answers
92 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 ...
user avatar
2 votes
0 answers
63 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 ...
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 ...
user avatar
  • 382
7 votes
1 answer
422 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 ...
user avatar
2 votes
0 answers
95 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 ...
user avatar
  • 365
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 ...
user avatar
4 votes
1 answer
537 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 ...
user avatar
  • 207
7 votes
2 answers
262 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 - ...
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 ...
user avatar
5 votes
1 answer
100 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: ...
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 (...
user avatar
  • 129
0 votes
1 answer
107 views

Auth token SSL implementation

...
user avatar
16 votes
2 answers
9k 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, ...
user avatar
4 votes
1 answer
57 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: ...
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 ...
user avatar
  • 121
4 votes
1 answer
306 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 ...
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 ...
user avatar