Questions tagged [authentication]

A question about the Stack Exchange authentication process and related API methods.

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

how can i take write acces on stack overflow [duplicate]

const express = require("express"); const router = express.Router(); const axios = require("axios"); const querystring = require("querystring"); const dotenv = require(&...
Akash Gupta's user avatar
1 vote
1 answer
112 views

OAuth Domain can't satisfy redirect_uri AND Proxy url

Let's say I have an app called ExampleApp, with these details: Client ID: 12345 Key: ThisIsTheKey123() OAuth Domain: exampleapp.com [√] Enable Client Side OAuth flow [√] Disable ...
Lakshya Raj's user avatar
0 votes
1 answer
28 views

If a client authenticates, will API requests be counted on their profile?

For example, let's say client X signs into an app that I made. My servers get an access_token which I can then use to send requests on their behalf, for example reading their reputation history. By ...
Lakshya Raj's user avatar
1 vote
1 answer
58 views

Why is no_expiry "strongly advised against"?

In the docs on user auth, it says This request is responded to with either an error (HTTP status code 400) or an access token of the form access_token=...&expires=1234. expires will only be set ...
Lakshya Raj's user avatar
8 votes
1 answer
796 views

How can I quickly get an access token for personal use?

Registering your application or script gets you a higher daily quota and is fairly simply; a step by step guide is documented here: I only need a key, what do I do? However, what if I do want an ...
Glorfindel's user avatar
  • 6,762
1 vote
1 answer
218 views

Get access token for matrix bridge

I want to build a bridge for my matrix server. To read my inbox an access_token is required. Do I really need to register an application just to get one access token?
Ace of Spade's user avatar
2 votes
1 answer
138 views

How do I add a comment to a post through the Stack Exchange API?

I want to add an comment to a specific post so, how do I get its ID and how do I authorize it. I want it to done through the Stack Exchange API interface.
Mohammed Noman Razvi's user avatar
1 vote
0 answers
138 views

Use Stack Overflow's authentication API in a browser extension

I want to create a browser extension that reproduce the Stack Overflow navbar (inbox and achievements): I need for that to authenticate the current user using the authentication API. For this step, I ...
johannchopin's user avatar
1 vote
0 answers
132 views

Having Trouble Setting Up OAuth for App

I am trying to build an app but I can't get the authentication right. I have been following the steps here: https://api.stackexchange.com/docs/authentication I keep getting the below error no matter ...
sjago's user avatar
  • 21
2 votes
1 answer
338 views

"Could not parse uri [redirect_uri]" when trying to authenticate

I was just reading into this API and wanted to test it out before I would use it in a project. I have added an application on this site and got all of the keys. When I try to authenticate a user with ...
Chiel's user avatar
  • 85
1 vote
1 answer
70 views

How can I the question detail page and add comments like the Stack Exchange app?

Can we get the list of data when clicking on a specific question and display the question detail page like the Stack Exchange app? I can't find the API to get them so far, so I decided to display the ...
user13414590's user avatar
2 votes
0 answers
292 views

window.opener is null in Stack Exchange login_success page

I am using the JavaScript SDK to authenticate Stack Exchange users in our application. But the dialog stays in "Authorizing Application" page, as I found there is a error thrown in this page:...
Gary Liu's user avatar
  • 121
6 votes
1 answer
130 views

Does a closed and/or deleted Stack Apps post still provide access to the API?

Registering your application as a Stack Apps app is necessary in order to obtain a higher request quota, authentication and write access to the API. What happens if the question is closed because of ...
Glorfindel's user avatar
  • 6,762
-1 votes
1 answer
1k views

Why and how to make use of API key and credentials Stack Overflow API? [duplicate]

I am in need of using the Stack Overflow API for my website. I've gone through the documentation and I got the API key and client credentials. But my question is, I am able to send my question through ...
Deepak's user avatar
  • 121
1 vote
0 answers
66 views

The authentication doc gives a wrong domain for authentication

The authentication doc page now lists URL's like: https://stackoverflow.com/oauth https://stackoverflow.com/oauth/access_token etc. While these seem to work, the correct domain is stackexchange.com, ...
Brock Adams's user avatar
  • 12.9k
3 votes
1 answer
241 views

Localhost test Stack App authentication: error 'redirect_uri' does not match

I tried the answer at "Can the redirect_uri contain port number"? But I am getting the following error: Provided redirect_uri does not match the redirect_uri this code was created with My access ...
sylor_huang's user avatar
4 votes
0 answers
55 views

OAuth Dialog has all content positioned off-screen

When using https://stackoverflow.com/oauth/dialog, the OAuth dialog renders correctly on my normal browser window. Opening it inside a modal however results in an empty window, because body has a min-...
NikxDa's user avatar
  • 141
2 votes
1 answer
60 views

I have created a lot of access_token with no_expiry scope while experimenting. How do I delete them?

While learning how to work with the StackApps APIs, I created quite a few (more than 10) access_token with no_expiry scope. Finally I have got my applicaiton working but I am worried that all those ...
jar's user avatar
  • 123
-3 votes
1 answer
746 views

"text/plain" content type header for x-www-form-urlencoded content? [duplicate]

I'm getting the following response body and header from https://stackoverflow.com/oauth/access_token when attempting to exchange an oauth code for a token: <DEBUG> [00:30:03] my-app - content-...
user84207's user avatar
  • 105
16 votes
0 answers
111 views

Add a dedicated bot login to Stack Apps

When dealing with chat bots, especially those like SmokeDetector, you'll often want to log in directly from the code. The problem? There's no easy way to do this, especially now that Open ID is being ...
Mithical's user avatar
  • 299
3 votes
1 answer
101 views

Cannot get redirect_uri to work

This is in regards to my userscript Bulk flag comments. I am sure I have not at all updated the userscript since the first release of June 24, and I am sure I was able to register for an access token ...
Gaurang Tandon's user avatar
2 votes
1 answer
100 views

The new implicit authentication dialog doesn't handle comma-delimited scopes

The authentication docs state that the scopes parameter of the URL to which a user should be directed to, for implicit authentication, should be a list of scopes that are delimited by either commas or ...
ravindUwU's user avatar
  • 319
4 votes
1 answer
143 views

How to use /me to display my profile data in StackExchange API?

So I'm able to use API calls like: https://api.stackexchange.com/2.2/questions?pagesize=30&order=desc&sort=activity&site=stackoverflow to display a list of questions. This is easy as it ...
noogui's user avatar
  • 165
-4 votes
1 answer
131 views

How to pass the api client credentials for stackexchange api in python [duplicate]

I am trying to make a console based client, that consumes the stackexchange api. I have done the registration of my app, in order to enjoy higher quotas and received the necessary keys. My problem is,...
py_script's user avatar
3 votes
1 answer
97 views

Accessing the Stack Exchange API not on behalf of an user? [duplicate]

I'm implementing an App and intend to use Stack Exchange tags to classify content, of course, respecting the terms of use. However, the Authentication documentation says I'd need to use the OAuth 2.0 ...
André Pena's user avatar
4 votes
0 answers
154 views

Can we specify more than one OAuth Domain?

I would like to use the API from a browser extension. With WebExtensions, I should be able to support Firefox and Chrome with the same code. Chrome provides an identity API for OAuth2, and so does ...
Bob's user avatar
  • 286
1 vote
1 answer
602 views

oauth 2.0 based on stackexchange api and fetch user details

I am new to oauth 2.0. What i am trying to achieve is following I have a google api based oauth authentication in place On top I fetch the gmail email address and verify if this address is present in ...
Arka Mallick's user avatar
1 vote
1 answer
666 views

No 'Access-Control-Allow-Origin' for oauth/access_token

Following the Stack Apps documentation Authentication (explicit) section I crafted this AJAX call $.ajax({ url:"https://stackexchange.com/oauth/access_token", type:"...
ajthinking's user avatar
0 votes
1 answer
138 views

What token parameters to use for OAuth2 Authorizaton?

I'm trying to connect a piece of desktop software to the Stack Exchange web service through OAuth2. I've read the docs but the problem is that what it talks about is subtly different to what ...
Mark Ireland's user avatar
1 vote
1 answer
137 views

Is it okay to just send the API key (without implementing oauth-2 login)?

I'm writing a small Android app that issues customizable queries and displays the results in a read-only format. I might implement oauth-2 in a future version, but want to leave it out of version 1.0 (...
Rapunzel Van Winkle's user avatar
7 votes
1 answer
254 views

DSS: Facilitating API authentication for desktop apps

desktop-stack-serv Auth server for desktop applications authenticating with the Stack Exchange API. What? The Stack Exchange API enables applications to get data about Stack Exchange sites or users....
ArtOfCode's user avatar
  • 473
2 votes
0 answers
78 views

Provide a way to get display name via access token

Please include a new (network) method with the ability to gather display name and profile image directly via access token. Right now to retrieve this information you have to first authenticate a ...
gillesberger_p's user avatar
5 votes
1 answer
108 views

Access token keeps being invalidated

For Stack Overflow Extras (SOX), a few users and myself have seen our access tokens being invalidated very often without any apparent reason. We aren't requesting new tokens (which would invalidate ...
ᔕᖺᘎᕊ's user avatar
  • 4,365
4 votes
1 answer
449 views

Refresh expired acess token basics

I'm trying to learn how to implement an OAuth flow in an Android app using a simple app with the Stack Exchange API. Using WebView, I'm able to retrieve an access token and store it in my shared ...
Marco Pierucci's user avatar
2 votes
1 answer
193 views

Stack Exchange login hangs on Windows 10 Mobile?

I am working on a Stack Exchange App (Stack App for Windows 10 PC/Mobile and Windows 8.1 Mobile). I have a user login set up and using the WebAuthenticationBroker in Universal Windows Platform, to ...
AVK's user avatar
  • 279
3 votes
1 answer
375 views

iOS Client for stackoverflow always throws redirect_uri not a valid uri

I tried to use the Stack Exchange API to authenticate the user. I have registered my app with redirect_uri as stackexchange.com/oauth/login_success. But it always throws "redirect_uri is not a valid ...
Kishorekumar E K's user avatar
3 votes
1 answer
275 views

Same access token between different fetch_token requests

TL;DR: Is it (or would it be) possible to get the same access_token from one fetch_token request to another, provided that the user is the same? Scenario: An anonymous user authenticates with Stack ...
Jivan's user avatar
  • 141
2 votes
1 answer
107 views

Authentication uses # instead of `?`?

I need authentication for my app so I used the implicit flow way. The authentication works just fine but the access_token and expires variables return weirdly! For example: https://example.com/#...
moein rahimi's user avatar
-4 votes
1 answer
143 views

Problem Implementing Socialite Stack exchange

I get code and access token but I cannot call API function My url being generated https://api.stackexchange.com/2.2/me?site=stackoverflow&access_token=lcynp67rMHfm%28DRLjv7CVQ%29%29&key=6521 {...
Numan Hassan's user avatar
5 votes
1 answer
146 views

Is there a way to specify how long I want an access token to be valid for?

I am following the explicit authentication path. I am not passing no_expiry as part of the scope. After the final POST step, I receive back an expires value of 86399 (just shy of a full day). It ...
Andy's user avatar
  • 417
2 votes
0 answers
218 views

Stackoverflow Javascript Authentication error

Using the Stack Overflow javascript authentication API, I get this error: Application Login Failure An error occurred while login into an application. Error Details error description: ...
Mahahari's user avatar
  • 129
9 votes
1 answer
797 views

Getting "application not configured for implicit grants" error trying to setup website

I had a developer setup StackExchange auth for a site last year and that still works fine. I have cloned that site and am in the process of changing out all of the relevant names and keys to the new ...
Lizza's user avatar
  • 193
3 votes
0 answers
240 views

Login screen without web browser

I'm playing around with the Stack Exchange API, and have just received my first response from the server using the "Hello World" example. The next step is to allow the user to log in somehow. From ...
Mitch's user avatar
  • 131
7 votes
1 answer
688 views

OAuth procedure for standalone user?

Background: I will be using the Stack Exchange API to make queries to stack overflow for a list of questions along with their details for a particular month etc for analysis purposes. So this would be ...
Viraj's user avatar
  • 173
3 votes
0 answers
105 views

error description: could not parse proxy url

I have seen the answers to the existing two questions on this topic but it has not helped. And the problem still persists so I am re-posting this question. Here is my code $(function(){ SE.init({ ...
SOUPTIK BANERJEE's user avatar
15 votes
1 answer
2k views

Unable to get access token

I am trying to get a non-expiry access token, like so: https://stackexchange.com/oauth?scope=no_expiry&redirect_uri={{some_uri}}&client_id={{some_value}} I am repeatedly getting the error: ...
user34257's user avatar
  • 185
-4 votes
1 answer
114 views

I Cannot Perform Oauth [closed]

My Clientn id = 4784 and Key = cB0l6XiaOW5l5vsBnBeIUg((. What do I do for Oauth and to get an access token?
SOURABH DOLIYA's user avatar
4 votes
1 answer
283 views

Can not request info after OAuth

I am following The implicit OAuth 2.0 flow Guide: My client ID is 4709 while key is RoZwtHUrhMP088oVGCMlxA(( I appended my URL as: https://stackexchange.com/oauth/dialog?client_id=4709&scope=...
Zigii Wong's user avatar
4 votes
1 answer
334 views

Login using Google fails saying OpenID 2.0 accounts for Google has gone away

Recently I have received complaints about my app suggesting that logging in with a Google account shows a warning message that OpenID authentication has gone away. When I tried to log in with my own ...
Birkan Cilingir's user avatar
2 votes
0 answers
62 views

Does a user only need to log in once to access all sites?

When I use stack exchange sites on my desktop web browser, I log in once using stack exchange ID and then when I navigate to sites I don't belong to, it automatically associates me with the new site. ...
erotavlas's user avatar
  • 229