Questions tagged [authentication]

25955 questions
1

votes
2

answer
3.3k

Views

Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED

I have been developing an angular application with restful API get(). I have got few errors like unauthorization error:401 which has been solved. Now I am getting this error which is kind of straight-forward. I have tried added CORS package as well. I have been searching for solutions which are in v...
cantona_7
1

votes
0

answer
6

Views

Different handling of basic authentication in rest client and web app in browser

I have angular frontend and spring backend. I'm using spring security to hande http basic authentication. I noticed strange difference in behaviour using advanced rest client(or any other) and angular web app. For tests I disabled my httpInterceptor so it is not including 'Authorisation: Basic fooba...
skoomi
1

votes
2

answer
188

Views

Is it able to store Firebase user to our own database?

If I use the user registration and login through the firebase authentication, the user information are stored in the firebase database side. How can I get the user information (such as FirstName, LastName, Gender and etc.) and store in my own database? Is it use the access token to call my API to ch...
ZhengJie Tan
1

votes
2

answer
629

Views

NextJS auth with an external server

I'm working with auth in Nextjs, I'm wondering what is the best strategy to handle authentication in NextJS ? Here my services structure : If I understand well I have to handle the server side rendering in NextJS, so I understand I have to put cookies from my external server to my NextJS client, th...
Webwoman
1

votes
2

answer
71

Views

Implementing Oauth. Where should use be redirected to after authenticating with the third party?

This is my first time implementing OAuth, so I'm just trying to wrap my head around the whole flow. I'm trying to implement OAuth for Stripe Connect. So in step 4 you're sending a POST request with your client secret to the Stripe servers, which I assume means your back end will be handling that....
BryceLarkin
1

votes
1

answer
1.8k

Views

How to activate authentication in Apache Airflow

Airflow version- 1.9.0 I have installed apache airflow and post configuration i am able to run sample DAG's with sequential executor. Also, created new sample user which i can see under Admin > Users. But unable to get the login window/screen when we visit webserver adress at :8080/ it directly open...
AshishPatil
1

votes
2

answer
351

Views

Authorization request header Vs POST request body for credentials

Which is the right approach to send user credentials from the front end to the backend server? I see examples where some developers use the authorization headers and some pass the credentials in the POST body.
unnik
1

votes
2

answer
278

Views

Can't access variable key inside .env (dotenv package React)

So I'm trying to understand how to use .env to secure my api key & data for my login auth. I've followed the process of the dotenv package and the stackoverflow answer here. What I did: 1. I installed the dotenv package 2. In my rootfolder, I added a .env with only one line: API_AUTH=http://myapilin...
Cédric Bloem
1

votes
1

answer
100

Views

WSO2 EI and WSO2 Developer - Setup an ESB Proxy with http basic authentication

I'm using WSO2 EI 6.3.0 and WSO2 Developer Studio 3.8.0. I'm working with an ESB Project and a Proxy Service inside it. The Proxy service is a simple pass through service; it receives a request from a webapp and forward it to a Soap Web Service, gets the response from the WS and gives it back to the...
Roger 71
1

votes
1

answer
44

Views

Unable to send email s using Laravel

I'm new on Laravel and I'm trying to configure mail. My .env file is configurated as: MAIL_DRIVER=SMTP MAIL_HOST=vserv.******.*** MAIL_PORT=587 [email protected]******.*** MAIL_PASSWORD=*********
Uncoke
1

votes
1

answer
51

Views

Add Extra displayName to createUserWithEmailAndPassword Method

I like to add an extra filed to insert user's name into the firebase database and then retrieve it, but i don't know if there's a way to do such thing. here's my markup code Name Email address Password {{errorMessage}} {{successMessage}} Register and here's my typescript code for registering user in...
user3683666
1

votes
2

answer
44

Views

Cannot Get/ in node.js

I am following this http://www.expertphp.in/article/user-login-and-registration-using-nodejs-and-mysql-with-example link I get a cannot GET/ error and I have tried all the stackoverflow answers but it isn't getting solved. var express=require('express'); var bodyParser=require('body-parser'); var a...
VISHAL ISRANI
1

votes
1

answer
73

Views

Integrate Azure Multi-Factor-Authentication in website to authenticate its users

I have a website (built in PHP), OS of web-server is Linux (Ubuntu) from AWS EC2, I want to integrate Azure MFA in website to authenticate users using 2FA (2 factor authentication), I checked this code using Node JS https://github.com/Azure-Samples/active-directory-node-webapp-openidconnect It is a...
Herry Shawn
1

votes
1

answer
44

Views

How to users can't login before verifying email which after registering account on Firebase?

