Newest 'auth0' Questions

Q&A for professional and enthusiast programmers

Can I get a refresh token using Auth0 passwordless lock in JavaScript?

I'm using version 2.2.3 of passwordless lock. I have the following code within a function: var lock = new Auth0LockPasswordless("CLIENT_ID", "AUTH0_DOMAIN"); lock.emailcode({autoclose: true}, ...

How to force Auth0 user to login with password always?

How to force the Auth0 user to always enter his password to log in with Auth0 instead of using "Last time you logged in with " button. Any Suggestions? Thanks, Gowtham

Verify a RS256 jwt on node PEM_read_bio_PUBKEY failed

I'm trying to I'm trying to verify a jwt that use the RS256 algorithm. When using the hs256 algorithm everything works fine let opts = { audience: 'y', issuer: `https://x.auth0.com/`, ...

Auth0 Service Usage In Lazy Loaded NG2 App

Background - I recently took my working app and converted it to use lazy loading. The existing app had no issues and I use Auth0 for authentication. After converting to lazy loading when I run the ...

auth0 authentication for react-native-ios that communicates with php server

I am creating an react-native-ios app that communicates with a php web app hosted on azure. How I understand it works: The user signs up to the app, the server communicates with auth0 server which ...

Calling Fetch From React (With Options)

Following this tutorial I have created an application with servers listening on ports 3000 and 3001. If I understand correctly, my react application runs on port 3000 and uses the server on port 3001 ...

auth0 invalid token toward Rails API

I'm trying to set up authentication using the Auth0 lock along with a React single page app and a Ruby on Rails API. import React from 'react'; import Auth0Lock from 'auth0-lock'; var Login = React....

When trying to install php-jwt facing trouble with auth0

I'm trying to install php-jwt. When I enter the following command composer require firebase/php-jwt it gives the following error. Using version ^4.0 for firebase/php-jwt ./composer.json has ...

How to get information others users in logged user (auth0.js)?

I have some problem, need to get a information of all the users when I'm logged in. Usually getting information about current user this way: //... this.authHttp.get(`https://MY_DOMAIN/api/v2/users/...

Get a refresh token using an id token

According to the Auth0 Authentication API docs, you can use the /oauth/ro endpoint to exchange a username and password for a refresh token like so: { "client_id": "...", "grant_type": "...

Authorization has been denied for this request while hitting api

Was following one example in one tutorial related to Auth0. I am able to get token but when i used postman to hit my api and passed below parameter to my header then i get "Authorization has been ...

auth0 getUserInfo app_metadata issue

I'm a beginner with auth0 and Angular 2. I'm trying to use Auth0 to authentication and authorization on my app. Below the code I use to initialize the authentication @Injectable() export class Auth { ...

Advantages of Auth0

We have a web platform with 5 sites. Authentication is implemented with login/password only. My management told me that we need to add social login with Google and Facebook and for it I should look to ...

Auth0 in Java Spring MVC without Spring Boot

I asked this question in the auth0 forums aswell but does anyone know of an example of an auth0 implementation in a java spring mvc project not using Spring Boot? All the demo applications and ...

Using JavaScript, how do I check that an Auth0 passwordless session has expired

I'm using Auth0 passwordless authentication for my application which works great. I get a JWT for authentication and pass that in my authorisation header for requests to my API and it works great, ...

auth0: update user roles using v2 api

I can use https://xxx.au.auth0.com/api/v2/ to query and update the user. However not sur how to create roles and assign them to user. Any idea please?

cakephp 3 and logout confusion

I'm having some trouble wrapping my head around whether or not things are working as intended. I've got a simple implementation of cakephp3, cake-auth0 (https://github.com/jsoftb/auth0) and I am ...

redirect after login with auth0 custom UI using facebook authentication

I am trying to use Auth0 for authorization on my site. I have a log in with facebook button which uses facebook to authorize and it works but I can't get it to go to the new page after it ...

How to keep a user signed in on an Electron app using Auth0?

There seem to be no complete explanations of how to do this, or even enough fragments for me to piece together what I have to do. After about 16 hours of studying, I am at wit's end. It seems like I ...

tableView function runs before array is populated

I am trying to populate a Table View and I think my functions are running in the wrong order. I have a simple function loadSampleAssignments() that populates an array. If I call that function ...

Injecting UserService into SecurityConfiguration in jhipster leads to spring bean circular dependency

I'm trying to configure a jhipster 4 application to use auth0 for auth. When I initially generated the project I selected the JWT options, which seems to work fine and provide JWT support. What I am ...

Auth0 password reset error

I am using Angular 2 with lock version 10.8 and I am trying to add the ability for users to change their password. I've tried the following method, which calls the Management API, where the parameter ...

CORS failure in with Python Falcon even with heads for Auth Pre-Flight

Receiving these error when using the OPTIONS verb in Angular2 http.get(url, options), even though the appropriate CORS headers are set in Falcon Rest API. XMLHttpRequest cannot load http://...

Auth0-Lock SignUp E11000 duplicate key error collection

I'm trying to get SignUp working with Auth0-Lock but I keep getting the following error: "E11000 duplicate key error collection: dbName.clients index: metric_id_1_date_1_clientID_1_network_1 dup key:...

Auth0 get other users profile information

I have an application, where my users can see every article, but must be logged in (via Auth0), to be able to create articles. This part is working nicely. I save new articles to mySQL database on the ...

Java Spring MVC Auth0 SSO not getting tokens (no Spring Boot)

I'm trying to get SSO up and running. So when I sign in on a different application (on the same auth0 domain) and go to the login page of my application I want my application to automatically log me ...

auth0 download logs - automated daily - free plan

Short Question: How do I go about downloading the auth0 logs and user list everyday and automating it? Longer Version: Intro: I have just joined Auth0 and in the free plan. I am a volunteer in the ...

asp.net core app not working with Auth0 authentication in production

I am using Auth0 authentication for one of my .net core apps. In order to integrate Auth0 with my app, I followed exactly the tutorial provided here https://auth0.com/docs/quickstart/webapp/aspnet-...

Auth0 on an Electron Desktop Application - Refresh Token, or other method to keep user signed in?

Auth0 seems to indicate in different places that Refresh Tokens are the way to go, and that they are not the way to go for this type of setup. What type of authentication should I be using on an ...

Auth0 suggests the wrong username for ADFS connection

I have an aurelia app configured to auth against auth0, and our auth0 tenant is configured with a connection to our Azure AD instance. The problem I'm seeing is that auth0 seems to remember the wrong ...

social Login(Facebook and Google) integration using Reactjs Auth0

I am creating a loan application i need to integrtae with social login facebook and google i created buttons for both facebook and Google how to integrate with auth0 in reactjs <div className="...

Prohibiting Github Login

I have an application where I need to require the user to login through our auth0 service with username / password. It should not allow any other OAuth options at this point. Next, I require the ...

Auth0 - get id_token from refresh_token

In our 7+ microservices we rely on the Auth0 id_token. When exchanging a refresh_token (POST myapp.auth0.com/oauth/token) I only get back an access_token and not a id_token. How do I exchange a ...

Angular 2 factory provider

If I create a file like this (auth.module.ts): import { NgModule } from '@angular/core'; import { Http, RequestOptions } from '@angular/http'; import { AuthHttp, AuthConfig } from 'angular2-jwt'; ...

Angular2 Auth With Auth0 Redirecting Before Gravatar Exist

Background In my angular2 application I am using Auth0 to authenticate. After the redirect back to my website I display some of the user's data to them in the component. When the page renders it does ...

Auth0 Delegation from Angular 1 to Web API

Environment Angular 1.6.2 Auth0.js 8.0.4 Auth0 Lock 10.12.0 Auth0 angular-lock v2 Auth0 angular-jwt 0.1.9 .NET Framework 4.6.2 WebAPI 2 Auth0 Client Config WebApp (Angular SPA hosted in ASP....

Auth0 Facebook user_id and access_token - Retrieving page_id

I have a React application where I'm able to link accounts from different social medias to the main username and password account. I linked my Facebook account where I manage several other page and I ...

Error: Bad Audience while making Auth0 /user/user_id api call

I am having a use case to modify user metadata using Nodejs. I couldn't find any proper documentation on how to do it. So, I thought of using the rest api for modifying the user data. I created an API ...

Auth0 Rails RS256 configuration

I'm struggling to configure a rails app so that I can authenticate using Auth0 RS256 algorithm. Documentation talks about installing knock and validating the token using my certificate, but I cannot ...

Heroku (Auth0(Facebook) + PSQL) + iOS

I can’t solve this puzzle :( I have: 1. server side(java). 2. 2 add-ons «Auth0» and «Heroku Postgres :: Database». 3. iOS application (swift) 4. Facebook application in developer centre. 5. In «Auth0»...

MockWebServer cannot read headers

I use MockWebServer for avoid HTTP request to server and make UI test. We use Auth0 for authentication. I use MockWebServer as this.server = new MockWebServer(); this.server.setProtocols(...

App rejected by Apple because Auth0 signUpLink doesn’t open in Cordova InAppBrowser but in system browser (Safari)

Our Ionic 2 mobile app was rejected by apple because of the following reason: We noticed that the user is taken to Safari to sign in or register for an account, which provides a poor user ...

Auth0 Custom MongoDB get user script

I have an angular 2 webapplication with auth0 for authorization. I'm using my own mongodb database for storing user information. Auth0 provides templates in a sandbox to achieve this, for example the ...

ReactJS and Auth0 problems in getting profile and EventsEmitter

So, I was exploring auth0 for a pet project. I was able to configure the authentication for my app with the help of their documentation and the step by step guide provided in the website. The next ...

Auth0 Lock unexpectedly closes on pressing the sign up button since 10.5

The Auth0 Lock is the login screen for my Ionic 2 mobile application, which is an SPA. When the user presses the sign up button, an InAppBrowser opens at a registration URL where the user can enter ...

Why does redirectUrl include hash after redirect?

I am using auth0 to do my authentication. My application is a react SPA. The following code handles authentication within my app. import Auth0Lock from 'auth0-lock'; import { receiveLogin, ...

How to secure Webtask.io webhook?

I tried to going through the documentation provided by Webtask.io but not able to use webhook which is secured using Auth0. I created Auth0 login app using nodejs and then tried to call webhook url ...

'Optional' JWTs in a request?

First time learning about JWTs... I have a NodeJS/Express/Angular 2 application integrated with Auth0 Facebook login. I'm currently storing the user profile details in localStorage and am aware that ...

Why does the Auth0 refreshToken endpoint time out with 400 error when using react-native-auth0

GIVEN I'm using auth0's react-native-lock (which is using react-native-auth0) and requesting a scope of openid offline_access nickname photo email WHEN The idToken expires I call lock....

How to implement SSO using Shibboleth SP with Auth0 as the IdP?

I am trying to build a web application with both public and private resources. I would like to implement SSO authorisation for my web application using Shibboleth as the service provider and Auth0 as ...
Translating... 0%