Questions tagged [auth0]

For questions relating to the integration with Auth0 services and/or SDK's. Auth0 is a cloud or on-premises authentication and authorization service provider that lets you easily and quickly connect your apps, choose identity providers, add users, set up rules, customize your login page and access analytics from within your Auth0 dashboard.

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

Obtaining the email after successful login on Auth0

I have a react native app that uses Auth0 and google to login. To login i use this code const LoginButton = ({ title, color }) => { const { authorize, getUser } = useAuth0(); const ...
  • 13.1k
0 votes
0 answers
9 views

Auth0 in NextJS: API resolved without sending a response

I used the following article from Auth0 to set-up user login in my NextJS app: https://auth0.com/docs/quickstart/webapp/nextjs/01-login#configure-auth0. These are the basic steps: Install @auth0/...
0 votes
1 answer
14 views

How to load Auth0 with an initial user from cookies using server side react

The challenge: Preload Auth0Provider with a user from cookies. The reason: I would love it if my server side rendered react app would fully render server side - unfortunately auth0-react doesn't ...
0 votes
1 answer
20 views

Does JHipster 7.9.3 Application that uses Micro-frontends Deployed to Heroku, work?

Am getting the below message after deploying a JHipster 7.9.3-generated microservices application on Heroku. My application has 2 microservices (tajvoteservice and siennaservice) and both ...
0 votes
0 answers
7 views

auth0-js checkSession() does not recognise authentication made on another page with auth0-spa-js' universal login

I have several micro-frontend's running under the same domain, that use auth0 universal login (auth0-spa-js package) and they all work fine, recognizing each others session. Now, I'm making a new one ...
0 votes
0 answers
19 views

How to validate JWT token from auth0 with nextjs backend

I host a backend via Next.js on Vercel. In a separate frontend the user authenticates via Auth0. Now I want to protect the API in the backend. I get the token in the frontend and send it with the API ...
  • 1,185
0 votes
0 answers
31 views
+50

Use an Auth0 JWT Token to authenticate with CouchDB dispite the fact that the username has a special character

Auth0 user_ids have the structure 'auth0|<some_id>'. So using an auth0 jwt token will give me something like { "iss": "https://.../", "sub": "auth0|640......
  • 799
-1 votes
0 answers
23 views

Have anyone ever made a Nextjs + Next-auth + auth0 + strapi authentication?

I'm building an app using Nextjs, Next-auth, auth0 as a next-auth provider, and strapi. The next-auth strategy is jwt. The authentication is role-based. I have everything defined on the auth0 ...
0 votes
0 answers
17 views

Auth0 + Next.js: How can useUser() lookup user without reading cookies?

Auth0's useUser() attempts to fetch a logged in user from /api/auth/me, which calls handleAuth(), which initiates Auth0 (creates sessionCache instance, etc.) and calls profileHandler(req, res). In the ...
  • 6,449
0 votes
0 answers
18 views

Auth0: Test account for OTP

I've developed a Flutter app for Android and iOS that uses Auth0 for authentication using the OTP solution. It works like a charm, with only one major issue: automated testing and app store validation....
0 votes
0 answers
11 views

Is there a way to get new access_token imperatively in auth0 react SDK?

I want to get a new access_token after clicked a button(will not refresh page). The onClick function getNewToken as below. import { useAuth0 } from '@auth0/auth0-react'; ... const { ...
0 votes
0 answers
16 views

NextJs13 Auth0 Login in Cypress testing without Password Grant Type [closed]

I visited the documentation of cypress and Auth0, in which explained about authentication with Grant Type Password option selected. Can anybody help me to write cypress test to authenticate without ...
0 votes
0 answers
9 views

What is the cause of "No Access" error when authenticating with Auth0?

I'm using Auth0 with passport to authenticate users in a simple ExpressJS app. When I try and log in with our login form, we get "No Access" as a callback error: We're using a database ...
  • 3,209
0 votes
0 answers
18 views

Allowing User Sign ups in Auth0. Using Universal Login

In Auth0, I have setup organizations and associated separate database connections with each. For one of the organizations (Org A) , I have setup 2 separate database connections. One for staff users of ...
0 votes
0 answers
18 views

Auth0 react-native login with email and password fails. How do I fix it?

I have followed the instructions described in HERE. This is my android/app/build.gradle .... defaultConfig { applicationId "com.someapp.app" minSdkVersion rootProject.ext....
0 votes
1 answer
44 views

Add UserId to database on successful login in Auth0

That is the sample code provided by Auth0: public async Task Login(string returnUrl = "/") { var authenticationProperties = new LoginAuthenticationPropertiesBuilder() ...
0 votes
0 answers
24 views

express router, auth0 and vanilla javascript; how to provide auth after logged in to router?

I've built a front end using vite with vanilla javascript. I've built a backend with node.js express routes. I've implemented swagger, and I can log in, log out, and I've secured post/put/delete ...
-1 votes
0 answers
19 views

How to use Angular with Auth0 embedded login?

I am trying to use the embedded login to provide authentication for the users with Auth0. Not sure where to start. I couldn't find proper documentation for angular that shows how to do the embedded ...
  • 865
0 votes
0 answers
9 views

Can you use local windows log in with auth0?

Is it possible to use the local windows log in to auth with auth0? I was wondering about it from a client secret perspective. Because you’d be authenticating with windows and then auth0 would need ...
  • 2,489
0 votes
1 answer
24 views

NestJS AuthGuard JWT Auth0 constantly returns 401 unauthorized

I'm having trouble setting up Auth0 authentication using the passport-jwt library in a NestJS project. I've tried following the documentation, but I can't seem to get it to work. I'm not sure where I'...
0 votes
0 answers
23 views

Why does Auth0 middleware redirects lead to 404 (page not found)?

This question is specific to Auth0 and Next.js. Following Auth0's example, I use this middleware to protect routes in a Next.js 13 application: // middleware.js import { withMiddlewareAuthRequired } ...
  • 6,449
0 votes
0 answers
14 views

.net CLI authenticate with Auth0 OAuth implicit flow

I am looking for a solution to authenticate a .NET Core CLI with Auth0 OAuth using the implicit flow. My understanding is that this flow launches the Auth0 login page, where the user can enter their ...
3 votes
0 answers
40 views

Android Espresso testing WebView opened from an SDK using ACTION_VIEW

In our code, we are using an external SDK to log in users (Auth0). This SDK opens a WebView using intent with ACTION_VIEW. I was trying to re-write some automation tests we had in place (we used ...
-1 votes
0 answers
28 views

What is the process of handling authentication for a website with `nextjs`, `fastapi` and `auth0`?

Honestly, I am lost a bit, never dealt with authentication. I would like to create a website where I need some authentication. The tech stack is the following: Frontend Javascript NextJS TailwindCss ...
  • 612
0 votes
1 answer
44 views

Auth0 allowed callback URL not working as expected

I'm using Auth0 as auth for my express project. The express-openid-connect SDK to be precise. my config: const config = { authRequired: false, auth0Logout: true, secret: process.env.SECRET, ...
  • 1
0 votes
0 answers
24 views

How to send GTM event after sign in with Auth0 hooks?

We have a react app with react-Auth0 for authentification using the hook loginWithRedirect. const { user, isAuthenticated, loginWithRedirect, logout } = useAuth0(); We want to send a custom GTM (...
0 votes
0 answers
21 views

How to validate in WebApi that access token received is valid (not fabricated) JWT issued by Auth0?

I want to add JWT middleware to my .net WebApi application. As in title. How can i check if token signed by Auth0 is valid and not fabricated. Please look at code sample. .AddJwtBearer(options =&...
0 votes
0 answers
27 views

How get refresh token value using @auth0/auth0-angular?

I'm using @auth0/auth0-angular(v2.0.2). I have setup scopes, and I see in DevTools response for token contains refresh_token in it. Now I need to get programmatic access to the value of refresh_token -...
0 votes
0 answers
18 views

Angular Flutter Nestjs Auth0 giving a 401 for token

I have an app. The UI is built using Angular and Backend API is NestJS. The authentication is handled by Auth0. Everything works fine. I am trying to build a Flutter app for the same application. The ...
0 votes
0 answers
13 views

Read Cached Data in Nginx from Reverse Proxy for R Shiny Auth0

Put a shiny-server behind auth0 and got it working. Now trying to access the YOUR_ID_TOKEN and other information from auth0's JWT (I think) for logout and other purposes. Started to cache the reverse ...
  • 1,018
2 votes
0 answers
108 views

How to avoid 403 disallowed_useragent error in a web app from 3rd party native app

I would like to let my users login with Google on my react web app (secured with Auth0), even if they come from a native app. I did add a social connection for oauth in auth0 dashboard and it's ...
  • 21
0 votes
1 answer
33 views

Specify provider for next-auth/react using Auth0

I have a NextJS application which uses Auth0 for authentication. I have two Auth0 tenants which I want to use for two separate register and login functionalities. I understand I can create Roles in ...
0 votes
1 answer
28 views

AWS Load Balancer not being able to redirect to Auth0 login page

I'm facing Auth0 sign in problem using a load balancer with a .NET core app. When I browse directly to port 80, it was able to redirect to Auth0 login page if the user's not authenticated. But when I ...
  • 31
0 votes
0 answers
34 views

Protecting an actix api with auth0 and accessing from react

i have a auth0 login application for react that works, inside the react app i call some api to my rust actix backend and i would like to add a verification like a token that if i'm not logged the api ...
  • 51
0 votes
0 answers
11 views

security(jwt) wrapper for multiple API

I want to develop a security wrapper in JWT or auth0, I have independent API's and I want to develop a common JWT or security wrapper for all api, that's when any API is call its request to a common ...
0 votes
0 answers
21 views

Issue with useAuth0 hook call

I've got a big issue using the useAuth0 hook in my react native app Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following ...
  • 43
0 votes
1 answer
25 views

How can I use getStaticPaths with an authenticated external API in Next.js and Auth0?

I'm trying to use getStaticPaths to generate dynamic page routes in my Next.js application. However, in order to call my external API, I need to pass a Bearer token for authentication purposes. I'm ...
0 votes
0 answers
25 views

Auth0 for NextJs protected API route to nextjs API

I have an application that has a NextJs front-end that use @auth0/nextjs-auth0 and a NestJS backend API that uses an AuthorizationGuard. The NextJs authenticates the user correctly and using the Auth0 ...
2 votes
1 answer
50 views

Cypress auth0 redirect to login on successful auth

Trying to make the auth0 authenticate login with cypress, followed this instructions (https://auth0.com/blog/end-to-end-testing-with-cypress-and-auth0/) I got a successful 200 response on POST but ...
  • 21
0 votes
0 answers
33 views

Angular app with Auth0, converting to native app using capacitor

I have a fully function Angular App, that uses Auth0 for Authentication. The next step is to convert to native apps using Capacitor. I followed this blog. https://betterprogramming.pub/how-to-convert-...
0 votes
2 answers
90 views

Auth0 Logout not working in Spring Boot 3

I am following the QuickStart for auth0 with Spring Boot 2, but my project is using Spring Boot 3, after changing the deprecated methods logout doesn't work anymore. Security Config: import org....
0 votes
0 answers
25 views

Authenticate using Auth0, then match a local account using email in AspNetUsers

In my ASP.NET MVC 5 application, we already have users defined in AspNetUsers. Currently, once the user is logged, the ASP.NET MVC 5 application is using the user identity/claims to do a bunch of ...
0 votes
0 answers
38 views

What happen if I use getAccessTokenSilently without params?

I want to use auth0 only for authentication, not authorization. What i want to do is to check if the user signed in or not. What happen if I use getAccessTokenSilently without any params? Does it work?...
  • 37
0 votes
1 answer
11 views

How to set audience for AuthenticationAPIClient?

When authorizing via Android SDK AuthenticationAPIClient using passwordlessWithEmail in Credentials refresh token == null. I read that in the article that you need to set offline_access for api and ...
0 votes
0 answers
22 views

Auth0 android deep link issues

I’m using Auth0 in combination with Ionic, Capacitor, and Angular for building a cross-platform application. I’ve been using this guide for integrating Auth0 into my app and it’s worked beautifully in ...
0 votes
0 answers
9 views

Is there any way to log a user out of all of their currently active sessions in AUTH0 when permission updated?

How to logout or clear session from all devices when permision updated AUTH0 api?
0 votes
0 answers
30 views

how can i unit test a higher order class component with auth0 implemented

i implemented a class component and used the following method to add the auth0 property. https://auth0.com/docs/libraries/auth0-react#use-with-a-class-component i did it like this as i needed to get ...
0 votes
0 answers
47 views

What is the difference between "next dev" and "next build + next start"

What is the difference between the Next.js commands next dev and next build + next start? I have read the docs and know the basics, but I have a fetch (see below) that works when loading the page ...
  • 6,449
0 votes
1 answer
81 views

VM10:182 crbug/1173575, non-JS module files deprecated

VM10:182 crbug/1173575, non-JS module files deprecated. i try to run but gave error : VM10:182 crbug/1173575, non-JS module files deprecated.
  • 1
0 votes
0 answers
20 views

Refresh Token for Microsoft Azure AD IdP Enterprise connection

I have figured out how to request scopes from the IdP to uses its services, in my case the Microsoft GraphQL. However that token seems to expire quickly and when I try and add the offline access scope ...
  • 515

1
2 3 4 5
60