I have problem with login account. After registering account, Firebase sent verification to email I registered. And then,application notify via toast that user must check the email. If the user doesn't verify the email, they can't login the application but the case is opposite. I can login the regis...
1

votes
0

answer
13

Views

Firebase signInWithEmailAndPassword not firing .then() until after UI focus changes

I'm using firebase .signInWithEmailAndPassword(email, password).then() for authentication in a react-native Android project. I have the function called on an onPress button event. The authentication does take place but for some reason, the .then() does not fire unless I tap somewhere else on the sc...
Ryu Kent
0

votes
1

answer
23

Views

Expired token handling in angular 6

I am building an angular app that uses jwt token for authentication.I'm saving the token in local storage to authenticate the rest calls from frontend. My issue is that when the jwt token expires from the server,the application displays no data as the jwt token has expired but the local storage sti...
rock11
-2

votes
0

answer
11

Views

What auth method in better to use?

I have test website with php server side and I want to implement authentification.It has many pages and on all of them,I have to check if user is authentificated. So let's imagine code in every file or do i have to create one file for example checkauth.php and use it like
Lukacho
0

votes
0

answer
6

Views

How do we pass authentication token in headless chrome in google puppeteer?

I want to pass authentication token(JWT) in puppeteer headers, for the pdf view with headless chrome in my application? We are using react as our front-end UI. And using puppeteer we are able to generate pdf, but the link to pdf we need to authorize using JWT How do we pass the jwt in headers, does...
uppu
1

votes
3

answer
967

Views

Django allauth LinkedIn API not returning full profile data

I have a an app with which I'm experimenting with Django Allauth, specifically the LinkedIn api. I am defining the scope in my settings like so: SOCIALACCOUNT_PROVIDERS = \ { 'linkedin': { 'SCOPE': ['r_fullprofile', 'r_emailaddress'] } } And I am outputting this info to a template using: {% extends...
Darwin Tech
0

votes
0

answer
19

Views

Annonymous authentication user is not showing up in the Firebase console

I implemented the anonymous login function in firebase but when I tap on the button linked to it, I don't see any anonymous appear user in the firebase console This is the function: @IBAction func loginAnonymouslyPressed(_ sender: UIButton) { Auth.auth().signInAnonymously { (authResult, error) in if...
Pietro 96
0

votes
2

answer
15

Views

how to protect my Web API Basic Authentication credentials

I've just started implementing Authentication in my Web API. I want to start with Basic Authentication I learned that i've to pass Username and Password in every request. So, lets say i'm doing some Admin task and making API call for same like this: $.ajax({ url: host + 'homework/delete/' + $(this...
donstack
1

votes
1

answer
1k

Views

Devise + Omniauth-Facebook get user's phone #

I'm using Devise for authentication in my Rails 3.2 app and am having trouble configuring omniauth-facebook to get the new user's phone number. First of all: I'm not even sure that it's possible to get a phone number, so if that's the case and someone knows for sure, I'd be happy just for a confirm...
sixty4bit
1

votes
1

answer
4.3k

Views

CurrentPrincipal/User is empty in Web API service

I may be missing something obvious here. I'm new to both MVC and Web API, so I'm working on keeping my head above water. I have an MVC application that interfaces with a Web API service. Authentication will be handled by a login service developed internally. When working, the MVC client should ch...
Yoc
1

votes
0

answer
17

Views

Flutter: OnScreen keyboard not opening when TextView is focused

I'm trying to create a simple login and signup screen for an app using Firebase Authentication (email/password). When testing on both physical device and emulator, the onscreen keyboard doesn't pop up, when the TextView is focused. On occasion, another screen which I can't identify pops up soon afte...
Lauryn Brough
0

votes
0

answer
7

Views

Python Pass API-Key and API-UUID to remote API

I'm new to Python. And am trying to connect to a remote restful api. I have the endpoint url. As well as an API Key and an API UUID that I'm told to pass to server (not sure about the proper term). Right now, with what little I know, I have this: import requests from requests.auth import HTTPBasi...
jjfredericks
1

votes
1

answer
2.4k

Views

User authentication with JWT in NodeJs with postgresQL?

I have been looking into user authentication with JWT in Node.js but everybody seems to be using mongoDB. I want to do the same thing with postgresQL and sequelize.js. Any resources or sample projects you guys know?
1

votes
2

answer
6.1k

Views

How to make the refresh token life long valid and issue a new refresh token each time a new refresh_token grant_type comes in spring security oauth2

I am using spring security oauth2 for authentication for my android application clients.When the client request comes with grant_type as password the server issues the access token and refresh token.If the access token expires i can issue a new access token by sending a request with grant_type as re...
KJEjava48
1

votes
1

answer
1.6k

Views

Docker Hub API v2 token authentication issue

Currently, I'm working on a very light version of Docker containers orchestrator and I have to be able to get image digest from public Docker Hub registry. I want to use Docker Registry API v2 for this purposes. I'm trying to get authorization token using following API call: curl https://auth.docker...
Arthur Gurov
1

votes
7

answer
9.8k

Views

Firebase AuthResult on task shows cannot resolve symbol

Getting red line over Task. I have imported import com.google.firebase.auth.AuthResult; too, yet it shows cannot resolve symbol authresult in that too. auth = FirebaseAuth.getInstance(); sign_up_button = (Button) findViewById(R.id.sign_up_button); email = (EditText) findViewById(R.id.email); passwor...
0

votes
0

answer
9

Views

How to use apigateway for securing Java based REST APIs

I am working on a project build in java that has android frontend. Its basically and android app that calls REST APIs build in java. I have created restful apis using springmvc, hibernate and eclipse. Currently I don't have any security mechanism for these apis (e.g. authentication tokens). I want t...
Zainab Riaz
1

votes
1

answer
1.3k

Views

Is it possible to download an audio file and play it using React Native Expo?

I have audio files hosted on a server that I'd like my app to access after authenticating. Users send a GET request which includes an authentication token, and the server returns the binary audio data. As far as I can see there is no way to save this 'blob' as an audio file to the filesystem. The cu...
Tom
1

votes
1

answer
211

Views

function app equivalent for IHostingEnvironment.IsDevelopment()

In asp.net core Startup.cs Configure we are provided an IHostingEnvironment env parameter that exposes an env.IsDevelopment() call to determine if you are currently running in a visual studio f5 debug session or a cloud deployment scenario. In function app is there a story for determining this same...
myusrn
1

votes
1

answer
68

Views

Firebase Database - Share Data When UID Unknown?

In Firebase Database; If user_a has data they can access and they want to share this data with user_b, what is the best practice and database structure for securely sharing this data between specific users? Important: user_a doesn't have any information about user_b account, e.g. uid. Detailed Examp...
Josh Kahane
1

votes
1

answer
45

Views

Why is user email null when signing into Facebook account, but not null when signing into Google account?

I'm using Firebase to allow the user to sign in with either their Facebook account or their Google account. I have allowed the creation for multiple accounts under the same email address. This is the method that sends the user to the next screen after successfully signing in with their Facebook acco...
Bert Hanz
1

votes
2

answer
80

Views

What's the difference between instanceId and getIdToken

I don't understand what's the difference between: FirebaseAuth.getInstance().currentUser.getIdToken(true).addOnSuccessListener { Log.d('tag',it.token) // token #1 } FirebaseInstanceId.getInstance().instanceId.addOnSuccessListener { Log.d('tag', it.token) //token #2 } Both of these methods return so...
W0lfEnd
1

votes
1

answer
40

Views

Pubsub Authorization Issue

I've generated a Google Cloud API key without restrictions. I'm passing that to the my topic:publish url as a query parameter, but I'm experiencing an authorization error. { 'error': { 'code': 403, 'message': 'User not authorized to perform this action.', 'status': 'PERMISSION_DENIED' } } I'm unsure...
Bryant Jackson
1

votes
1

answer
298

Views

how to reset firebase auth password in react native

I want to know how to reset password of firebase email authentication password in my react-native project . I like to sent an email for resetting the password. How to do that using the following method firebase.auth().sendPasswordResetEmail
1

votes
2

answer
47

Views

How to customize Auth::user() columns with foreign key? Laravel

Firstly, everytime we login in laravel, the default is that the user(table) is always accessible by just using Auth::user(). See 2 tables below: My struggle is, how can I add subscriber's columns to users(table) using subscriber_id from user table as foreign key. My expectation is, I want all thes...
escbooster12
1

votes
3

answer
48

Views

Create user in Laravel with custom fields

I am trying to create a user in laravel using laravel's own auth function. I have enabled it and want to add some of my own values to fields in the users table. Right now I get this error, but dont know how to fix it. Any ideas? : Array to string conversion (SQL: insert into users (name, email, pa...
htobiassen
0

votes
0

answer
2

Views

How to request authentication from a user for a YouTube Analytics API script?

I have a python script that pulls stats from my YouTube channel. I used this sample code here. I have downloaded the Client secret, authorised YouTube API and I am able to see some data in the response. Now I'm trying to pull data for another YouTube channel (from a separate google user, for example...
giac_man

View additional questions